@@ -9,8 +9,8 @@ |
||
9 | 9 | var $sameOrigin; |
10 | 10 | |
11 | 11 | /** |
12 | - * @param bool allow running from the same origin only |
|
13 | - */ |
|
12 | + * @param bool allow running from the same origin only |
|
13 | + */ |
|
14 | 14 | function AdminerFrames($sameOrigin = false) { |
15 | 15 | $this->sameOrigin = $sameOrigin; |
16 | 16 | } |
@@ -18,8 +18,8 @@ |
||
18 | 18 | var $database; |
19 | 19 | |
20 | 20 | /** Set database of login table |
21 | - * @param string |
|
22 | - */ |
|
21 | + * @param string |
|
22 | + */ |
|
23 | 23 | function AdminerLoginTable($database) { |
24 | 24 | $this->database = $database; |
25 | 25 | } |
@@ -9,9 +9,9 @@ |
||
9 | 9 | var $from, $to; |
10 | 10 | |
11 | 11 | /** |
12 | - * @param string find these characters ... |
|
13 | - * @param string ... and replace them by these |
|
14 | - */ |
|
12 | + * @param string find these characters ... |
|
13 | + * @param string ... and replace them by these |
|
14 | + */ |
|
15 | 15 | function AdminerSlugify($from = 'áčďéěíňóřšťúůýž', $to = 'acdeeinorstuuyz') { |
16 | 16 | $this->from = $from; |
17 | 17 | $this->to = $to; |
@@ -41,8 +41,8 @@ |
||
41 | 41 | $modversion['min_xoops'] = '2.5.8'; |
42 | 42 | $modversion['min_admin'] = '1.2'; |
43 | 43 | $modversion['min_db'] = array( |
44 | - 'mysql' => '5.0.7', |
|
45 | - 'mysqli' => '5.0.7' |
|
44 | + 'mysql' => '5.0.7', |
|
45 | + 'mysqli' => '5.0.7' |
|
46 | 46 | ); |
47 | 47 | |
48 | 48 | // Menu |
@@ -21,7 +21,7 @@ |
||
21 | 21 | xoops_cp_header(); |
22 | 22 | |
23 | 23 | if (!is_object($xoopsUser) || !is_object($xoopsModule) || !$xoopsUser->isAdmin($xoopsModule->mid())) { |
24 | - exit(_NOPERM); |
|
24 | + exit(_NOPERM); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | $aboutAdmin = new ModuleAdmin(); |
@@ -34,8 +34,8 @@ |
||
34 | 34 | |
35 | 35 | $myts = MyTextSanitizer::getInstance(); |
36 | 36 | if (!isset($GLOBALS['xoopsTpl']) || !($GLOBALS['xoopsTpl'] instanceof XoopsTpl)) { |
37 | - include_once $GLOBALS['xoops']->path('class/template.php'); |
|
38 | - $xoopsTpl = new XoopsTpl(); |
|
37 | + include_once $GLOBALS['xoops']->path('class/template.php'); |
|
38 | + $xoopsTpl = new XoopsTpl(); |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | //Module specific elements |
@@ -20,57 +20,57 @@ |
||
20 | 20 | include_once __DIR__ . '/admin_header.php'; |
21 | 21 | |
22 | 22 | if (!is_object($xoopsUser) || !is_object($xoopsModule) || !$xoopsUser->isAdmin($xoopsModule->mid())) { |
23 | - exit(_NOPERM); |
|
23 | + exit(_NOPERM); |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | function adminer_object() |
27 | 27 | { |
28 | - // required to run any plugin |
|
29 | - include_once dirname(__DIR__) . '/include/plugins/plugin.php'; |
|
30 | - // include_once dirname(__DIR__) . "/include/plugins/plugin.php"; |
|
31 | - include_once dirname(__DIR__) . '/include/plugins/frames.php'; |
|
28 | + // required to run any plugin |
|
29 | + include_once dirname(__DIR__) . '/include/plugins/plugin.php'; |
|
30 | + // include_once dirname(__DIR__) . "/include/plugins/plugin.php"; |
|
31 | + include_once dirname(__DIR__) . '/include/plugins/frames.php'; |
|
32 | 32 | |
33 | - // autoloader |
|
34 | - // foreach (glob("plugins/*.php") as $filename) { |
|
35 | - // include_once "./$filename"; |
|
36 | - // } |
|
33 | + // autoloader |
|
34 | + // foreach (glob("plugins/*.php") as $filename) { |
|
35 | + // include_once "./$filename"; |
|
36 | + // } |
|
37 | 37 | |
38 | - $plugins = array( |
|
39 | - // specify enabled plugins here |
|
40 | - // new AdminerDumpXml, |
|
41 | - // new AdminerTinymce, |
|
42 | - // new AdminerFileUpload("data/"), |
|
43 | - // new AdminerSlugify, |
|
44 | - // new AdminerTranslation, |
|
45 | - // new AdminerForeignSystem, |
|
46 | - new AdminerFrames, |
|
47 | - ); |
|
38 | + $plugins = array( |
|
39 | + // specify enabled plugins here |
|
40 | + // new AdminerDumpXml, |
|
41 | + // new AdminerTinymce, |
|
42 | + // new AdminerFileUpload("data/"), |
|
43 | + // new AdminerSlugify, |
|
44 | + // new AdminerTranslation, |
|
45 | + // new AdminerForeignSystem, |
|
46 | + new AdminerFrames, |
|
47 | + ); |
|
48 | 48 | |
49 | - // It is possible to combine customization and plugins: |
|
50 | - class AdminerCustomization extends AdminerPlugin |
|
51 | - { |
|
52 | - public function name() |
|
53 | - { |
|
54 | - return 'XOOPS Admin'; |
|
55 | - } |
|
49 | + // It is possible to combine customization and plugins: |
|
50 | + class AdminerCustomization extends AdminerPlugin |
|
51 | + { |
|
52 | + public function name() |
|
53 | + { |
|
54 | + return 'XOOPS Admin'; |
|
55 | + } |
|
56 | 56 | |
57 | - public function credentials() |
|
58 | - { |
|
59 | - return array(XOOPS_DB_HOST, XOOPS_DB_USER, XOOPS_DB_PASS); |
|
60 | - } |
|
57 | + public function credentials() |
|
58 | + { |
|
59 | + return array(XOOPS_DB_HOST, XOOPS_DB_USER, XOOPS_DB_PASS); |
|
60 | + } |
|
61 | 61 | |
62 | - public function database() |
|
63 | - { |
|
64 | - return XOOPS_DB_NAME; |
|
65 | - } |
|
62 | + public function database() |
|
63 | + { |
|
64 | + return XOOPS_DB_NAME; |
|
65 | + } |
|
66 | 66 | |
67 | - public function login($login, $password) |
|
68 | - { |
|
69 | - return ($login == XOOPS_DB_USER); |
|
70 | - } |
|
71 | - } |
|
67 | + public function login($login, $password) |
|
68 | + { |
|
69 | + return ($login == XOOPS_DB_USER); |
|
70 | + } |
|
71 | + } |
|
72 | 72 | |
73 | - return new AdminerCustomization($plugins); |
|
73 | + return new AdminerCustomization($plugins); |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | // include original Adminer or Adminer Editor |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | include_once __DIR__ . '/admin_header.php'; |
21 | 21 | |
22 | 22 | if (!is_object($xoopsUser) || !is_object($xoopsModule) || !$xoopsUser->isAdmin($xoopsModule->mid())) { |
23 | - exit(_NOPERM); |
|
23 | + exit(_NOPERM); |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
@@ -28,38 +28,38 @@ discard block |
||
28 | 28 | */ |
29 | 29 | function adminer_object() |
30 | 30 | { |
31 | - // required to run any plugin |
|
32 | - include_once dirname(__DIR__) . '/include/plugins/plugin.php'; |
|
33 | - // include_once dirname(__DIR__) . "/include/plugins/plugin.php"; |
|
34 | - include_once dirname(__DIR__) . '/include/plugins/frames.php'; |
|
31 | + // required to run any plugin |
|
32 | + include_once dirname(__DIR__) . '/include/plugins/plugin.php'; |
|
33 | + // include_once dirname(__DIR__) . "/include/plugins/plugin.php"; |
|
34 | + include_once dirname(__DIR__) . '/include/plugins/frames.php'; |
|
35 | 35 | |
36 | - // autoloader |
|
37 | - // foreach (glob("plugins/*.php") as $filename) { |
|
38 | - // include_once "./$filename"; |
|
39 | - // } |
|
36 | + // autoloader |
|
37 | + // foreach (glob("plugins/*.php") as $filename) { |
|
38 | + // include_once "./$filename"; |
|
39 | + // } |
|
40 | 40 | |
41 | - $plugins = array( |
|
42 | - // specify enabled plugins here |
|
43 | - // new AdminerDumpXml, |
|
44 | - // new AdminerTinymce, |
|
45 | - // new AdminerFileUpload("data/"), |
|
46 | - // new AdminerSlugify, |
|
47 | - // new AdminerTranslation, |
|
48 | - // new AdminerForeignSystem, |
|
49 | - new AdminerFrames |
|
50 | - ); |
|
41 | + $plugins = array( |
|
42 | + // specify enabled plugins here |
|
43 | + // new AdminerDumpXml, |
|
44 | + // new AdminerTinymce, |
|
45 | + // new AdminerFileUpload("data/"), |
|
46 | + // new AdminerSlugify, |
|
47 | + // new AdminerTranslation, |
|
48 | + // new AdminerForeignSystem, |
|
49 | + new AdminerFrames |
|
50 | + ); |
|
51 | 51 | |
52 | - // It is possible to combine customization and plugins: |
|
53 | - /** |
|
54 | - * Class AdminerCustomization |
|
55 | - */ |
|
56 | - class AdminerCustomization extends AdminerPlugin |
|
57 | - { |
|
58 | - } |
|
52 | + // It is possible to combine customization and plugins: |
|
53 | + /** |
|
54 | + * Class AdminerCustomization |
|
55 | + */ |
|
56 | + class AdminerCustomization extends AdminerPlugin |
|
57 | + { |
|
58 | + } |
|
59 | 59 | |
60 | - return new AdminerCustomization($plugins); |
|
60 | + return new AdminerCustomization($plugins); |
|
61 | 61 | |
62 | - // return new AdminerPlugin($plugins); |
|
62 | + // return new AdminerPlugin($plugins); |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | // include original Adminer or Adminer Editor |
@@ -34,31 +34,31 @@ |
||
34 | 34 | include_once $xoopsModuleAdminPath . '/language/english/main.php'; |
35 | 35 | |
36 | 36 | $adminmenu[] = array( |
37 | - 'title' => _AM_MODULEADMIN_HOME, |
|
38 | - 'link' => 'admin/index.php', |
|
39 | - 'icon' => $pathIcon32 . '/home.png' |
|
37 | + 'title' => _AM_MODULEADMIN_HOME, |
|
38 | + 'link' => 'admin/index.php', |
|
39 | + 'icon' => $pathIcon32 . '/home.png' |
|
40 | 40 | ); |
41 | 41 | |
42 | 42 | $adminmenu[] = array( |
43 | - 'title' => _MI_ADMINER_MENU_01, |
|
44 | - 'link' => 'admin/mysql.php', |
|
45 | - 'icon' => $pathIcon32 . '/database_go.png' |
|
43 | + 'title' => _MI_ADMINER_MENU_01, |
|
44 | + 'link' => 'admin/mysql.php', |
|
45 | + 'icon' => $pathIcon32 . '/database_go.png' |
|
46 | 46 | ); |
47 | 47 | |
48 | 48 | $adminmenu[] = array( |
49 | - 'title' => _MI_ADMINER_MENU_02, |
|
50 | - 'link' => 'admin/editor.php', |
|
51 | - 'icon' => $pathIcon32 . '/translations.png' |
|
49 | + 'title' => _MI_ADMINER_MENU_02, |
|
50 | + 'link' => 'admin/editor.php', |
|
51 | + 'icon' => $pathIcon32 . '/translations.png' |
|
52 | 52 | ); |
53 | 53 | |
54 | 54 | $adminmenu[] = array( |
55 | - 'title' => _MI_ADMINER_MENU_03, |
|
56 | - 'link' => 'admin/dump.php', |
|
57 | - 'icon' => $pathIcon32 . '/upload.png' |
|
55 | + 'title' => _MI_ADMINER_MENU_03, |
|
56 | + 'link' => 'admin/dump.php', |
|
57 | + 'icon' => $pathIcon32 . '/upload.png' |
|
58 | 58 | ); |
59 | 59 | |
60 | 60 | $adminmenu[] = array( |
61 | - 'title' => _AM_MODULEADMIN_ABOUT, |
|
62 | - 'link' => 'admin/about.php', |
|
63 | - 'icon' => $pathIcon32 . '/about.png' |
|
61 | + 'title' => _AM_MODULEADMIN_ABOUT, |
|
62 | + 'link' => 'admin/about.php', |
|
63 | + 'icon' => $pathIcon32 . '/about.png' |
|
64 | 64 | ); |