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
|
|
|
|
12
|
|
|
/** |
13
|
|
|
* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ |
14
|
|
|
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) |
15
|
|
|
* @package |
16
|
|
|
* @since |
17
|
|
|
* @author XOOPS Development Team |
18
|
|
|
* @version $Id $ |
19
|
|
|
*/ |
20
|
|
|
|
21
|
|
|
$moduleDirName = basename(dirname(__DIR__)); |
22
|
|
|
include_once dirname(dirname(dirname(__DIR__))) . '/mainfile.php'; |
23
|
|
|
include_once $GLOBALS['xoops']->path('www/include/cp_functions.php'); |
24
|
|
|
include_once $GLOBALS['xoops']->path('www/include/cp_header.php'); |
25
|
|
|
include_once $GLOBALS['xoops']->path('www/class/xoopsformloader.php'); |
26
|
|
|
|
27
|
|
|
xoops_load('XoopsRequest'); |
28
|
|
|
|
29
|
|
|
if (!defined("SMARTSECTION_NOCPFUNC")) { |
30
|
|
|
include_once '../../../include/cp_header.php'; |
31
|
|
|
} |
32
|
|
|
|
33
|
|
|
include_once XOOPS_ROOT_PATH . "/kernel/module.php"; |
34
|
|
|
include_once XOOPS_ROOT_PATH . "/class/xoopstree.php"; |
35
|
|
|
include_once XOOPS_ROOT_PATH . "/class/xoopslists.php"; |
36
|
|
|
include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
37
|
|
|
include_once XOOPS_ROOT_PATH . "/class/xoopsformloader.php"; |
38
|
|
|
|
39
|
|
|
include XOOPS_ROOT_PATH . '/modules/martin/include/common.php'; |
40
|
|
|
|
41
|
|
|
$imagearray = array( |
42
|
|
|
'editimg' => "<img src='" . MARTIN_IMAGES_URL . "/button_edit.png' alt='" . _EDIT . "' align='middle' />", |
43
|
|
|
'deleteimg' => "<img src='" . MARTIN_IMAGES_URL . "/button_delete.png' alt='" . _DELETE . "' align='middle' />", |
44
|
|
|
'online' => "<img src='" . MARTIN_IMAGES_URL . "/on.png' alt='' align='" . _AM_MARTIN_ENABLED . "' />", |
45
|
|
|
'offline' => "<img src='" . MARTIN_IMAGES_URL . "/off.png' alt='' alt='" . _AM_MARTIN_DISABLED . "' />",); |
46
|
|
|
|
47
|
|
|
//$moduleDirName = $GLOBALS['xoopsModule']->getVar('dirname'); |
48
|
|
|
|
49
|
|
|
$pathIcon16 = $GLOBALS['xoops']->url('www/' . $GLOBALS['xoopsModule']->getInfo('sysicons16')); |
50
|
|
|
$pathIcon32 = $GLOBALS['xoops']->url('www/' . $GLOBALS['xoopsModule']->getInfo('sysicons32')); |
51
|
|
|
$xoopsModuleAdminPath = $GLOBALS['xoops']->path('www/' . $GLOBALS['xoopsModule']->getInfo('dirmoduleadmin')); |
52
|
|
|
require_once "{$xoopsModuleAdminPath}/moduleadmin.php"; |
53
|
|
|
|
54
|
|
|
$myts = MyTextSanitizer::getInstance(); |
55
|
|
|
if (!isset($GLOBALS['xoopsTpl']) || !($GLOBALS['xoopsTpl'] instanceof XoopsTpl)) { |
|
|
|
|
56
|
|
|
include_once $GLOBALS['xoops']->path('class/template.php'); |
57
|
|
|
$xoopsTpl = new XoopsTpl(); |
58
|
|
|
} |
59
|
|
|
|
60
|
|
|
//Module specific elements |
61
|
|
|
//include_once $GLOBALS['xoops']->path("modules/{$moduleDirName}/include/functions.php"); |
62
|
|
|
//include_once $GLOBALS['xoops']->path("modules/{$moduleDirName}/include/config.php"); |
63
|
|
|
|
64
|
|
|
//Handlers |
65
|
|
|
//$XXXHandler =& xoops_getModuleHandler('XXX', $moduleDirName); |
66
|
|
|
|
67
|
|
|
// Load language files |
68
|
|
|
xoops_loadLanguage('admin', $moduleDirName); |
69
|
|
|
xoops_loadLanguage('modinfo', $moduleDirName); |
70
|
|
|
xoops_loadLanguage('main', $moduleDirName); |
71
|
|
|
|
72
|
|
|
//xoops_cp_header(); |
73
|
|
|
$adminObject = new ModuleAdmin(); |
74
|
|
|
|
This error could be the result of:
1. Missing dependencies
PHP Analyzer uses your
composer.json
file (if available) to determine the dependencies of your project and to determine all the available classes and functions. It expects thecomposer.json
to be in the root folder of your repository.Are you sure this class is defined by one of your dependencies, or did you maybe not list a dependency in either the
require
orrequire-dev
section?2. Missing use statement
PHP does not complain about undefined classes in
ìnstanceof
checks. For example, the following PHP code will work perfectly fine:If you have not tested against this specific condition, such errors might go unnoticed.