squirrelmail-webmail  1.4.22
About: SquirrelMail is a standards-based webmail package with strong MIME support, address books, and folder manipulation (written in PHP4).
  Fossies Dox: squirrelmail-webmail-1.4.22.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

functions.php
Go to the documentation of this file.
1 <?php
2 
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 
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 }
55 
56 
getPref
getPref($data_dir, $username, $string, $default='')
Definition: db_prefs.php:316
$data_dir
$data_dir
Definition: config_default.php:499
$username
global $username
Definition: validate.php:55
SMOPT_REFRESH_ALL
const SMOPT_REFRESH_ALL
Definition: options.php:46
bug_report_button_do
bug_report_button_do()
Definition: functions.php:18
_
_($str)
Definition: gettext.php:160
bug_report_block_do
bug_report_block_do()
Definition: functions.php:41
$color
$color
Definition: load_prefs.php:28
SMOPT_TYPE_BOOLEAN
const SMOPT_TYPE_BOOLEAN
Definition: options.php:25
displayInternalLink
displayInternalLink($path, $text, $target='')
Definition: page_header.php:101