Completed
Push — master ( c8eead...62889a )
by Michael
04:13
created

header.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

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
 * Wfdownloads module
13
 *
14
 * @copyright       The XOOPS Project http://sourceforge.net/projects/xoops/
15
 * @license         GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
16
 * @package         wfdownload
17
 * @since           3.23
18
 * @author          Xoops Development Team
19
 * @version         svn:$id$
20
 */
21
include_once dirname(dirname(__DIR__)) . '/mainfile.php';
22
include_once __DIR__ . '/include/common.php';
23
24
xoops_loadLanguage('main', basename(dirname(__DIR__)));
25
26 View Code Duplication
if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
27
    include_once(XOOPS_ROOT_PATH . "/class/template.php");
28
    $xoopsTpl = new XoopsTpl();
29
}
30
//$xoops = Xoops::getInstance();
0 ignored issues
show
Unused Code Comprehensibility introduced by
53% 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...
31
//$xoopsTpl = $xoops->tpl();
32
33
34
$xoopsTpl->assign('mod_url', PEDIGREE_URL); //<{$mod_url}>
35
36
37
// uncomment the below line only if you are using Protector 3.x module
38
// and you trust your users when uploading files, it is recommended to not allow anonymous uploads if you do so!!
39
//define('PROTECTOR_SKIP_FILESCHECKER', true);
40