Completed
Pull Request — master (#2)
by Michael
07:48
created

admin/mysql.php (1 issue)

Upgrade to new PHP Analysis Engine

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
// connect xoops database 
20
include_once __DIR__ . '/admin_header.php';
21
xoops_cp_header();
22
23 View Code Duplication
if (!is_object($xoopsUser) || !is_object($xoopsModule) || !$xoopsUser->isAdmin($xoopsModule->mid())) {
0 ignored issues
show
This code seems to be duplicated across your project.

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.

Loading history...
24
    exit(_NOPERM);
25
}
26
27
$aboutAdmin = new ModuleAdmin();
28
echo $aboutAdmin->addNavigation(basename(__FILE__));
29
30
echo '<table width="100%" class="outer">';
31
echo '<tr>';
32
echo '<td align="center">';
33
echo '</td>';
34
echo '</tr>';
35
echo '<tr>';
36
echo '<td><iframe src="' . XOOPS_URL . '/modules/adminer/admin/getMysql.php" scrolling="auto" frameborder="1" width="100%" height="1024"></iframe></td>';
37
echo '</tr>';
38
echo '</table>';
39
40
include_once __DIR__ . '/admin_footer.php';
41