This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include
, or for example
via PHP's auto-loading mechanism.
1 | <?php declare(strict_types=1); |
||||
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 | |||||
12 | /** |
||||
13 | * @copyright XOOPS Project (https://xoops.org) |
||||
14 | * @license https://www.fsf.org/copyleft/gpl.html GNU public license |
||||
15 | * @since 1.0 |
||||
16 | * @author trabis <[email protected]> |
||||
17 | * @author The SmartFactory <www.smartfactory.ca> |
||||
18 | */ |
||||
19 | |||||
20 | use Xmf\Module\Admin; |
||||
21 | use XoopsModules\Publisher\Helper; |
||||
22 | |||||
23 | require_once \dirname(__DIR__) . '/preloads/autoloader.php'; |
||||
24 | |||||
25 | $moduleDirName = \basename(\dirname(__DIR__)); |
||||
26 | $moduleDirNameUpper = \mb_strtoupper($moduleDirName); |
||||
27 | |||||
28 | $helper = Helper::getInstance(); |
||||
29 | $helper->loadLanguage('common'); |
||||
30 | $helper->loadLanguage('feedback'); |
||||
31 | |||||
32 | // get path to icons |
||||
33 | $pathIcon32 = Admin::menuIconPath(''); |
||||
34 | $pathModIcon32 = $helper->getModule() |
||||
35 | ->getInfo('modicons32'); |
||||
36 | |||||
37 | $adminmenu[] = [ |
||||
38 | 'title' => _MI_PUBLISHER_ADMENU0, |
||||
39 | 'link' => 'admin/index.php', |
||||
40 | 'icon' => $pathIcon32 . '/home.png', |
||||
41 | ]; |
||||
42 | |||||
43 | $adminmenu[] = [ |
||||
44 | 'title' => _MI_PUBLISHER_ADMENU1, |
||||
45 | 'link' => 'admin/main.php', |
||||
46 | 'icon' => $pathIcon32 . '/manage.png', |
||||
47 | ]; |
||||
48 | |||||
49 | // Category |
||||
50 | |||||
51 | $adminmenu[] = [ |
||||
52 | 'title' => _MI_PUBLISHER_ADMENU2, |
||||
53 | 'link' => 'admin/category.php', |
||||
54 | 'icon' => $pathIcon32 . '/category.png', |
||||
55 | ]; |
||||
56 | |||||
57 | // Items |
||||
58 | $adminmenu[] = [ |
||||
59 | 'title' => _MI_PUBLISHER_ADMENU3, |
||||
60 | 'link' => 'admin/item.php', |
||||
61 | 'icon' => $pathIcon32 . '/content.png', |
||||
62 | ]; |
||||
63 | |||||
64 | // Fields |
||||
65 | $adminmenu[] = [ |
||||
66 | 'title' => _MI_PUBLISHER_ADMENU8, |
||||
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||||
67 | 'link' => 'admin/field.php', |
||||
68 | 'icon' => $pathIcon32 . '/insert_table_row.png', |
||||
69 | ]; |
||||
70 | |||||
71 | // Trello |
||||
72 | $adminmenu[] = [ |
||||
73 | 'title' => _MI_PUBLISHER_ADMENU7, |
||||
74 | 'link' => 'admin/trello.php', |
||||
75 | 'icon' => $pathIcon32 . '/extention.png', |
||||
76 | ]; |
||||
77 | |||||
78 | // Permissions |
||||
79 | $adminmenu[] = [ |
||||
80 | 'title' => _MI_PUBLISHER_ADMENU4, |
||||
81 | 'link' => 'admin/permissions.php', |
||||
82 | 'icon' => $pathIcon32 . '/permissions.png', |
||||
83 | ]; |
||||
84 | |||||
85 | // Blocks Admin |
||||
86 | $adminmenu[] = [ |
||||
87 | 'title' => _MI_PUBLISHER_ADMENU5, |
||||
88 | 'link' => 'admin/blocksadmin.php', |
||||
89 | 'icon' => $pathIcon32 . '/block.png', |
||||
90 | ]; |
||||
91 | // Mimetypes |
||||
92 | $adminmenu[] = [ |
||||
93 | 'title' => _MI_PUBLISHER_ADMENU6, |
||||
94 | 'link' => 'admin/mimetypes.php', |
||||
95 | 'icon' => $pathIcon32 . '/type.png', |
||||
96 | ]; |
||||
97 | |||||
98 | //$adminmenu[] = [ |
||||
99 | |||||
100 | // Preferences |
||||
101 | // array( |
||||
102 | // 'title' => _PREFERENCES, |
||||
103 | // 'link' => 'admin/preferences.php', |
||||
104 | // 'icon' => '../../' . $pathIcon32 . '/administration.png'), |
||||
105 | |||||
106 | /* |
||||
107 | //Comments |
||||
108 | array( |
||||
109 | "title" => _AM_PUBLISHER_COMMENTS, |
||||
110 | "link" => '../../modules/system/admin.php?fct=comments&module=' . $module->getVar('mid'), |
||||
111 | "icon" => './assets/images/icon32/folder_txt.png'), |
||||
112 | */ |
||||
113 | |||||
114 | //]; |
||||
115 | //Import |
||||
116 | $adminmenu[] = [ |
||||
117 | 'title' => _MI_PUBLISHER_IMPORT, |
||||
118 | 'link' => 'admin/import.php', |
||||
119 | 'icon' => $pathIcon32 . '/download.png', |
||||
120 | ]; |
||||
121 | |||||
122 | //Clone |
||||
123 | $adminmenu[] = [ |
||||
124 | 'title' => _MI_PUBLISHER_MENU_CLONE, |
||||
125 | 'link' => 'admin/clone.php', |
||||
126 | 'icon' => $pathModIcon32 . '/editcopy.png', |
||||
0 ignored issues
–
show
Are you sure
$pathModIcon32 of type array|string can be used in concatenation ?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
127 | ]; |
||||
128 | |||||
129 | // [ |
||||
130 | // 'title' => _MI_PUBLISHER_MENU_HISTORY, |
||||
131 | // 'link' => 'admin/history.php', |
||||
132 | // 'icon' => $pathModIcon32 . '/editcopy.png' |
||||
133 | // ], |
||||
134 | |||||
135 | //Feedback |
||||
136 | $adminmenu[] = [ |
||||
137 | 'title' => constant('CO_' . $moduleDirNameUpper . '_' . 'ADMENU_FEEDBACK'), |
||||
138 | 'link' => 'admin/feedback.php', |
||||
139 | 'icon' => $pathIcon32 . '/mail_foward.png', |
||||
140 | ]; |
||||
141 | |||||
142 | if (is_object($helper->getModule()) && $helper->getConfig('displayDeveloperTools')) { |
||||
143 | $adminmenu[] = [ |
||||
144 | 'title' => constant('CO_' . $moduleDirNameUpper . '_' . 'ADMENU_MIGRATE'), |
||||
145 | 'link' => 'admin/migrate.php', |
||||
146 | 'icon' => $pathIcon32 . '/database_go.png', |
||||
147 | ]; |
||||
148 | } |
||||
149 | |||||
150 | //About |
||||
151 | $adminmenu[] = [ |
||||
152 | 'title' => _MI_PUBLISHER_ABOUT, |
||||
153 | 'link' => 'admin/about.php', |
||||
154 | 'icon' => $pathIcon32 . '/about.png', |
||||
155 | ]; |
||||
156 | |||||
157 | $GLOBALS['xoTheme']->addStylesheet('modules/' . $moduleDirName . '/assets/css/style.css'); |
||||
158 |