Source for file setup.php

Documentation is available at setup.php

  1. <?php
  2.  
  3. /**
  4.  * Administrator plugin - Setup script
  5.  *
  6.  * Plugin allows remote administration.
  7.  *
  8.  * @author Philippe Mingo
  9.  * @copyright 1999-2020 The SquirrelMail Project Team
  10.  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  11.  * @version $Id: setup.php 14845 2020-01-07 08:09:34Z pdontthink $
  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. }

Documentation generated on Mon, 13 Jan 2020 04:23:32 +0100 by phpDocumentor 1.4.3