Issues (143)

include/onupdate.php (4 issues)

Labels
1
<?php
2
3
use XoopsModules\Xdonations;
4
5
defined('XOOPS_ROOT_PATH') || die('Restricted access');
6
echo '' . XOOPS_ROOT_PATH . '<br>';
0 ignored issues
show
The constant XOOPS_ROOT_PATH was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
7
// referer check
8
$ref = xoops_getenv('HTTP_REFERER');
0 ignored issues
show
The function xoops_getenv was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

8
$ref = /** @scrutinizer ignore-call */ xoops_getenv('HTTP_REFERER');
Loading history...
9
if ('' == $ref || 0 === strpos($ref, XOOPS_URL . '/modules/system/admin.php')) {
0 ignored issues
show
The constant XOOPS_URL was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
10
    $moduleDirName = basename(dirname(__DIR__));
11
    require_once __DIR__ . '/installscript.php';
12
13
    eval('xoops_module_install_' . $moduleDirName . '();
0 ignored issues
show
The use of eval() is discouraged.
Loading history...
14
        ');
15
}
16