X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fbug_report%2Fsetup.php;h=3e782d4816dfe8ae1185cf8c04ce0a2bcd91ae17;hb=e50f5ac2682d655013d18d97f9a2aa30b7ed9485;hp=fcdda93ebe5dc0c03a6061aac38e89d5bd8a955d;hpb=d79e01f57042179bb540361915780eaeb0064e87;p=squirrelmail.git diff --git a/plugins/bug_report/setup.php b/plugins/bug_report/setup.php index fcdda93e..3e782d48 100644 --- a/plugins/bug_report/setup.php +++ b/plugins/bug_report/setup.php @@ -3,19 +3,25 @@ /** * setup.php * - * Copyright (c) 1999-2002 The SquirrelMail development team + * Copyright (c) 1999-2005 The SquirrelMail development team * Licensed under the GNU GPL. For full terms see the file COPYING. * - * This is a standard Squirrelmail-1.2 API for plugins. + * This is a standard SquirrelMail 1.2 API for plugins. * - * $Id$ + * @version $Id$ + * @package plugins + * @subpackage bug_report */ /* This button fills out a form with your setup information already gathered -- all you have to do is type. */ -/* Initialize the bug report plugin */ +/** + * Initialize the bug report plugin + * @return void + * @access private + */ function squirrelmail_plugin_init_bug_report() { global $squirrelmail_plugin_hooks; @@ -26,31 +32,39 @@ function squirrelmail_plugin_init_bug_report() { } -/* Show the button in the main bar */ +/** + * Show the button in the main bar + * @access private + */ function bug_report_button() { - global $color, $bug_report_visible; + global $bug_report_visible; if (! $bug_report_visible) { return; } - displayInternalLink('plugins/bug_report/bug_report.php', 'Bug', ''); + displayInternalLink('plugins/bug_report/bug_report.php', _("Bug"), ''); echo "  \n"; } - +/** + * Saves bug report options + * @access private + */ function bug_report_save() { global $username,$data_dir; - global $bug_report_bug_report_visible; - if (isset($bug_report_bug_report_visible)) { + if( sqgetGlobalVar('bug_report_bug_report_visible', $vis, SQ_POST) ) { setPref($data_dir, $username, 'bug_report_visible', '1'); } else { setPref($data_dir, $username, 'bug_report_visible', ''); } } - +/** + * Loads bug report options + * @access private + */ function bug_report_load() { global $username, $data_dir; global $bug_report_visible; @@ -58,16 +72,22 @@ function bug_report_load() { $bug_report_visible = getPref($data_dir, $username, 'bug_report_visible'); } - +/** + * Adds bug report options to display page + * @access private + */ function bug_report_options() { global $bug_report_visible; - echo '' . _("Bug Reports:") . "\n" . - '' . html_tag('td',_("Bug Reports:"),'right','','style="white-space: nowrap;"') . "\n" . + ' ' . _("Show button in toolbar") . "\n"; + echo ' /> ' . _("Show button in toolbar") . "\n"; + + echo '' . + '' . _("Show system specs") . ''; } ?> \ No newline at end of file