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 | defined('XOOPS_ROOT_PATH') || include dirname(dirname(__DIR__)) . '/mainfile.php'; |
||
21 | |||
22 | View Code Duplication | if (!is_object($xoopsUser) || !is_object($xoopsModule) || !$xoopsUser->isAdmin($xoopsModule->mid())) { |
|
0 ignored issues
–
show
|
|||
23 | exit(_NOPERM); |
||
24 | } |
||
25 | include(XOOPS_ROOT_PATH . '/header.php'); |
||
26 | include __DIR__ . '/include/bigdump.php'; |
||
27 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.