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 14749 2018-01-16 23:36:07Z pdontthink $
  8.  * @author Philippe Mingo
  9.  * @copyright (c) 1999-2018 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;
  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.  
  43.     $optpage_blocks[array(
  44.         'name' => _("Administration"),
  45.         'url'  => '../plugins/administrator/options.php',
  46.         'desc' => _("This module allows administrators to manage SquirrelMail main configuration remotely."),
  47.         'js'   => false
  48.     );
  49. }

Documentation generated on Tue, 17 Apr 2018 04:26:55 +0200 by phpDocumentor 1.4.3