|
1
|
|
|
<?php |
|
2
|
|
|
/** |
|
3
|
|
|
* XOOPS - PHP Content Management System |
|
4
|
|
|
* Copyright (c) 2001 - 2006 <http://www.xoops.org/> |
|
5
|
|
|
* |
|
6
|
|
|
* Module: xoopsinfo 2.0 |
|
7
|
|
|
* Licence : GPL |
|
8
|
|
|
* Authors : |
|
9
|
|
|
* - Jmorris |
|
10
|
|
|
* - Marco |
|
11
|
|
|
* - Christian |
|
12
|
|
|
* - DuGris (http://www.dugris.info) |
|
13
|
|
|
*/ |
|
14
|
|
|
|
|
15
|
|
|
if (!defined('XOOPS_ROOT_PATH')) { |
|
16
|
|
|
die('XOOPS root path not defined'); |
|
17
|
|
|
} |
|
18
|
|
|
|
|
19
|
|
|
include_once(XOOPS_ROOT_PATH . '/class/uploader.php'); |
|
20
|
|
|
|
|
21
|
|
|
include_once(XOOPS_ROOT_PATH . '/modules/xoopsinfo/include/functions.php'); |
|
22
|
|
|
$phpsysinfo_path = XoopsInfo_moduleoption('xi_phpsysinfo_folder'); |
|
23
|
|
|
$phpsecinfo_path = XoopsInfo_moduleoption('xi_phpsecinfo_folder'); |
|
24
|
|
|
|
|
25
|
|
|
$moduleDirName = basename(dirname(__DIR__)); |
|
26
|
|
|
|
|
27
|
|
|
$moduleHandler = xoops_getHandler('module'); |
|
28
|
|
|
$module = $moduleHandler->getByDirname($moduleDirName); |
|
29
|
|
|
$pathIcon32 = '../../' . $module->getInfo('sysicons32'); |
|
30
|
|
|
$pathModIcon32 = './' . $module->getInfo('modicons32'); |
|
31
|
|
|
xoops_loadLanguage('modinfo', $module->dirname()); |
|
32
|
|
|
|
|
33
|
|
|
$xoopsModuleAdminPath = XOOPS_ROOT_PATH . '/' . $module->getInfo('dirmoduleadmin'); |
|
34
|
|
|
include_once $xoopsModuleAdminPath . '/language/english/main.php'; |
|
35
|
|
|
|
|
36
|
|
|
|
|
37
|
|
|
$adminmenu[] = array( |
|
38
|
|
|
'title' => _AM_MODULEADMIN_HOME, |
|
39
|
|
|
'link' => 'admin/index.php', |
|
40
|
|
|
'icon' => $pathIcon32 . '/home.png' |
|
41
|
|
|
); |
|
42
|
|
|
|
|
43
|
|
|
$adminmenu[] = array( |
|
44
|
|
|
'title' => _MI_XI_ADMENU1, |
|
45
|
|
|
'link' => 'admin/main.php', |
|
46
|
|
|
'icon' => $pathIcon32 . '/manage.png' |
|
47
|
|
|
); |
|
48
|
|
|
|
|
49
|
|
|
$adminmenu[] = array( |
|
50
|
|
|
'title' => _MI_XI_ADMENU2, |
|
51
|
|
|
'link' => 'admin/php.php', |
|
52
|
|
|
'icon' => $pathIcon32 . '/administration.png' |
|
53
|
|
|
); |
|
54
|
|
|
|
|
55
|
|
|
$adminmenu[] = array( |
|
56
|
|
|
'title' => _MI_XI_ADMENU3, |
|
57
|
|
|
'link' => 'admin/mysqlinfo.php', |
|
58
|
|
|
'icon' => $pathIcon32 . '/list.png' |
|
59
|
|
|
); |
|
60
|
|
|
|
|
61
|
|
|
|
|
62
|
|
|
|
|
63
|
|
|
//if (!empty($phpsysinfo_path) && file_exists(XOOPS_ROOT_PATH . $phpsysinfo_path . '/index.php')) { |
|
|
|
|
|
|
64
|
|
|
// if (!defined("_PHPSYSINFO")) { |
|
65
|
|
|
// define('_PHPSYSINFO', 1); |
|
66
|
|
|
// } |
|
67
|
|
|
$adminmenu[] = array( |
|
68
|
|
|
'title' => _MI_XI_ADMENU8, |
|
69
|
|
|
'link' => 'admin/phpsysinfo.php', |
|
70
|
|
|
'icon' => $pathIcon32 . '/faq.png' |
|
71
|
|
|
); |
|
72
|
|
|
//} |
|
73
|
|
|
|
|
74
|
|
|
//if (!empty($phpsecinfo_path) && file_exists(XOOPS_ROOT_PATH . $phpsecinfo_path . '/index.php')) { |
|
|
|
|
|
|
75
|
|
|
// if (!defined("_PHPSECINFO")) { |
|
76
|
|
|
// define('_PHPSECINFO', 1); |
|
77
|
|
|
// } |
|
78
|
|
|
$adminmenu[] = array( |
|
79
|
|
|
'title' => _MI_XI_ADMENU9, |
|
80
|
|
|
'link' => 'admin/phpsecinfo.php', |
|
81
|
|
|
'icon' => $pathIcon32 . '/firewall.png' |
|
82
|
|
|
); |
|
83
|
|
|
//} |
|
84
|
|
|
|
|
85
|
|
|
$adminmenu[] = array( |
|
86
|
|
|
'title' => _MI_XI_ADMENU4, |
|
87
|
|
|
'link' => 'admin/modules.php', |
|
88
|
|
|
'icon' => $pathIcon32 . '/exec.png' |
|
89
|
|
|
); |
|
90
|
|
|
|
|
91
|
|
|
$adminmenu[] = array( |
|
92
|
|
|
'title' => _MI_XI_ADMENU5, |
|
93
|
|
|
'link' => 'admin/editors.php', |
|
94
|
|
|
'icon' => $pathIcon32 . '/translations.png' |
|
95
|
|
|
); |
|
96
|
|
|
|
|
97
|
|
|
$adminmenu[] = array( |
|
98
|
|
|
'title' => _MI_XI_ADMENU6, |
|
99
|
|
|
'link' => 'admin/templates.php', |
|
100
|
|
|
'icon' => $pathIcon32 . '/watermark.png' |
|
101
|
|
|
); |
|
102
|
|
|
|
|
103
|
|
|
|
|
104
|
|
|
//if (defined("_XI_MIMETYPE")) { |
|
|
|
|
|
|
105
|
|
|
$adminmenu[] = array( |
|
106
|
|
|
'title' => _MI_XI_ADMENU7, |
|
107
|
|
|
'link' => 'admin/mimetypes.php', |
|
108
|
|
|
'icon' => $pathIcon32 . '/type.png' |
|
109
|
|
|
); |
|
110
|
|
|
//} |
|
111
|
|
|
|
|
112
|
|
|
//$adminmenu[] = array( |
|
|
|
|
|
|
113
|
|
|
// 'title' => _MI_XI_NEWVERSION, |
|
114
|
|
|
// 'link' => 'admin/main.php?op=newversion', |
|
115
|
|
|
// 'icon' => $pathIcon32 . '/update.png' |
|
116
|
|
|
//); |
|
117
|
|
|
|
|
118
|
|
|
|
|
119
|
|
|
$adminmenu[] = array( |
|
120
|
|
|
'title' => _AM_MODULEADMIN_ABOUT, |
|
121
|
|
|
'link' => 'admin/about.php', |
|
122
|
|
|
'icon' => $pathIcon32 . '/about.png' |
|
123
|
|
|
); |
|
124
|
|
|
|
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.