1 | <?php |
||||
2 | include __DIR__ . '/../../../include/cp_header.php'; |
||||
3 | include __DIR__ . '/../include/functions.php'; |
||||
4 | |||||
5 | $filename = 'upgrade_018-019.sql'; |
||||
6 | require_once __DIR__ . '/class/efqdir_upgrade.php'; |
||||
7 | $moddir = $xoopsModule->getVar('dirname'); |
||||
8 | require_once XOOPS_ROOT_PATH . '/modules/' . $moddir . '/upgrade/language/' . $xoopsConfig['language'] . '/install.php'; |
||||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||||
9 | xoops_cp_header(); |
||||
0 ignored issues
–
show
The function
xoops_cp_header 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
![]() |
|||||
10 | set_magic_quotes_runtime(1); |
||||
11 | if (isset($_POST['submit'])) { |
||||
12 | switch ($_POST['submit']) { |
||||
13 | case 'Update': |
||||
14 | require_once XOOPS_ROOT_PATH . '/modules/' . $moddir . '/upgrade/class/dbmanager.php'; |
||||
15 | $dbm = new db_manager; |
||||
16 | $dbm->queryFromFile(XOOPS_ROOT_PATH . '/modules/' . $moddir . '/sql/' . $filename); |
||||
17 | $feedback = $dbm->report(); |
||||
18 | echo $feedback; |
||||
19 | echo "<br><br><a href='" . XOOPS_URL . "/modules/system/admin.php?fct=modulesadmin'>Proceed</a>"; |
||||
0 ignored issues
–
show
|
|||||
20 | xoops_cp_footer(); |
||||
0 ignored issues
–
show
The function
xoops_cp_footer 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
![]() |
|||||
21 | exit(); |
||||
22 | } |
||||
23 | } |
||||
24 | require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
||||
25 | $upgrade_form = new XoopsThemeForm('Upgrade', 'upgradeform', 'index.php'); |
||||
0 ignored issues
–
show
The type
XoopsThemeForm was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||||
26 | $upgrade_form->addElement(new XoopsFormButton(_MU_UPDATE, 'submit', 'Update', 'submit')); |
||||
0 ignored issues
–
show
The type
XoopsFormButton was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||||
27 | $upgrade_form->display(); |
||||
28 | |||||
29 | xoops_cp_footer(); |
||||
30 |