Source for file functions.php

Documentation is available at functions.php

  1. <?php
  2.  
  3. /**
  4.  * functions.php
  5.  *
  6.  * Copyright (c) 1999-2020 The SquirrelMail Project Team
  7.  * Licensed under the GNU GPL. For full terms see the file COPYING.
  8.  *
  9.  * This is a standard Squirrelmail-1.2 API for plugins.
  10.  *
  11.  * $Id: functions.php 14840 2020-01-07 07:42:38Z pdontthink $
  12.  */
  13.  
  14.  
  15. /**
  16.  * Show the button in the main bar
  17.  */
  18. function bug_report_button_do({
  19.  
  20.     global $username$data_dir$color;
  21.  
  22.     $bug_report_visible getPref($data_dir$username'bug_report_visible');
  23.  
  24.     if ($bug_report_visible{
  25.         return;
  26.     }
  27.  
  28.     displayInternalLink('plugins/bug_report/bug_report.php'_("Bug")'');
  29.     echo "&nbsp;&nbsp;\n";
  30. }
  31.  
  32.  
  33. /**
  34.  * Register bug report option block
  35.  *
  36.  * @since 1.4.14
  37.  *
  38.  * @access private
  39.  *
  40.  */
  41. function bug_report_block_do({
  42.     global $username$data_dir$optpage_data$bug_report_visible;
  43.     $bug_report_visible getPref($data_dir$username'bug_report_visible'FALSE);
  44.     $optpage_data['grps']['bug_report'_("Bug Reports");
  45.     $optionValues array();
  46.     $optionValues[array(
  47.         'name'    => 'bug_report_visible',
  48.         'caption' => _("Show button in toolbar"),
  49.         'type'    => SMOPT_TYPE_BOOLEAN,
  50.         'refresh' => SMOPT_REFRESH_ALL,
  51.         'initial_value' => false
  52.         );
  53.     $optpage_data['vals']['bug_report'$optionValues;
  54. }

Documentation generated on Mon, 13 Jan 2020 04:24:39 +0100 by phpDocumentor 1.4.3