New get_plugin_version() function, and a couple places to use it.
[squirrelmail.git] / plugins / administrator / setup.php
1 <?php
2
3 /**
4 * Administrator plugin - Setup script
5 *
6 * Plugin allows remote administration.
7 *
8 * @author Philippe Mingo
9 * @copyright &copy; 1999-2007 The SquirrelMail Project Team
10 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
11 * @version $Id$
12 * @package plugins
13 * @subpackage administrator
14 */
15
16 /**
17 * Init the plugin
18 * @access private
19 */
20 function squirrelmail_plugin_init_administrator() {
21 global $squirrelmail_plugin_hooks;
22
23 $squirrelmail_plugin_hooks['optpage_register_block']['administrator'] =
24 'squirrelmail_administrator_optpage_register_block';
25 }
26
27 /**
28 * Register option block
29 * @access private
30 */
31 function squirrelmail_administrator_optpage_register_block() {
32 /** add authentication functions */
33 include_once(SM_PATH . 'plugins/administrator/auth.php');
34
35 if ( adm_check_user() ) {
36 global $optpage_blocks;
37
38 $optpage_blocks[] = array(
39 'name' => _("Administration"),
40 'url' => SM_PATH . 'plugins/administrator/options.php',
41 'desc' => _("This module allows administrators to manage SquirrelMail main configuration remotely."),
42 'js' => false
43 );
44 }
45 }