Source for file setup.php

Documentation is available at setup.php

  1. <?php
  2.  
  3. /**
  4.  * mail_fetch/setup.php
  5.  *
  6.  * Setup of the mailfetch plugin.
  7.  *
  8.  * @copyright 1999-2018 The SquirrelMail Project Team
  9.  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  10.  * @version $Id: setup.php 14750 2018-01-16 23:44:07Z pdontthink $
  11.  * @package plugins
  12.  * @subpackage mail_fetch
  13.  */
  14.  
  15. /**
  16.  * Initialize the plugin
  17.  */
  18.     global $squirrelmail_plugin_hooks;
  19.  
  20.     $squirrelmail_plugin_hooks['template_construct_page_header.tpl']['mail_fetch''mail_fetch_link';
  21.     $squirrelmail_plugin_hooks['login_verified']['mail_fetch''mail_fetch_setnew';
  22.     $squirrelmail_plugin_hooks['left_main_before']['mail_fetch''mail_fetch_login';
  23.     $squirrelmail_plugin_hooks['optpage_register_block']['mail_fetch''mailfetch_optpage_register_block';
  24.     $squirrelmail_plugin_hooks['rename_or_delete_folder']['mail_fetch''mail_fetch_folderact';
  25. }
  26.  
  27. /**
  28.  * display link in menu line
  29.  * @private
  30.  */
  31. function mail_fetch_link({
  32.     include_once (SM_PATH 'plugins/mail_fetch/functions.php');
  33.     return mail_fetch_link_do();
  34. }
  35.  
  36. /**
  37.  * Fetch pop3 mails on login.
  38.  * @private
  39.  */
  40. function mail_fetch_login({
  41.     include_once (SM_PATH 'plugins/mail_fetch/functions.php');
  42. }
  43.  
  44. /**
  45.  * Adds preference that is used to detect new logins
  46.  * @private
  47.  */
  48. function mail_fetch_setnew({
  49.     include_once (SM_PATH 'plugins/mail_fetch/functions.php');
  50. }
  51.  
  52. /**
  53.  * Add plugin option block
  54.  * @private
  55.  */
  56.     include_once (SM_PATH 'plugins/mail_fetch/functions.php');
  57. }
  58.  
  59. /**
  60.  * Update mail_fetch settings when folders are renamed or deleted.
  61.  * @since 1.5.1 and 1.4.5
  62.  * @private
  63.  */
  64. function mail_fetch_folderact($args{
  65.     include_once (SM_PATH 'plugins/mail_fetch/functions.php');
  66. }

Documentation generated on Tue, 17 Apr 2018 04:24:22 +0200 by phpDocumentor 1.4.3