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 XOOPS Project (https://xoops.org) |
14
|
|
|
* @license GNU GPL 2 or later (https://www.gnu.org/licenses/gpl-2.0.html) |
15
|
|
|
* @package |
16
|
|
|
* @author XOOPS Development Team |
17
|
|
|
*/ |
18
|
|
|
|
19
|
|
|
use Xmf\Module\Admin; |
20
|
|
|
use Xmf\Request; |
21
|
|
|
use Xmf\Yaml; |
22
|
|
|
use XoopsModules\Groupmanager\{ |
23
|
|
|
Common, |
24
|
|
|
Common\TestdataButtons, |
25
|
|
|
Helper, |
26
|
|
|
Utility |
27
|
|
|
}; |
28
|
|
|
|
29
|
|
|
/** @var Admin $adminObject */ |
30
|
|
|
/** @var Helper $helper */ |
31
|
|
|
/** @var Utility $utility */ |
32
|
|
|
|
33
|
|
|
require_once __DIR__ . '/admin_header.php'; |
34
|
|
|
// Display Admin header |
35
|
|
|
xoops_cp_header(); |
36
|
|
|
$adminObject = Admin::getInstance(); |
37
|
|
|
|
38
|
|
|
//check or upload folders |
39
|
|
|
$configurator = new Common\Configurator(); |
40
|
|
|
foreach (array_keys($configurator->uploadFolders) as $i) { |
41
|
|
|
$utility::createFolder($configurator->uploadFolders[$i]); |
42
|
|
|
$adminObject->addConfigBoxLine($configurator->uploadFolders[$i], 'folder'); |
43
|
|
|
} |
44
|
|
|
|
45
|
|
|
$adminObject->displayNavigation(basename(__FILE__)); |
46
|
|
|
|
47
|
|
|
//check for latest release |
48
|
|
|
//$newRelease = $utility->checkVerModule($helper); |
49
|
|
|
//if (!empty($newRelease)) { |
50
|
|
|
// $adminObject->addItemButton($newRelease[0], $newRelease[1], 'download', 'style="color : Red"'); |
51
|
|
|
//} |
52
|
|
|
|
53
|
|
|
$adminObject->displayIndex(); |
54
|
|
|
echo $utility::getServerStats(); |
55
|
|
|
|
56
|
|
|
//codeDump(__FILE__); |
57
|
|
|
require_once __DIR__ . '/admin_footer.php'; |
58
|
|
|
|