Source for file setup.php

Documentation is available at setup.php

  1. <?php
  2. /**
  3.  * Administrator plugin - Setup script
  4.  *
  5.  * Plugin allows remote administration.
  6.  *
  7.  * @version $Id: setup.php,v 1.7.2.5 2006/02/03 22:27:51 jervfors Exp $
  8.  * @author Philippe Mingo
  9.  * @copyright (c) 1999-2006 The SquirrelMail Project Team
  10.  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  11.  * @package plugins
  12.  * @subpackage administrator
  13.  */
  14.  
  15. /** add SM_PATH */
  16. if (!defined('SM_PATH'))  {
  17.     define('SM_PATH','../../');
  18. }
  19.  
  20. /** @ignore */
  21. require_once(SM_PATH 'plugins/administrator/auth.php');
  22.  
  23. /**
  24.  * Init the plugin
  25.  * @access private
  26.  */
  27. function squirrelmail_plugin_init_administrator({
  28.     global $squirrelmail_plugin_hooks$username;
  29.  
  30.     if adm_check_user() ) {        
  31.         $squirrelmail_plugin_hooks['optpage_register_block']['administrator'=
  32.                                   'squirrelmail_administrator_optpage_register_block';
  33.     }
  34. }
  35.  
  36. /**
  37.  * Register option block
  38.  * @access private
  39.  */
  40. function squirrelmail_administrator_optpage_register_block({
  41.     global $optpage_blocks;
  42.     global $AllowSpamFilters;
  43.  
  44.     $optpage_blocks[array(
  45.         'name' => _("Administration"),
  46.         'url'  => '../plugins/administrator/options.php',
  47.         'desc' => _("This module allows administrators to manage SquirrelMail main configuration remotely."),
  48.         'js'   => false
  49.     );
  50. }
  51. ?>

Documentation generated on Sat, 07 Oct 2006 16:33:34 +0300 by phpDocumentor 1.3.0RC6