28a7aca5cc36f83d81f62b219afe92708d50289c
3 * Bug Report plugin - setup script
5 * @copyright 1999-2016 The SquirrelMail Project Team
6 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
9 * @subpackage bug_report
13 * Initialize the bug report plugin
20 function squirrelmail_plugin_init_bug_report() {
21 global $squirrelmail_plugin_hooks;
23 $squirrelmail_plugin_hooks['template_construct_page_header.tpl']['bug_report']
24 = 'bug_report_button';
25 $squirrelmail_plugin_hooks['optpage_loadhook_display']['bug_report']
31 * Show the button in the main bar
36 function bug_report_button() {
37 include_once(SM_PATH
. 'plugins/bug_report/functions.php');
38 return bug_report_button_do();
43 * Register bug report option block
50 function bug_report_block() {
51 include_once(SM_PATH
.'plugins/bug_report/functions.php');
52 bug_report_block_do();
56 * Returns info about this plugin
59 function bug_report_info() {
61 'english_name' => 'Bug Report',
63 'SquirrelMail Team' => array(),
66 'required_sm_version' => 'CORE',
67 'requires_configuration' => 0,
68 'summary' => 'Helps with sending bug reports to the SquirrelMail Developers. Collects a lot of useful information about your system.',
69 'details' => 'When people stumble across a bug, which may happen in a work-in-progress, often times they would like to help out the software and get rid of the bug. Sometimes, these people don\'t know much about the system and how it is set up -- they know enough to make the bug happen for them. This bug report plugin is designed to gather all of the non-private information for the user automatically, so that the user doesn\'t need to know more than how to trigger the bug.',
76 * Returns version info about this plugin
79 function bug_report_version() {
80 $info = bug_report_info();
81 return $info['version'];