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 14840 2020-01-07 07:42:38Z pdontthink $
  8.  * @author Philippe Mingo
  9.  * @copyright (c) 1999-2020 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 Mon, 13 Jan 2020 04:25:19 +0100 by phpDocumentor 1.4.3