1
|
|
|
<?php |
2
|
|
|
/* |
3
|
|
|
You may not change or alter any portion of this comment or credits of |
4
|
|
|
supporting developers from this source code or any supporting source code |
5
|
|
|
which is considered copyrighted (c) material of the original comment or credit |
6
|
|
|
authors. |
7
|
|
|
|
8
|
|
|
This program is distributed in the hope that it will be useful, but |
9
|
|
|
WITHOUT ANY WARRANTY; without even the implied warranty of |
10
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
11
|
|
|
*/ |
12
|
|
|
|
13
|
|
|
/** |
14
|
|
|
* Module: Pedigree |
15
|
|
|
* |
16
|
|
|
* @package XoopsModules\Pedigree |
17
|
|
|
* @author XOOPS Module Development Team |
18
|
|
|
* @copyright Copyright (c) 2001-2019 {@link https://xoops.org XOOPS Project} |
19
|
|
|
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU Public License |
20
|
|
|
* @since 1.32 |
21
|
|
|
*/ |
22
|
|
|
|
23
|
|
|
use Xmf\Module\Admin; |
24
|
|
|
use Xmf\Request; |
25
|
|
|
use Xmf\Yaml; |
26
|
|
|
use XoopsModules\Pedigree\{ |
27
|
|
|
Common, |
28
|
|
|
Common\TestdataButtons, |
29
|
|
|
Constants, |
30
|
|
|
Forms, |
|
|
|
|
31
|
|
|
Helper, |
32
|
|
|
Utility |
33
|
|
|
}; |
34
|
|
|
|
35
|
|
|
/** @var Admin $adminObject */ |
36
|
|
|
/** @var Helper $helper */ |
37
|
|
|
/** @var Utility $utility */ |
38
|
|
|
|
39
|
|
|
require_once __DIR__ . '/admin_header.php'; |
40
|
|
|
xoops_cp_header(); |
41
|
|
|
$adminObject = Admin::getInstance(); |
42
|
|
|
|
43
|
|
|
//check or upload folders |
44
|
|
|
$configurator = new Common\Configurator(); |
45
|
|
|
foreach (array_keys($configurator->uploadFolders) as $i) { |
46
|
|
|
$utility::createFolder($configurator->uploadFolders[$i]); |
47
|
|
|
$adminObject->addConfigBoxLine($configurator->uploadFolders[$i], 'folder'); |
48
|
|
|
} |
49
|
|
|
|
50
|
|
|
$adminObject->displayNavigation(basename(__FILE__)); |
51
|
|
|
|
52
|
|
|
//check for latest release |
53
|
|
|
//$newRelease = $utility::checkVerModule($helper); |
54
|
|
|
//if (!empty($newRelease)) { |
55
|
|
|
// $adminObject->addItemButton($newRelease[0], $newRelease[1], 'download', 'style="color : Red"'); |
56
|
|
|
//} |
57
|
|
|
|
58
|
|
|
//------------- Test Data ---------------------------- |
59
|
|
|
|
60
|
|
|
if (Constants::DISP_SAMPLE_BTN == $helper->getConfig('displaySampleButton')) { |
61
|
|
|
TestdataButtons::loadButtonConfig($adminObject); |
62
|
|
|
$adminObject->displayButton('left', ''); |
63
|
|
|
} |
64
|
|
|
//------------- End Test Data ---------------------------- |
65
|
|
|
|
66
|
|
|
//------------- Test Data Buttons ---------------------------- |
67
|
|
|
|
68
|
|
|
$op = Request::getCmd('op', '', 'GET'); |
69
|
|
|
|
70
|
|
|
switch ($op) { |
71
|
|
|
case 'hide_buttons': |
72
|
|
|
TestdataButtons::hideButtons(); |
73
|
|
|
break; |
74
|
|
|
case 'show_buttons': |
75
|
|
|
TestdataButtons::showButtons(); |
76
|
|
|
break; |
77
|
|
|
} |
78
|
|
|
//------------- End Test Data Buttons ---------------------------- |
79
|
|
|
|
80
|
|
|
$adminObject->displayIndex(); |
81
|
|
|
|
82
|
|
|
echo $utility::getServerStats(); |
83
|
|
|
|
84
|
|
|
require __DIR__ . '/admin_footer.php'; |
85
|
|
|
|
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