fsf changes, meant to be rebased on upstream
[squirrelmail.git] / plugins / bug_report / setup.php
1 <?php
2 /**
3 * Bug Report plugin - setup script
4 *
5 * @copyright 1999-2021 The SquirrelMail Project Team
6 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
7 * @version $Id$
8 * @package plugins
9 * @subpackage bug_report
10 */
11
12 /**
13 * Initialize the bug report plugin
14 *
15 * @return void
16 *
17 * @access private
18 *
19 */
20 function squirrelmail_plugin_init_bug_report() {
21 global $squirrelmail_plugin_hooks;
22
23 $squirrelmail_plugin_hooks['template_construct_page_header.tpl']['bug_report']
24 = 'bug_report_button';
25 $squirrelmail_plugin_hooks['optpage_loadhook_display']['bug_report']
26 = 'bug_report_block';
27 }
28
29
30 /**
31 * Show the button in the main bar
32 *
33 * @access private
34 *
35 */
36 function bug_report_button() {
37 include_once(SM_PATH . 'plugins/bug_report/functions.php');
38 return bug_report_button_do();
39 }
40
41 /**
42 *
43 * Register bug report option block
44 *
45 * @since 1.5.1
46 *
47 * @access private
48 *
49 */
50 function bug_report_block() {
51 include_once(SM_PATH.'plugins/bug_report/functions.php');
52 bug_report_block_do();
53 }
54
55 /**
56 * Returns info about this plugin
57 *
58 */
59 function bug_report_info() {
60 return array(
61 'english_name' => 'Bug Report',
62 'authors' => array(
63 'SquirrelMail Team' => array(),
64 ),
65 'version' => 'CORE',
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.',
70 );
71 }
72
73
74
75 /**
76 * Returns version info about this plugin
77 *
78 */
79 function bug_report_version() {
80 $info = bug_report_info();
81 return $info['version'];
82 }