XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
xoops_version.php
Go to the documentation of this file.
1 <?php
2 // start hack by Trabis
3 if (!class_exists('ProtectorRegistry')) exit('Registry not found');
4 
6 $mydirname = $registry->getEntry('mydirname');
7 $mydirpath = $registry->getEntry('mydirpath');
8 $language = $registry->getEntry('language');
9 // end hack by Trabis
10 
11 if( file_exists( dirname(__FILE__).'/language/'.$language.'/modinfo.php' ) ) {
12  include dirname(__FILE__).'/language/'.$language.'/modinfo.php' ;
13 } else if( file_exists( dirname(__FILE__).'/language/english/modinfo.php' ) ) {
14  include dirname(__FILE__).'/language/english/modinfo.php' ;
15 }
16 $constpref = '_MI_' . strtoupper( $mydirname ) ;
17 // end hack
18 
19 $modversion['name'] = constant($constpref.'_NAME') ;
20 $modversion['description'] = constant($constpref.'_DESC') ;
21 $modversion['version'] = file_get_contents( dirname(__FILE__).'/include/version.txt' ) ;
22 $modversion['credits'] = "PEAK Corp." ;
23 $modversion['author'] = "GIJ=CHECKMATE<br />PEAK Corp.(http://www.peak.ne.jp/)" ;
24 $modversion['help'] = 'page=help';
25 $modversion['license'] = 'GNU GPL 2.0';
26 $modversion['license_url'] = "www.gnu.org/licenses/gpl-2.0.html/";
27 $modversion['official'] = 1 ;
28 $modversion['image'] = file_exists( $mydirpath.'/module_icon.png' ) ? 'module_icon.png' : 'module_icon.php' ;
29 $modversion['iconbig'] = 'module_icon.php?file=iconbig' ;
30 $modversion['iconsmall'] = 'module_icon.php?file=iconsmall' ;
31 $modversion['dirname'] = $mydirname ;
32 $modversion['dirmoduleadmin'] = 'Frameworks/moduleclasses';
33 $modversion['icons16'] = 'Frameworks/moduleclasses/icons/16';
34 $modversion['icons32'] = 'Frameworks/moduleclasses/icons/32';
35 
36 //about
37 $modversion['release_date'] = '2011/10/08';
38 $modversion["module_website_url"] = "http://www.xoops.org/";
39 $modversion["module_website_name"] = "XOOPS";
40 $modversion["module_status"] = "Final";
41 $modversion['min_php']='5.2';
42 $modversion['min_xoops']="2.5";
43 // start hack by Mage
44 // Admin menu
45 // Set to 1 if you want to display menu generated by system module
46 $modversion['system_menu'] = 1 ;
47 // end hack by Mage
48 
49 // Any tables can't be touched by modulesadmin.
50 $modversion['sqlfile'] = false ;
51 $modversion['tables'] = array() ;
52 
53 // Admin things
54 $modversion['hasAdmin'] = 1;
55 $modversion['adminindex'] = "admin/index.php";
56 $modversion['adminmenu'] = "admin/admin_menu.php";
57 
58 // Templates
59 
60 // Blocks
61 $modversion['blocks'] = array() ;
62 
63 // Menu
64 $modversion['hasMain'] = 0;
65 
66 // Config
67 $modversion['config'][1] = array(
68  'name' => 'global_disabled' ,
69  'title' => $constpref.'_GLOBAL_DISBL' ,
70  'description' => $constpref.'_GLOBAL_DISBLDSC' ,
71  'formtype' => 'yesno' ,
72  'valuetype' => 'int' ,
73  'default' => "0" ,
74  'options' => array()
75 ) ;
76 $modversion['config'][] = array(
77  'name' => 'default_lang' ,
78  'title' => $constpref.'_DEFAULT_LANG' ,
79  'description' => $constpref.'_DEFAULT_LANGDSC' ,
80  'formtype' => 'text' ,
81  'valuetype' => 'text' ,
82  'default' => @$GLOBALS['xoopsConfig']['language'] ,
83  'options' => array()
84 ) ;
85 $modversion['config'][] = array(
86  'name' => 'log_level' ,
87  'title' => $constpref.'_LOG_LEVEL' ,
88  'description' => '' ,
89  'formtype' => 'select' ,
90  'valuetype' => 'int' ,
91  'default' => 255 ,
92  'options' => array( $constpref.'_LOGLEVEL0' => 0 , $constpref.'_LOGLEVEL15' => 15 , $constpref.'_LOGLEVEL63' => 63 , $constpref.'_LOGLEVEL255' => 255 )
93 ) ;
94 $modversion['config'][] = array(
95  'name' => 'banip_time0' ,
96  'title' => $constpref.'_BANIP_TIME0' ,
97  'description' => '' ,
98  'formtype' => 'text' ,
99  'valuetype' => 'int' ,
100  'default' => 86400 ,
101  'options' => array()
102 ) ;
103 $modversion['config'][] = array(
104  'name' => 'reliable_ips' ,
105  'title' => $constpref.'_RELIABLE_IPS' ,
106  'description' => $constpref.'_RELIABLE_IPSDSC' ,
107  'formtype' => 'textarea' ,
108  'valuetype' => 'array' ,
109  'default' => "^192.168.|127.0.0.1" ,
110  'options' => array()
111 ) ;
112 $modversion['config'][] = array(
113  'name' => 'session_fixed_topbit' ,
114  'title' => $constpref.'_HIJACK_TOPBIT' ,
115  'description' => $constpref.'_HIJACK_TOPBITDSC' ,
116  'formtype' => 'text' ,
117  'valuetype' => 'int' ,
118  'default' => 24 ,
119  'options' => array()
120 ) ;
121 $modversion['config'][] = array(
122  'name' => 'groups_denyipmove' ,
123  'title' => $constpref.'_HIJACK_DENYGP' ,
124  'description' => $constpref.'_HIJACK_DENYGPDSC' ,
125  'formtype' => 'group_multi' ,
126  'valuetype' => 'array' ,
127  'default' => array(1) ,
128  'options' => array()
129 ) ;
130 $modversion['config'][] = array(
131  'name' => 'san_nullbyte' ,
132  'title' => $constpref.'_SAN_NULLBYTE' ,
133  'description' => $constpref.'_SAN_NULLBYTEDSC' ,
134  'formtype' => 'yesno' ,
135  'valuetype' => 'int' ,
136  'default' => "1" ,
137  'options' => array()
138 ) ;
139 /* $modversion['config'][] = array(
140  'name' => 'die_nullbyte' ,
141  'title' => $constpref.'_DIE_NULLBYTE' ,
142  'description' => $constpref.'_DIE_NULLBYTEDSC' ,
143  'formtype' => 'yesno' ,
144  'valuetype' => 'int' ,
145  'default' => "1" ,
146  'options' => array()
147 ) ; */
148 $modversion['config'][] = array(
149  'name' => 'die_badext' ,
150  'title' => $constpref.'_DIE_BADEXT' ,
151  'description' => $constpref.'_DIE_BADEXTDSC' ,
152  'formtype' => 'yesno' ,
153  'valuetype' => 'int' ,
154  'default' => "1" ,
155  'options' => array()
156 ) ;
157 $modversion['config'][] = array(
158  'name' => 'contami_action' ,
159  'title' => $constpref.'_CONTAMI_ACTION' ,
160  'description' => $constpref.'_CONTAMI_ACTIONDS' ,
161  'formtype' => 'select' ,
162  'valuetype' => 'int' ,
163  'default' => 3 ,
164  'options' => array( $constpref.'_OPT_NONE' => 0 , $constpref.'_OPT_EXIT' => 3 , $constpref.'_OPT_BIPTIME0' => 7 , $constpref.'_OPT_BIP' => 15 )
165 ) ;
166 $modversion['config'][] = array(
167  'name' => 'isocom_action' ,
168  'title' => $constpref.'_ISOCOM_ACTION' ,
169  'description' => $constpref.'_ISOCOM_ACTIONDSC' ,
170  'formtype' => 'select' ,
171  'valuetype' => 'int' ,
172  'default' => 0 ,
173  'options' => array( $constpref.'_OPT_NONE' => 0 , $constpref.'_OPT_SAN' => 1 , $constpref.'_OPT_EXIT' => 3 , $constpref.'_OPT_BIPTIME0' => 7 , $constpref.'_OPT_BIP' => 15 )
174 ) ;
175 $modversion['config'][] = array(
176  'name' => 'union_action' ,
177  'title' => $constpref.'_UNION_ACTION' ,
178  'description' => $constpref.'_UNION_ACTIONDSC' ,
179  'formtype' => 'select' ,
180  'valuetype' => 'int' ,
181  'default' => 0 ,
182  'options' => array( $constpref.'_OPT_NONE' => 0 , $constpref.'_OPT_SAN' => 1 , $constpref.'_OPT_EXIT' => 3 , $constpref.'_OPT_BIPTIME0' => 7 , $constpref.'_OPT_BIP' => 15 )
183 ) ;
184 $modversion['config'][] = array(
185  'name' => 'id_forceintval' ,
186  'title' => $constpref.'_ID_INTVAL' ,
187  'description' => $constpref.'_ID_INTVALDSC' ,
188  'formtype' => 'yesno' ,
189  'valuetype' => 'int' ,
190  'default' => "0" ,
191  'options' => array()
192 ) ;
193 $modversion['config'][] = array(
194  'name' => 'file_dotdot' ,
195  'title' => $constpref.'_FILE_DOTDOT' ,
196  'description' => $constpref.'_FILE_DOTDOTDSC' ,
197  'formtype' => 'yesno' ,
198  'valuetype' => 'int' ,
199  'default' => "1" ,
200  'options' => array()
201 ) ;
202 $modversion['config'][] = array(
203  'name' => 'bf_count' ,
204  'title' => $constpref.'_BF_COUNT' ,
205  'description' => $constpref.'_BF_COUNTDSC' ,
206  'formtype' => 'text' ,
207  'valuetype' => 'int' ,
208  'default' => "10" ,
209  'options' => array()
210 ) ;
211 $modversion['config'][] = array(
212  'name' => 'bwlimit_count' ,
213  'title' => $constpref.'_BWLIMIT_COUNT' ,
214  'description' => $constpref.'_BWLIMIT_COUNTDSC' ,
215  'formtype' => 'text' ,
216  'valuetype' => 'int' ,
217  'default' => 0 ,
218  'options' => array()
219 ) ;
220 $modversion['config'][] = array(
221  'name' => 'dos_skipmodules' ,
222  'title' => $constpref.'_DOS_SKIPMODS' ,
223  'description' => $constpref.'_DOS_SKIPMODSDSC' ,
224  'formtype' => 'text' ,
225  'valuetype' => 'text' ,
226  'default' => "" ,
227  'options' => array()
228 ) ;
229 $modversion['config'][] = array(
230  'name' => 'dos_expire' ,
231  'title' => $constpref.'_DOS_EXPIRE' ,
232  'description' => $constpref.'_DOS_EXPIREDSC' ,
233  'formtype' => 'text' ,
234  'valuetype' => 'int' ,
235  'default' => "60" ,
236  'options' => array()
237 ) ;
238 $modversion['config'][] = array(
239  'name' => 'dos_f5count' ,
240  'title' => $constpref.'_DOS_F5COUNT' ,
241  'description' => $constpref.'_DOS_F5COUNTDSC' ,
242  'formtype' => 'text' ,
243  'valuetype' => 'int' ,
244  'default' => "20" ,
245  'options' => array()
246 ) ;
247 $modversion['config'][] = array(
248  'name' => 'dos_f5action' ,
249  'title' => $constpref.'_DOS_F5ACTION' ,
250  'description' => '' ,
251  'formtype' => 'select' ,
252  'valuetype' => 'text' ,
253  'default' => "exit" ,
254  'options' => array( $constpref.'_DOSOPT_NONE' => 'none' , $constpref.'_DOSOPT_SLEEP' => 'sleep' , $constpref.'_DOSOPT_EXIT' => 'exit' , $constpref.'_DOSOPT_BIPTIME0' => 'biptime0' , $constpref.'_DOSOPT_BIP' => 'bip' , $constpref.'_DOSOPT_HTA' => 'hta' )
255 ) ;
256 $modversion['config'][] = array(
257  'name' => 'dos_crcount' ,
258  'title' => $constpref.'_DOS_CRCOUNT' ,
259  'description' => $constpref.'_DOS_CRCOUNTDSC' ,
260  'formtype' => 'text' ,
261  'valuetype' => 'int' ,
262  'default' => "40" ,
263  'options' => array()
264 ) ;
265 $modversion['config'][] = array(
266  'name' => 'dos_craction' ,
267  'title' => $constpref.'_DOS_CRACTION' ,
268  'description' => '' ,
269  'formtype' => 'select' ,
270  'valuetype' => 'text' ,
271  'default' => "exit" ,
272  'options' => array( $constpref.'_DOSOPT_NONE' => 'none' , $constpref.'_DOSOPT_SLEEP' => 'sleep' , $constpref.'_DOSOPT_EXIT' => 'exit' , $constpref.'_DOSOPT_BIPTIME0' => 'biptime0' , $constpref.'_DOSOPT_BIP' => 'bip' , $constpref.'_DOSOPT_HTA' => 'hta' )
273 ) ;
274 $modversion['config'][] = array(
275  'name' => 'dos_crsafe' ,
276  'title' => $constpref.'_DOS_CRSAFE' ,
277  'description' => $constpref.'_DOS_CRSAFEDSC' ,
278  'formtype' => 'text' ,
279  'valuetype' => 'text' ,
280  'default' => "/(bingbot|Googlebot|Yahoo! Slurp)/i" ,
281  'options' => array()
282 ) ;
283 $modversion['config'][] = array(
284  'name' => 'bip_except' ,
285  'title' => $constpref.'_BIP_EXCEPT' ,
286  'description' => $constpref.'_BIP_EXCEPTDSC' ,
287  'formtype' => 'group_multi' ,
288  'valuetype' => 'array' ,
289  'default' => array(1) ,
290  'options' => array()
291 ) ;
292 $modversion['config'][] = array(
293  'name' => 'disable_features' ,
294  'title' => $constpref.'_DISABLES' ,
295  'description' => '' ,
296  'formtype' => 'select' ,
297  'valuetype' => 'int' ,
298  'default' => 1 ,
299  'options' => array('xmlrpc'=>1,'xmlrpc + 2.0.9.2 bugs'=>1025,'_NONE'=>0)
300 ) ;
301 $modversion['config'][] = array(
302  'name' => 'enable_dblayertrap' ,
303  'title' => $constpref.'_DBLAYERTRAP' ,
304  'description' => $constpref.'_DBLAYERTRAPDSC' ,
305  'formtype' => 'yesno' ,
306  'valuetype' => 'int' ,
307  'default' => 1 ,
308  'options' => array()
309 ) ;
310 $modversion['config'][] = array(
311  'name' => 'dblayertrap_wo_server' ,
312  'title' => $constpref.'_DBTRAPWOSRV' ,
313  'description' => $constpref.'_DBTRAPWOSRVDSC' ,
314  'formtype' => 'yesno' ,
315  'valuetype' => 'int' ,
316  'default' => 0 ,
317  'options' => array()
318 ) ;
319 $modversion['config'][] = array(
320  'name' => 'enable_bigumbrella' ,
321  'title' => $constpref.'_BIGUMBRELLA' ,
322  'description' => $constpref.'_BIGUMBRELLADSC' ,
323  'formtype' => 'yesno' ,
324  'valuetype' => 'int' ,
325  'default' => 1 ,
326  'options' => array()
327 ) ;
328 $modversion['config'][] = array(
329  'name' => 'spamcount_uri4user' ,
330  'title' => $constpref.'_SPAMURI4U' ,
331  'description' => $constpref.'_SPAMURI4UDSC' ,
332  'formtype' => 'textbox' ,
333  'valuetype' => 'int' ,
334  'default' => 0 ,
335  'options' => array()
336 ) ;
337 $modversion['config'][] = array(
338  'name' => 'spamcount_uri4guest' ,
339  'title' => $constpref.'_SPAMURI4G' ,
340  'description' => $constpref.'_SPAMURI4GDSC' ,
341  'formtype' => 'textbox' ,
342  'valuetype' => 'int' ,
343  'default' => 5 ,
344  'options' => array()
345 ) ;
346 
347 $modversion['config'][] = array(
348  'name' => 'stopforumspam_action' ,
349  'title' => $constpref.'_STOPFORUMSPAM_ACTION' ,
350  'description' => $constpref.'_STOPFORUMSPAM_ACTIONDSC' ,
351  'formtype' => 'select' ,
352  'valuetype' => 'text' ,
353  'default' => 'none' ,
354  'options' => array( '_NONE' => 'none', $constpref.'_OPT_NONE' => 'log' , $constpref.'_OPT_SAN' => 'san' , $constpref.'_OPT_BIPTIME0' => 'biptime0' , $constpref.'_OPT_BIP' => 'bip')
355 ) ;
356 
357 
358 
359 // Search
360 $modversion['hasSearch'] = 0;
361 
362 // Comments
363 $modversion['hasComments'] = 0;
364 
365 // Config Settings (only for modules that need config settings generated automatically)
366 
367 // Notification
368 
369 $modversion['hasNotification'] = 0;
370 
371 // onInstall, onUpdate, onUninstall
372 $modversion['onInstall'] = 'oninstall.php' ;
373 $modversion['onUpdate'] = 'onupdate.php' ;
374 $modversion['onUninstall'] = 'onuninstall.php' ;
375 
376 ?>