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
Bug
introduced
by
![]() |
|||||
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
![]() |
|||||
9 | if ('' == $ref || 0 === strpos($ref, XOOPS_URL . '/modules/system/admin.php')) { |
||||
0 ignored issues
–
show
|
|||||
10 | $moduleDirName = basename(dirname(__DIR__)); |
||||
11 | require_once __DIR__ . '/installscript.php'; |
||||
12 | |||||
13 | eval('xoops_module_install_' . $moduleDirName . '(); |
||||
0 ignored issues
–
show
|
|||||
14 | '); |
||||
15 | } |
||||
16 |