Completed
Branch master (c921ab)
by Michael
109:50 queued 98:29
created

index.php ➔ isUpToDate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 6
rs 9.4285
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 http://xoops.org/
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
 */
19
20
include_once __DIR__ . '/admin_header.php';
21
// Display Admin header
22
xoops_cp_header();
23
24
$classUtilities = ucfirst($moduleDirName) . 'Utilities';
25
if (!class_exists($classUtilities)) {
26
    xoops_load('utilities', $moduleDirName);
27
}
28
29
$configurator = include __DIR__ .  '/../include/config.php';
30
31
foreach (array_keys($configurator['uploadFolders']) as $i) {
32
    $classUtilities::createFolder($configurator['uploadFolders'][$i]);
33
    $adminObject->addConfigBoxLine($configurator['uploadFolders'][$i], 'folder');
34
    //    $adminObject->addConfigBoxLine(array($configurator['uploadFolders'][$i], '777'), 'chmod');
0 ignored issues
show
Unused Code Comprehensibility introduced by
83% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
35
}
36
37
38
39
40
echo $adminObject->addNavigation(basename(__FILE__));
41
echo $adminObject->renderIndex();
42
43
include_once __DIR__ . '/admin_footer.php';
44