These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | /** |
||
3 | * Adminer Module based on Ghost Module |
||
4 | * |
||
5 | * You may not change or alter any portion of this comment or credits |
||
6 | * of supporting developers from this source code or any supporting source code |
||
7 | * which is considered copyrighted (c) material of the original comment or credit authors. |
||
8 | * This program is distributed in the hope that it will be useful, |
||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
||
11 | * |
||
12 | * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ |
||
13 | * @license http://www.fsf.org/copyleft/gpl.html GNU public license |
||
14 | * @package Adminer Module |
||
15 | * @since 2.3.0 |
||
16 | * @author Kris <http://www.xoofoo.org> |
||
17 | * @version $Id $ |
||
18 | **/ |
||
19 | |||
20 | // connect xoops database |
||
21 | if ( !include("../../mainfile.php") ) { |
||
22 | die("XOOPS root path not defined"); |
||
23 | } |
||
24 | View Code Duplication | if ( !is_object($xoopsUser) || !is_object($xoopsModule) || !$xoopsUser->isAdmin($xoopsModule->mid()) ) exit( _NOPERM ); |
|
25 | include(XOOPS_ROOT_PATH."/header.php"); |
||
26 | include "./include/bigdump.php"; |
||
27 | ?> |
||
0 ignored issues
–
show
|
Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.
A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.