XOOPS  2.6.0
xoops_version.php
Go to the documentation of this file.
1 <?php
2 /*
3  You may not change or alter any portion of this comment or credits
4  of supporting developers from this source code or any supporting source code
5  which is considered copyrighted (c) material of the original comment or credit authors.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 */
11 
22 $modversion = array();
24 $modversion['description'] = _MI_MONOLOG_DSC;
25 $modversion['version'] = 0.1;
26 $modversion['author'] = 'Richard Griffith';
27 $modversion['nickname'] = 'geekwright';
28 $modversion['credits'] = 'The XOOPS Project';
29 $modversion['license'] = 'GNU GPL 2.0';
30 $modversion['license_url'] = 'www.gnu.org/licenses/gpl-2.0.html/';
31 $modversion['official'] = 1;
32 $modversion['help'] = 'page=help';
33 $modversion['helpsection'][] = array(
34  'name' => _MI_MONOLOG_HELP,
35  'link' => 'page=help'
36 );
37 $modversion['helpsection'][] = array(
38  'name' => _MI_MONOLOG_HACKING,
39  'link' => 'page=hacking'
40 );
41 $modversion['image'] = 'images/logo.png';
42 $modversion['dirname'] = 'monolog';
43 
44 //about
45 $modversion['release_date'] = '2013/09/05';
46 $modversion['module_website_url'] = 'http://www.xoops.org/';
47 $modversion['module_website_name'] = 'XOOPS';
48 $modversion['module_status'] = 'ALPHA 1';
49 $modversion['min_php'] = '5.3.7';
50 $modversion['min_xoops'] = '2.6.0';
51 
52 // paypal
53 /*
54 $modversion['paypal'] = array();
55 $modversion['paypal']['business'] = '';
56 $modversion['paypal']['item_name'] = '';
57 $modversion['paypal']['amount'] = 0;
58 $modversion['paypal']['currency_code'] = '';
59 */
60 
61 // Admin menu
62 // Set to 1 if you want to display menu generated by system module
63 $modversion['system_menu'] = 1;
64 
65 /*
66  Manage extension
67  */
68 $modversion['extension'] = 1;
69 $modversion['extension_module'][] = 'system';
70 
71 // Admin things
72 $modversion['hasAdmin'] = 1;
73 $modversion['adminindex'] = 'admin/index.php';
74 $modversion['adminmenu'] = 'admin/menu.php';
75 
76 // Menu
77 $modversion['hasMain'] = 0;
78 
79 // Preferences
80 $modversion['config'][] = array(
81  'name' => 'monolog_enable',
82  'title' => '_MI_MONOLOG_ENABLE',
83  'description' => '',
84  'formtype' => 'yesno',
85  'valuetype' => 'int',
86  'default' => 0, // default to off to give chance to review module access rights
87 );
88 
89 $modversion['config'][] = array(
90  'name' => 'include_blocks',
91  'title' => '_MI_MONOLOG_INCLUDE_BLOCKS',
92  'description' => '',
93  'formtype' => 'yesno',
94  'valuetype' => 'int',
95  'default' => 1,
96 );
97 
98 $modversion['config'][] = array(
99  'name' => 'include_deprecated',
100  'title' => '_MI_MONOLOG_INCLUDE_DEPRECATED',
101  'description' => '',
102  'formtype' => 'yesno',
103  'valuetype' => 'int',
104  'default' => 1,
105 );
106 
107 $modversion['config'][] = array(
108  'name' => 'include_extra',
109  'title' => '_MI_MONOLOG_INCLUDE_EXTRA',
110  'description' => '',
111  'formtype' => 'yesno',
112  'valuetype' => 'int',
113  'default' => 1,
114 );
115 
116 $modversion['config'][] = array(
117  'name' => 'include_queries',
118  'title' => '_MI_MONOLOG_INCLUDE_QUERIES',
119  'description' => '',
120  'formtype' => 'yesno',
121  'valuetype' => 'int',
122  'default' => 1,
123 );
124 
125 $modversion['config'][] = array(
126  'name' => 'include_timers',
127  'title' => '_MI_MONOLOG_INCLUDE_TIMERS',
128  'description' => '',
129  'formtype' => 'yesno',
130  'valuetype' => 'int',
131  'default' => 1,
132 );
133 
134 $modversion['config'][] = array(
135  'name' => 'logging_threshold',
136  'title' => '_MI_MONOLOG_THRESHOLD_LEVEL',
137  'description' => '',
138  'formtype' => 'select',
139  'valuetype' => 'text',
140  'default' => 'debug',
141  'options' => array_flip(
142  array(
143  'debug' => _MI_MONOLOG_THRESHOLD_DEBUG,
144  'info' => _MI_MONOLOG_THRESHOLD_INFO,
145  'warning' => _MI_MONOLOG_THRESHOLD_WARNING,
146  'error' => _MI_MONOLOG_THRESHOLD_ERROR,
147  )
148  ),
149 );
150 
151 $modversion['config'][] = array(
152  'name' => 'log_file_path',
153  'title' => '_MI_MONOLOG_LOG_FILE_PATH',
154  'description' => '',
155  'formtype' => 'textbox',
156  'valuetype' => 'text',
157  'default' => \XoopsBaseConfig::get('var-path') . '/logs/xoops_monolog.log',
158  'options' => array(),
159 );
160 
161 $modversion['config'][] = array(
162  'name' => 'max_versions',
163  'title' => '_MI_MONOLOG_LOG_MAX_VERSIONS',
164  'description' => '',
165  'formtype' => 'textbox',
166  'valuetype' => 'int',
167  'default' => 7,
168  'options' => array(),
169 );
const _MI_MONOLOG_THRESHOLD_DEBUG
Definition: modinfo.php:35
const _MI_MONOLOG_DSC
Definition: modinfo.php:20
const _MI_MONOLOG_NAME
Definition: modinfo.php:19
const _MI_MONOLOG_THRESHOLD_WARNING
Definition: modinfo.php:37
const _MI_MONOLOG_THRESHOLD_ERROR
Definition: modinfo.php:38
static get($name)
$modversion
const _MI_MONOLOG_HACKING
Definition: modinfo.php:50
const _MI_MONOLOG_THRESHOLD_INFO
Definition: modinfo.php:36
const _MI_MONOLOG_HELP
Definition: modinfo.php:49