Source for file setup.php

Documentation is available at setup.php

  1. <?php
  2.  
  3. /**
  4.  * setup.php - Generic Change Password plugin
  5.  *
  6.  * This plugin aims to provide a general framework for all password
  7.  * changing methods that currently have their own plugins.
  8.  *
  9.  * @copyright 2003-2017 The SquirrelMail Project Team
  10.  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  11.  * @version $Id: setup.php 14643 2017-01-27 20:34:08Z pdontthink $
  12.  * @package plugins
  13.  * @subpackage change_password
  14.  */
  15.  
  16. /**
  17.  * Plugin init function
  18.  */
  19.     global $squirrelmail_plugin_hooks;
  20.  
  21.     $squirrelmail_plugin_hooks['optpage_register_block']['change_password''change_password_optpage';
  22.     $squirrelmail_plugin_hooks['optpage_set_loadinfo']['change_password''change_password_loadinfo';
  23. }
  24.  
  25. /**
  26.  * Add plugin option block
  27.  */
  28.     global $optpage_blocks;
  29.  
  30.     $optpage_blocks[array(
  31.         'name' => _("Change Password"),
  32.         'url' => '../plugins/change_password/options.php',
  33.         'desc' => _("Use this to change your email password."),
  34.         'js' => FALSE
  35.     );
  36. }
  37.  
  38. /**
  39.  * Displays information after "Successfully Saved Options:"
  40.  * @since 1.5.1
  41.  */
  42.     global $optpage$optpage_name;
  43.     if ($optpage=='change_password'{
  44.         // i18n: is displayed after "Successfully Saved Options:"
  45.         $optpage_name=_("User's Password");
  46.     }
  47. }
  48.  
  49. /**
  50.  * Return version information
  51.  * @return string version number
  52.  */
  53.     return '0.2';
  54. }

Documentation generated on Wed, 17 Jan 2018 04:24:32 +0100 by phpDocumentor 1.4.3