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\Common\Configurator; |
22
|
|
|
use XoopsModules\Publisher\Helper; |
23
|
|
|
|
24
|
|
|
require \dirname(__DIR__) . '/preloads/autoloader.php'; |
25
|
|
|
|
26
|
|
|
require \dirname(__DIR__, 3) . '/include/cp_header.php'; |
27
|
|
|
//require_once $GLOBALS['xoops']->path('www/class/xoopsformloader.php'); |
28
|
|
|
|
29
|
|
|
require_once \dirname(__DIR__) . '/include/common.php'; |
30
|
|
|
|
31
|
|
|
$moduleDirName = \basename(\dirname(__DIR__)); |
32
|
|
|
|
33
|
|
|
$helper = Helper::getInstance(); |
34
|
|
|
$fieldHandler = $helper->getHandler('Field'); |
35
|
|
|
|
36
|
|
|
/** @var Admin $adminObject */ |
37
|
|
|
$adminObject = Admin::getInstance(); |
38
|
|
|
|
39
|
|
|
$pathIcon16 = Admin::iconUrl('', '16'); |
40
|
|
|
$pathIcon32 = Admin::iconUrl('', '32'); |
41
|
|
|
$pathModIcon32 = XOOPS_URL . '/modules/' . $moduleDirName . '/assets/images/icons/32/'; |
42
|
|
|
if (is_object($helper->getModule()) |
43
|
|
|
&& false !== $helper->getModule() |
44
|
|
|
->getInfo('modicons32')) { |
45
|
|
|
$pathModIcon32 = $helper->url( |
46
|
|
|
$helper->getModule() |
|
|
|
|
47
|
|
|
->getInfo('modicons32') |
48
|
|
|
); |
49
|
|
|
} |
50
|
|
|
|
51
|
|
|
// Load language files |
52
|
|
|
$helper->loadLanguage('admin'); |
53
|
|
|
$helper->loadLanguage('modinfo'); |
54
|
|
|
$helper->loadLanguage('main'); |
55
|
|
|
|
56
|
|
|
$configurator = new Configurator(); |
57
|
|
|
$icons = $configurator->icons; |
58
|
|
|
|
59
|
|
|
$myts = \MyTextSanitizer::getInstance(); |
60
|
|
|
|
61
|
|
|
if (!isset($GLOBALS['xoTheme']) || !\is_object($GLOBALS['xoTheme'])) { |
62
|
|
|
require $GLOBALS['xoops']->path('class/theme.php'); |
63
|
|
|
$GLOBALS['xoTheme'] = new \xos_opal_Theme(); |
64
|
|
|
} |
65
|
|
|
|
66
|
|
|
if (!isset($GLOBALS['xoopsTpl']) || !($GLOBALS['xoopsTpl'] instanceof \XoopsTpl)) { |
67
|
|
|
require_once $GLOBALS['xoops']->path('class/template.php'); |
68
|
|
|
$GLOBALS['xoopsTpl'] = new \XoopsTpl(); |
69
|
|
|
} |
70
|
|
|
|
71
|
|
|
//$style = dirname(__DIR__) . '/assets/css/admin/style.css'; |
72
|
|
|
|
73
|
|
|
$xoTheme->addStylesheet($helper->url('assets/js/tablesorter/css/jquery.tablesorter.pager.min.css')); |
74
|
|
|
|