Source for file setup.php
Documentation is available at setup.php
* Bug Report plugin - setup script
* @copyright © 1999-2006 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: setup.php,v 1.26 2006/07/15 12:01:09 tokul Exp $
* Initialize the bug report plugin
function squirrelmail_plugin_init_bug_report() {
global $squirrelmail_plugin_hooks;
$squirrelmail_plugin_hooks['menuline']['bug_report'] =
'bug_report_button';
$squirrelmail_plugin_hooks['loading_prefs']['bug_report'] =
'bug_report_load';
$squirrelmail_plugin_hooks['optpage_loadhook_display']['bug_report'] =
'bug_report_block';
* Show the button in the main bar
function bug_report_button() {
include_once(SM_PATH.
'plugins/bug_report/functions.php');
global $bug_report_visible;
* Loads bug report options
function bug_report_load() {
global $username, $data_dir;
global $bug_report_visible;
$bug_report_visible = (bool)
getPref($data_dir, $username, 'bug_report_visible',false);
* Register bug report option block
function bug_report_block() {
include_once(SM_PATH.
'plugins/bug_report/functions.php');
$optpage_data['grps']['bug_report'] =
_("Bug Reports");
// FIXME: option needs refresh in SMOPT_REFRESH_RIGHT
// (menulink is processed before options are saved/loaded)
'name' =>
'bug_report_visible',
'caption' =>
_("Show button in toolbar"),
$optpage_data['vals']['bug_report'] =
$optionValues;
Documentation generated on Sat, 07 Oct 2006 16:13:30 +0300 by phpDocumentor 1.3.0RC6