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 | * wgGitHub module for xoops |
||||||
14 | * |
||||||
15 | * @copyright 2020 XOOPS Project (https://xooops.org) |
||||||
16 | * @license GPL 2.0 or later |
||||||
17 | * @package wggithub |
||||||
18 | * @since 1.0 |
||||||
19 | * @min_xoops 2.5.10 |
||||||
20 | * @author Goffy - XOOPS Development Team - Email:<[email protected]> - Website:<https://wedega.com> |
||||||
21 | */ |
||||||
22 | |||||||
23 | include \dirname(__DIR__, 3) . '/include/cp_header.php'; |
||||||
24 | include_once \dirname(__DIR__) . '/include/common.php'; |
||||||
25 | |||||||
26 | $sysPathIcon16 = '../' . $GLOBALS['xoopsModule']->getInfo('sysicons16'); |
||||||
27 | $sysPathIcon32 = '../' . $GLOBALS['xoopsModule']->getInfo('sysicons32'); |
||||||
28 | $pathModuleAdmin = $GLOBALS['xoopsModule']->getInfo('dirmoduleadmin'); |
||||||
29 | $modPathIcon16 = WGGITHUB_URL . '/' . $GLOBALS['xoopsModule']->getInfo('modicons16') . '/'; |
||||||
30 | $modPathIcon32 = WGGITHUB_URL . '/' . $GLOBALS['xoopsModule']->getInfo('modicons32') . '/'; |
||||||
31 | |||||||
32 | // Get instance of module |
||||||
33 | $helper = \XoopsModules\Wggithub\Helper::getInstance(); |
||||||
34 | $settingsHandler = $helper->getHandler('Settings'); |
||||||
35 | $repositoriesHandler = $helper->getHandler('Repositories'); |
||||||
36 | $directoriesHandler = $helper->getHandler('Directories'); |
||||||
37 | $logsHandler = $helper->getHandler('Logs'); |
||||||
38 | $readmesHandler = $helper->getHandler('Readmes'); |
||||||
39 | $releasesHandler = $helper->getHandler('Releases'); |
||||||
40 | $myts = MyTextSanitizer::getInstance(); |
||||||
0 ignored issues
–
show
|
|||||||
41 | // |
||||||
42 | if (!isset($xoopsTpl) || !\is_object($xoopsTpl)) { |
||||||
43 | include_once \XOOPS_ROOT_PATH . '/class/template.php'; |
||||||
0 ignored issues
–
show
|
|||||||
44 | $xoopsTpl = new \XoopsTpl(); |
||||||
0 ignored issues
–
show
The type
XoopsTpl was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths
Loading history...
|
|||||||
45 | } |
||||||
46 | |||||||
47 | // Load languages |
||||||
48 | \xoops_loadLanguage('admin'); |
||||||
0 ignored issues
–
show
The function
xoops_loadLanguage was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||
49 | \xoops_loadLanguage('modinfo'); |
||||||
50 | |||||||
51 | // Local admin menu class |
||||||
52 | if (\file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))) { |
||||||
53 | include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'); |
||||||
54 | } else { |
||||||
55 | \redirect_header('../../../admin.php', 5, _AM_MODULEADMIN_MISSING); |
||||||
0 ignored issues
–
show
The function
redirect_header was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||
56 | } |
||||||
57 | |||||||
58 | xoops_cp_header(); |
||||||
0 ignored issues
–
show
The function
xoops_cp_header was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||
59 | |||||||
60 | // System icons path |
||||||
61 | $GLOBALS['xoopsTpl']->assign('sysPathIcon16', $sysPathIcon16); |
||||||
62 | $GLOBALS['xoopsTpl']->assign('sysPathIcon32', $sysPathIcon32); |
||||||
63 | $GLOBALS['xoopsTpl']->assign('modPathIcon16', $modPathIcon16); |
||||||
64 | $GLOBALS['xoopsTpl']->assign('modPathIcon32', $modPathIcon32); |
||||||
65 | |||||||
66 | $adminObject = \Xmf\Module\Admin::getInstance(); |
||||||
0 ignored issues
–
show
The type
Xmf\Module\Admin was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths
Loading history...
|
|||||||
67 | $style = WGGITHUB_URL . '/assets/css/admin/style.css'; |
||||||
68 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths