@@ -11,11 +11,11 @@ |
||
11 | 11 | |
12 | 12 | use Xmf\Module\Admin; |
13 | 13 | |
14 | -require_once __DIR__ . '/admin_header.php'; |
|
14 | +require_once __DIR__.'/admin_header.php'; |
|
15 | 15 | xoops_cp_header(); |
16 | 16 | $adminObject = Admin::getInstance(); |
17 | 17 | $adminObject->displayNavigation(basename(__FILE__)); |
18 | 18 | Admin::setPaypal('[email protected]'); |
19 | 19 | $adminObject->displayAbout(false); |
20 | 20 | |
21 | -require_once __DIR__ . '/admin_footer.php'; |
|
21 | +require_once __DIR__.'/admin_footer.php'; |
@@ -16,8 +16,8 @@ discard block |
||
16 | 16 | use Xmf\Module\Admin; |
17 | 17 | use Xmf\Request; |
18 | 18 | use XoopsModules\Myiframe\{ |
19 | - Common\Blocksadmin, |
|
20 | - Helper |
|
19 | + Common\Blocksadmin, |
|
20 | + Helper |
|
21 | 21 | }; |
22 | 22 | |
23 | 23 | /** @var Admin $adminObject */ |
@@ -36,112 +36,112 @@ discard block |
||
36 | 36 | $xoopsModule = XoopsModule::getByDirname($moduleDirName); |
37 | 37 | |
38 | 38 | if (!is_object($GLOBALS['xoopsUser']) || !is_object($xoopsModule) |
39 | - || !$GLOBALS['xoopsUser']->isAdmin($xoopsModule->mid())) { |
|
40 | - exit(constant('CO_' . $moduleDirNameUpper . '_' . 'ERROR403')); |
|
39 | + || !$GLOBALS['xoopsUser']->isAdmin($xoopsModule->mid())) { |
|
40 | + exit(constant('CO_' . $moduleDirNameUpper . '_' . 'ERROR403')); |
|
41 | 41 | } |
42 | 42 | if ($GLOBALS['xoopsUser']->isAdmin($xoopsModule->mid())) { |
43 | - require_once XOOPS_ROOT_PATH . '/class/xoopsblock.php'; |
|
44 | - |
|
45 | - $op = Request::getCmd('op', 'list'); |
|
46 | - if (!empty($_POST)) { |
|
47 | - $ok = Request::getInt('ok', 0, 'POST'); |
|
48 | - $confirm_submit = Request::getCmd('confirm_submit', '', 'POST'); |
|
49 | - $submit = Request::getString('submit', '', 'POST'); |
|
50 | - $bside = Request::getString('bside', '0', 'POST'); |
|
51 | - $bweight = Request::getString('bweight', '0', 'POST'); |
|
52 | - $bvisible = Request::getString('bvisible', '0', 'POST'); |
|
53 | - $bmodule = Request::getArray('bmodule', [], 'POST'); |
|
54 | - $btitle = Request::getString('btitle', '', 'POST'); |
|
55 | - $bcachetime = Request::getString('bcachetime', '0', 'POST'); |
|
56 | - $groups = Request::getArray('groups', [], 'POST'); |
|
57 | - $options = Request::getArray('options', [], 'POST'); |
|
58 | - $submitblock = Request::getString('submitblock', '', 'POST'); |
|
59 | - $fct = Request::getString('fct', '', 'POST'); |
|
60 | - $title = Request::getString('title', '', 'POST'); |
|
61 | - $side = Request::getString('side', '0', 'POST'); |
|
62 | - $weight = Request::getString('weight', '0', 'POST'); |
|
63 | - $visible = Request::getString('visible', '0', 'POST'); |
|
64 | - } |
|
65 | - |
|
66 | - if ('list' === $op) { |
|
67 | - // xoops_cp_header(); |
|
68 | - $blocksadmin->listBlocks(); |
|
69 | - require_once __DIR__ . '/admin_footer.php'; |
|
70 | - exit(); |
|
71 | - } |
|
72 | - |
|
73 | - if (\in_array($op, ['edit', 'edit_ok', 'delete', 'delete_ok', 'clone', 'clone_ok'])) { |
|
74 | - $bid = Request::getInt('bid', 0); |
|
75 | - $ok = Request::getInt('ok', 0); |
|
76 | - |
|
77 | - if ('clone' === $op) { |
|
78 | - $blocksadmin->cloneBlock($bid); |
|
79 | - } |
|
80 | - |
|
81 | - if ('delete' === $op) { |
|
82 | - if (1 === $ok) { |
|
83 | - // if (!$GLOBALS['xoopsSecurity']->check()) { |
|
84 | - // redirect_header($helper->url('admin/blocksadmin.php'), 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); |
|
85 | - // } |
|
86 | - $blocksadmin->deleteBlock($bid); |
|
87 | - } else { |
|
88 | - // xoops_cp_header(); |
|
89 | - xoops_confirm(['ok' => 1, 'op' => 'delete', 'bid' => $bid], 'blocksadmin.php', constant('CO_' . $moduleDirNameUpper . '_' . 'DELETE_BLOCK_CONFIRM'), constant('CO_' . $moduleDirNameUpper . '_' . 'CONFIRM'), true); |
|
90 | - xoops_cp_footer(); |
|
91 | - } |
|
92 | - } |
|
93 | - |
|
94 | - if ('edit' === $op) { |
|
95 | - $blocksadmin->editBlock($bid); |
|
96 | - } |
|
97 | - |
|
98 | - if ('edit_ok' === $op) { |
|
99 | - $blocksadmin->updateBlock($bid, $btitle, $bside, $bweight, $bvisible, $bcachetime, $bmodule, $options, $groups); |
|
100 | - } |
|
101 | - |
|
102 | - if ('clone_ok' === $op) { |
|
103 | - $blocksadmin->isBlockCloned($bid, $bside, $bweight, $bvisible, $bcachetime, $bmodule, $options, $groups); |
|
104 | - } |
|
105 | - } |
|
106 | - |
|
107 | - if ('order' === $op) { |
|
108 | - $bid = Request::getArray('bid', []); |
|
109 | - |
|
110 | - $title = Request::getArray('title', [], 'POST'); |
|
111 | - $side = Request::getArray('side', [], 'POST'); |
|
112 | - $weight = Request::getArray('weight', [], 'POST'); |
|
113 | - $visible = Request::getArray('visible', [], 'POST'); |
|
114 | - $bcachetime = Request::getArray('bcachetime', [], 'POST'); |
|
115 | - $bmodule = Request::getArray('bmodule', [], 'POST');//mb |
|
116 | - |
|
117 | - $oldtitle = Request::getArray('oldtitle', [], 'POST'); |
|
118 | - $oldside = Request::getArray('oldside', [], 'POST'); |
|
119 | - $oldweight = Request::getArray('oldweight', [], 'POST'); |
|
120 | - $oldvisible = Request::getArray('oldvisible', [], 'POST'); |
|
121 | - $oldgroups = Request::getArray('oldgroups', [], 'POST'); |
|
122 | - $oldbcachetime = Request::getArray('oldcachetime', [], 'POST'); |
|
123 | - $oldbmodule = Request::getArray('oldbmodule', [], 'POST');//mb |
|
124 | - |
|
125 | - $blocksadmin->orderBlock( |
|
126 | - $bid, |
|
127 | - $oldtitle, |
|
128 | - $oldside, |
|
129 | - $oldweight, |
|
130 | - $oldvisible, |
|
131 | - $oldgroups, |
|
132 | - $oldbcachetime, |
|
133 | - $oldbmodule, |
|
134 | - $title, |
|
135 | - $weight, |
|
136 | - $visible, |
|
137 | - $side, |
|
138 | - $bcachetime, |
|
139 | - $groups, |
|
140 | - $bmodule |
|
141 | - ); |
|
142 | - } |
|
43 | + require_once XOOPS_ROOT_PATH . '/class/xoopsblock.php'; |
|
44 | + |
|
45 | + $op = Request::getCmd('op', 'list'); |
|
46 | + if (!empty($_POST)) { |
|
47 | + $ok = Request::getInt('ok', 0, 'POST'); |
|
48 | + $confirm_submit = Request::getCmd('confirm_submit', '', 'POST'); |
|
49 | + $submit = Request::getString('submit', '', 'POST'); |
|
50 | + $bside = Request::getString('bside', '0', 'POST'); |
|
51 | + $bweight = Request::getString('bweight', '0', 'POST'); |
|
52 | + $bvisible = Request::getString('bvisible', '0', 'POST'); |
|
53 | + $bmodule = Request::getArray('bmodule', [], 'POST'); |
|
54 | + $btitle = Request::getString('btitle', '', 'POST'); |
|
55 | + $bcachetime = Request::getString('bcachetime', '0', 'POST'); |
|
56 | + $groups = Request::getArray('groups', [], 'POST'); |
|
57 | + $options = Request::getArray('options', [], 'POST'); |
|
58 | + $submitblock = Request::getString('submitblock', '', 'POST'); |
|
59 | + $fct = Request::getString('fct', '', 'POST'); |
|
60 | + $title = Request::getString('title', '', 'POST'); |
|
61 | + $side = Request::getString('side', '0', 'POST'); |
|
62 | + $weight = Request::getString('weight', '0', 'POST'); |
|
63 | + $visible = Request::getString('visible', '0', 'POST'); |
|
64 | + } |
|
65 | + |
|
66 | + if ('list' === $op) { |
|
67 | + // xoops_cp_header(); |
|
68 | + $blocksadmin->listBlocks(); |
|
69 | + require_once __DIR__ . '/admin_footer.php'; |
|
70 | + exit(); |
|
71 | + } |
|
72 | + |
|
73 | + if (\in_array($op, ['edit', 'edit_ok', 'delete', 'delete_ok', 'clone', 'clone_ok'])) { |
|
74 | + $bid = Request::getInt('bid', 0); |
|
75 | + $ok = Request::getInt('ok', 0); |
|
76 | + |
|
77 | + if ('clone' === $op) { |
|
78 | + $blocksadmin->cloneBlock($bid); |
|
79 | + } |
|
80 | + |
|
81 | + if ('delete' === $op) { |
|
82 | + if (1 === $ok) { |
|
83 | + // if (!$GLOBALS['xoopsSecurity']->check()) { |
|
84 | + // redirect_header($helper->url('admin/blocksadmin.php'), 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); |
|
85 | + // } |
|
86 | + $blocksadmin->deleteBlock($bid); |
|
87 | + } else { |
|
88 | + // xoops_cp_header(); |
|
89 | + xoops_confirm(['ok' => 1, 'op' => 'delete', 'bid' => $bid], 'blocksadmin.php', constant('CO_' . $moduleDirNameUpper . '_' . 'DELETE_BLOCK_CONFIRM'), constant('CO_' . $moduleDirNameUpper . '_' . 'CONFIRM'), true); |
|
90 | + xoops_cp_footer(); |
|
91 | + } |
|
92 | + } |
|
93 | + |
|
94 | + if ('edit' === $op) { |
|
95 | + $blocksadmin->editBlock($bid); |
|
96 | + } |
|
97 | + |
|
98 | + if ('edit_ok' === $op) { |
|
99 | + $blocksadmin->updateBlock($bid, $btitle, $bside, $bweight, $bvisible, $bcachetime, $bmodule, $options, $groups); |
|
100 | + } |
|
101 | + |
|
102 | + if ('clone_ok' === $op) { |
|
103 | + $blocksadmin->isBlockCloned($bid, $bside, $bweight, $bvisible, $bcachetime, $bmodule, $options, $groups); |
|
104 | + } |
|
105 | + } |
|
106 | + |
|
107 | + if ('order' === $op) { |
|
108 | + $bid = Request::getArray('bid', []); |
|
109 | + |
|
110 | + $title = Request::getArray('title', [], 'POST'); |
|
111 | + $side = Request::getArray('side', [], 'POST'); |
|
112 | + $weight = Request::getArray('weight', [], 'POST'); |
|
113 | + $visible = Request::getArray('visible', [], 'POST'); |
|
114 | + $bcachetime = Request::getArray('bcachetime', [], 'POST'); |
|
115 | + $bmodule = Request::getArray('bmodule', [], 'POST');//mb |
|
116 | + |
|
117 | + $oldtitle = Request::getArray('oldtitle', [], 'POST'); |
|
118 | + $oldside = Request::getArray('oldside', [], 'POST'); |
|
119 | + $oldweight = Request::getArray('oldweight', [], 'POST'); |
|
120 | + $oldvisible = Request::getArray('oldvisible', [], 'POST'); |
|
121 | + $oldgroups = Request::getArray('oldgroups', [], 'POST'); |
|
122 | + $oldbcachetime = Request::getArray('oldcachetime', [], 'POST'); |
|
123 | + $oldbmodule = Request::getArray('oldbmodule', [], 'POST');//mb |
|
124 | + |
|
125 | + $blocksadmin->orderBlock( |
|
126 | + $bid, |
|
127 | + $oldtitle, |
|
128 | + $oldside, |
|
129 | + $oldweight, |
|
130 | + $oldvisible, |
|
131 | + $oldgroups, |
|
132 | + $oldbcachetime, |
|
133 | + $oldbmodule, |
|
134 | + $title, |
|
135 | + $weight, |
|
136 | + $visible, |
|
137 | + $side, |
|
138 | + $bcachetime, |
|
139 | + $groups, |
|
140 | + $bmodule |
|
141 | + ); |
|
142 | + } |
|
143 | 143 | } else { |
144 | - echo constant('CO_' . $moduleDirNameUpper . '_' . 'ERROR403'); |
|
144 | + echo constant('CO_' . $moduleDirNameUpper . '_' . 'ERROR403'); |
|
145 | 145 | } |
146 | 146 | |
147 | 147 | require __DIR__ . '/admin_footer.php'; |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | /** @var Admin $adminObject */ |
24 | 24 | /** @var Helper $helper */ |
25 | 25 | |
26 | -require __DIR__ . '/admin_header.php'; |
|
26 | +require __DIR__.'/admin_header.php'; |
|
27 | 27 | xoops_cp_header(); |
28 | 28 | |
29 | 29 | $moduleDirName = $helper->getDirname(); |
@@ -37,10 +37,10 @@ discard block |
||
37 | 37 | |
38 | 38 | if (!is_object($GLOBALS['xoopsUser']) || !is_object($xoopsModule) |
39 | 39 | || !$GLOBALS['xoopsUser']->isAdmin($xoopsModule->mid())) { |
40 | - exit(constant('CO_' . $moduleDirNameUpper . '_' . 'ERROR403')); |
|
40 | + exit(constant('CO_'.$moduleDirNameUpper.'_'.'ERROR403')); |
|
41 | 41 | } |
42 | 42 | if ($GLOBALS['xoopsUser']->isAdmin($xoopsModule->mid())) { |
43 | - require_once XOOPS_ROOT_PATH . '/class/xoopsblock.php'; |
|
43 | + require_once XOOPS_ROOT_PATH.'/class/xoopsblock.php'; |
|
44 | 44 | |
45 | 45 | $op = Request::getCmd('op', 'list'); |
46 | 46 | if (!empty($_POST)) { |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | if ('list' === $op) { |
67 | 67 | // xoops_cp_header(); |
68 | 68 | $blocksadmin->listBlocks(); |
69 | - require_once __DIR__ . '/admin_footer.php'; |
|
69 | + require_once __DIR__.'/admin_footer.php'; |
|
70 | 70 | exit(); |
71 | 71 | } |
72 | 72 | |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | $blocksadmin->deleteBlock($bid); |
87 | 87 | } else { |
88 | 88 | // xoops_cp_header(); |
89 | - xoops_confirm(['ok' => 1, 'op' => 'delete', 'bid' => $bid], 'blocksadmin.php', constant('CO_' . $moduleDirNameUpper . '_' . 'DELETE_BLOCK_CONFIRM'), constant('CO_' . $moduleDirNameUpper . '_' . 'CONFIRM'), true); |
|
89 | + xoops_confirm(['ok' => 1, 'op' => 'delete', 'bid' => $bid], 'blocksadmin.php', constant('CO_'.$moduleDirNameUpper.'_'.'DELETE_BLOCK_CONFIRM'), constant('CO_'.$moduleDirNameUpper.'_'.'CONFIRM'), true); |
|
90 | 90 | xoops_cp_footer(); |
91 | 91 | } |
92 | 92 | } |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | $weight = Request::getArray('weight', [], 'POST'); |
113 | 113 | $visible = Request::getArray('visible', [], 'POST'); |
114 | 114 | $bcachetime = Request::getArray('bcachetime', [], 'POST'); |
115 | - $bmodule = Request::getArray('bmodule', [], 'POST');//mb |
|
115 | + $bmodule = Request::getArray('bmodule', [], 'POST'); //mb |
|
116 | 116 | |
117 | 117 | $oldtitle = Request::getArray('oldtitle', [], 'POST'); |
118 | 118 | $oldside = Request::getArray('oldside', [], 'POST'); |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | $oldvisible = Request::getArray('oldvisible', [], 'POST'); |
121 | 121 | $oldgroups = Request::getArray('oldgroups', [], 'POST'); |
122 | 122 | $oldbcachetime = Request::getArray('oldcachetime', [], 'POST'); |
123 | - $oldbmodule = Request::getArray('oldbmodule', [], 'POST');//mb |
|
123 | + $oldbmodule = Request::getArray('oldbmodule', [], 'POST'); //mb |
|
124 | 124 | |
125 | 125 | $blocksadmin->orderBlock( |
126 | 126 | $bid, |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | ); |
142 | 142 | } |
143 | 143 | } else { |
144 | - echo constant('CO_' . $moduleDirNameUpper . '_' . 'ERROR403'); |
|
144 | + echo constant('CO_'.$moduleDirNameUpper.'_'.'ERROR403'); |
|
145 | 145 | } |
146 | 146 | |
147 | -require __DIR__ . '/admin_footer.php'; |
|
147 | +require __DIR__.'/admin_footer.php'; |
@@ -18,10 +18,10 @@ discard block |
||
18 | 18 | use Xmf\Module\Admin; |
19 | 19 | use Xmf\Request; |
20 | 20 | use XoopsModules\Myiframe\{ |
21 | - Common, |
|
22 | - Common\TestdataButtons, |
|
23 | - Helper, |
|
24 | - Utility |
|
21 | + Common, |
|
22 | + Common\TestdataButtons, |
|
23 | + Helper, |
|
24 | + Utility |
|
25 | 25 | }; |
26 | 26 | |
27 | 27 | require_once __DIR__ . '/admin_header.php'; |
@@ -32,17 +32,17 @@ discard block |
||
32 | 32 | $adminObject->displayNavigation(basename(__FILE__)); |
33 | 33 | //------------- Test Data Buttons ---------------------------- |
34 | 34 | if ($helper->getConfig('displaySampleButton')) { |
35 | - TestdataButtons::loadButtonConfig($adminObject); |
|
36 | - $adminObject->displayButton('left', ''); |
|
35 | + TestdataButtons::loadButtonConfig($adminObject); |
|
36 | + $adminObject->displayButton('left', ''); |
|
37 | 37 | } |
38 | 38 | $op = Request::getString('op', 0, 'GET'); |
39 | 39 | switch ($op) { |
40 | - case 'hide_buttons': |
|
41 | - TestdataButtons::hideButtons(); |
|
42 | - break; |
|
43 | - case 'show_buttons': |
|
44 | - TestdataButtons::showButtons(); |
|
45 | - break; |
|
40 | + case 'hide_buttons': |
|
41 | + TestdataButtons::hideButtons(); |
|
42 | + break; |
|
43 | + case 'show_buttons': |
|
44 | + TestdataButtons::showButtons(); |
|
45 | + break; |
|
46 | 46 | } |
47 | 47 | //------------- End Test Data Buttons ---------------------------- |
48 | 48 |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | Utility |
25 | 25 | }; |
26 | 26 | |
27 | -require_once __DIR__ . '/admin_header.php'; |
|
27 | +require_once __DIR__.'/admin_header.php'; |
|
28 | 28 | // Display Admin header |
29 | 29 | xoops_cp_header(); |
30 | 30 | |
@@ -50,4 +50,4 @@ discard block |
||
50 | 50 | echo $utility::getServerStats(); |
51 | 51 | |
52 | 52 | //codeDump(__FILE__); |
53 | -require __DIR__ . '/admin_footer.php'; |
|
53 | +require __DIR__.'/admin_footer.php'; |
@@ -18,10 +18,10 @@ |
||
18 | 18 | $pathIcon32 = Xmf\Module\Admin::iconUrl('', 32); |
19 | 19 | |
20 | 20 | echo "<div class='adminfooter'>\n" |
21 | - . " <div style='text-align: center;'>\n" |
|
22 | - . " <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" |
|
23 | - . " </div>\n" |
|
24 | - . ' ' . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" |
|
25 | - . '</div>'; |
|
21 | + . " <div style='text-align: center;'>\n" |
|
22 | + . " <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" |
|
23 | + . " </div>\n" |
|
24 | + . ' ' . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" |
|
25 | + . '</div>'; |
|
26 | 26 | |
27 | 27 | xoops_cp_footer(); |
@@ -21,7 +21,7 @@ |
||
21 | 21 | . " <div style='text-align: center;'>\n" |
22 | 22 | . " <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" |
23 | 23 | . " </div>\n" |
24 | - . ' ' . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" |
|
24 | + . ' '._AM_MODULEADMIN_ADMIN_FOOTER."\n" |
|
25 | 25 | . '</div>'; |
26 | 26 | |
27 | 27 | xoops_cp_footer(); |
@@ -21,45 +21,45 @@ |
||
21 | 21 | $pathIcon32 = Admin::menuIconPath(''); |
22 | 22 | $pathModIcon32 = XOOPS_URL . '/modules/' . $moduleDirName . '/assets/images/icons/32/'; |
23 | 23 | if (is_object($helper->getModule()) |
24 | - && false !== $helper->getModule() |
|
25 | - ->getInfo('modicons32')) { |
|
26 | - $pathModIcon32 = $helper->url( |
|
27 | - $helper->getModule() |
|
28 | - ->getInfo('modicons32') |
|
29 | - ); |
|
24 | + && false !== $helper->getModule() |
|
25 | + ->getInfo('modicons32')) { |
|
26 | + $pathModIcon32 = $helper->url( |
|
27 | + $helper->getModule() |
|
28 | + ->getInfo('modicons32') |
|
29 | + ); |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | $adminmenu[] = [ |
33 | - 'title' => _MI_MYIFRAME_NAME, |
|
34 | - 'link' => 'admin/index.php', |
|
35 | - 'icon' => $pathIcon32 . '/home.png', |
|
33 | + 'title' => _MI_MYIFRAME_NAME, |
|
34 | + 'link' => 'admin/index.php', |
|
35 | + 'icon' => $pathIcon32 . '/home.png', |
|
36 | 36 | ]; |
37 | 37 | |
38 | 38 | $adminmenu[] = [ |
39 | - 'title' => _MI_MYIFRAME_ADMENU1, |
|
40 | - 'link' => 'admin/manage.php', |
|
41 | - 'icon' => $pathIcon32 . '/manage.png', |
|
39 | + 'title' => _MI_MYIFRAME_ADMENU1, |
|
40 | + 'link' => 'admin/manage.php', |
|
41 | + 'icon' => $pathIcon32 . '/manage.png', |
|
42 | 42 | ]; |
43 | 43 | |
44 | 44 | // Blocks Admin |
45 | 45 | $adminmenu[] = [ |
46 | - 'title' => constant('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS'), |
|
47 | - 'link' => 'admin/blocksadmin.php', |
|
48 | - 'icon' => $pathIcon32 . '/block.png', |
|
46 | + 'title' => constant('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS'), |
|
47 | + 'link' => 'admin/blocksadmin.php', |
|
48 | + 'icon' => $pathIcon32 . '/block.png', |
|
49 | 49 | ]; |
50 | 50 | |
51 | 51 | if (is_object($helper->getModule()) && $helper->getConfig('displayDeveloperTools')) { |
52 | - $adminmenu[] = [ |
|
53 | - 'title' => constant('CO_' . $moduleDirNameUpper . '_' . 'ADMENU_MIGRATE'), |
|
54 | - 'link' => 'admin/migrate.php', |
|
55 | - 'icon' => $pathIcon32 . '/database_go.png', |
|
56 | - ]; |
|
52 | + $adminmenu[] = [ |
|
53 | + 'title' => constant('CO_' . $moduleDirNameUpper . '_' . 'ADMENU_MIGRATE'), |
|
54 | + 'link' => 'admin/migrate.php', |
|
55 | + 'icon' => $pathIcon32 . '/database_go.png', |
|
56 | + ]; |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | // Category |
60 | 60 | $adminmenu[] = [ |
61 | - 'title' => _MI_MYIFRAME_ADMENU2, |
|
62 | - 'link' => 'admin/about.php', |
|
63 | - 'icon' => $pathIcon32 . '/about.png', |
|
61 | + 'title' => _MI_MYIFRAME_ADMENU2, |
|
62 | + 'link' => 'admin/about.php', |
|
63 | + 'icon' => $pathIcon32 . '/about.png', |
|
64 | 64 | |
65 | 65 | ]; |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | $helper->loadLanguage('feedback'); |
20 | 20 | |
21 | 21 | $pathIcon32 = Admin::menuIconPath(''); |
22 | -$pathModIcon32 = XOOPS_URL . '/modules/' . $moduleDirName . '/assets/images/icons/32/'; |
|
22 | +$pathModIcon32 = XOOPS_URL.'/modules/'.$moduleDirName.'/assets/images/icons/32/'; |
|
23 | 23 | if (is_object($helper->getModule()) |
24 | 24 | && false !== $helper->getModule() |
25 | 25 | ->getInfo('modicons32')) { |
@@ -32,27 +32,27 @@ discard block |
||
32 | 32 | $adminmenu[] = [ |
33 | 33 | 'title' => _MI_MYIFRAME_NAME, |
34 | 34 | 'link' => 'admin/index.php', |
35 | - 'icon' => $pathIcon32 . '/home.png', |
|
35 | + 'icon' => $pathIcon32.'/home.png', |
|
36 | 36 | ]; |
37 | 37 | |
38 | 38 | $adminmenu[] = [ |
39 | 39 | 'title' => _MI_MYIFRAME_ADMENU1, |
40 | 40 | 'link' => 'admin/manage.php', |
41 | - 'icon' => $pathIcon32 . '/manage.png', |
|
41 | + 'icon' => $pathIcon32.'/manage.png', |
|
42 | 42 | ]; |
43 | 43 | |
44 | 44 | // Blocks Admin |
45 | 45 | $adminmenu[] = [ |
46 | - 'title' => constant('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS'), |
|
46 | + 'title' => constant('CO_'.$moduleDirNameUpper.'_'.'BLOCKS'), |
|
47 | 47 | 'link' => 'admin/blocksadmin.php', |
48 | - 'icon' => $pathIcon32 . '/block.png', |
|
48 | + 'icon' => $pathIcon32.'/block.png', |
|
49 | 49 | ]; |
50 | 50 | |
51 | 51 | if (is_object($helper->getModule()) && $helper->getConfig('displayDeveloperTools')) { |
52 | 52 | $adminmenu[] = [ |
53 | - 'title' => constant('CO_' . $moduleDirNameUpper . '_' . 'ADMENU_MIGRATE'), |
|
53 | + 'title' => constant('CO_'.$moduleDirNameUpper.'_'.'ADMENU_MIGRATE'), |
|
54 | 54 | 'link' => 'admin/migrate.php', |
55 | - 'icon' => $pathIcon32 . '/database_go.png', |
|
55 | + 'icon' => $pathIcon32.'/database_go.png', |
|
56 | 56 | ]; |
57 | 57 | } |
58 | 58 | |
@@ -60,6 +60,6 @@ discard block |
||
60 | 60 | $adminmenu[] = [ |
61 | 61 | 'title' => _MI_MYIFRAME_ADMENU2, |
62 | 62 | 'link' => 'admin/about.php', |
63 | - 'icon' => $pathIcon32 . '/about.png', |
|
63 | + 'icon' => $pathIcon32.'/about.png', |
|
64 | 64 | |
65 | 65 | ]; |
@@ -16,138 +16,138 @@ discard block |
||
16 | 16 | $moduleDirName = \basename(\dirname(__DIR__, 2)); |
17 | 17 | $moduleDirNameUpper = \mb_strtoupper($moduleDirName); |
18 | 18 | |
19 | -\define('CO_' . $moduleDirNameUpper . '_GDLIBSTATUS', 'GD library support: '); |
|
20 | -\define('CO_' . $moduleDirNameUpper . '_GDLIBVERSION', 'GD Library version: '); |
|
21 | -\define('CO_' . $moduleDirNameUpper . '_GDOFF', "<span style='font-weight: bold;'>Disabled</span> (No thumbnails available)"); |
|
22 | -\define('CO_' . $moduleDirNameUpper . '_GDON', "<span style='font-weight: bold;'>Enabled</span> (Thumbsnails available)"); |
|
23 | -\define('CO_' . $moduleDirNameUpper . '_IMAGEINFO', 'Server status'); |
|
24 | -\define('CO_' . $moduleDirNameUpper . '_MAXPOSTSIZE', 'Max post size permitted (post_max_size directive in php.ini): '); |
|
25 | -\define('CO_' . $moduleDirNameUpper . '_MAXUPLOADSIZE', 'Max upload size permitted (upload_max_filesize directive in php.ini): '); |
|
26 | -\define('CO_' . $moduleDirNameUpper . '_MEMORYLIMIT', 'Memory limit (memory_limit directive in php.ini): '); |
|
27 | -\define('CO_' . $moduleDirNameUpper . '_METAVERSION', "<span style='font-weight: bold;'>Downloads meta version:</span> "); |
|
28 | -\define('CO_' . $moduleDirNameUpper . '_OFF', "<span style='font-weight: bold;'>OFF</span>"); |
|
29 | -\define('CO_' . $moduleDirNameUpper . '_ON', "<span style='font-weight: bold;'>ON</span>"); |
|
30 | -\define('CO_' . $moduleDirNameUpper . '_SERVERPATH', 'Server path to XOOPS root: '); |
|
31 | -\define('CO_' . $moduleDirNameUpper . '_SERVERUPLOADSTATUS', 'Server uploads status: '); |
|
32 | -\define('CO_' . $moduleDirNameUpper . '_SPHPINI', "<span style='font-weight: bold;'>Information taken from PHP ini file:</span>"); |
|
33 | -\define('CO_' . $moduleDirNameUpper . '_UPLOADPATHDSC', 'Note. Upload path *MUST* contain the full server path of your upload folder.'); |
|
34 | - |
|
35 | -\define('CO_' . $moduleDirNameUpper . '_PRINT', "<span style='font-weight: bold;'>Print</span>"); |
|
36 | -\define('CO_' . $moduleDirNameUpper . '_PDF', "<span style='font-weight: bold;'>Create PDF</span>"); |
|
37 | - |
|
38 | -\define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED0', "Update failed - couldn't rename field '%s'"); |
|
39 | -\define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED1', "Update failed - couldn't add new fields"); |
|
40 | -\define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED2', "Update failed - couldn't rename table '%s'"); |
|
41 | -\define('CO_' . $moduleDirNameUpper . '_ERROR_COLUMN', 'Could not create column in database : %s'); |
|
42 | -\define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_XOOPS', 'This module requires XOOPS %s+ (%s installed)'); |
|
43 | -\define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_PHP', 'This module requires PHP version %s+ (%s installed)'); |
|
44 | -\define('CO_' . $moduleDirNameUpper . '_ERROR_TAG_REMOVAL', 'Could not remove tags from Tag Module'); |
|
45 | - |
|
46 | -\define('CO_' . $moduleDirNameUpper . '_FOLDERS_DELETED_OK', 'Upload Folders have been deleted'); |
|
19 | +\define('CO_'.$moduleDirNameUpper.'_GDLIBSTATUS', 'GD library support: '); |
|
20 | +\define('CO_'.$moduleDirNameUpper.'_GDLIBVERSION', 'GD Library version: '); |
|
21 | +\define('CO_'.$moduleDirNameUpper.'_GDOFF', "<span style='font-weight: bold;'>Disabled</span> (No thumbnails available)"); |
|
22 | +\define('CO_'.$moduleDirNameUpper.'_GDON', "<span style='font-weight: bold;'>Enabled</span> (Thumbsnails available)"); |
|
23 | +\define('CO_'.$moduleDirNameUpper.'_IMAGEINFO', 'Server status'); |
|
24 | +\define('CO_'.$moduleDirNameUpper.'_MAXPOSTSIZE', 'Max post size permitted (post_max_size directive in php.ini): '); |
|
25 | +\define('CO_'.$moduleDirNameUpper.'_MAXUPLOADSIZE', 'Max upload size permitted (upload_max_filesize directive in php.ini): '); |
|
26 | +\define('CO_'.$moduleDirNameUpper.'_MEMORYLIMIT', 'Memory limit (memory_limit directive in php.ini): '); |
|
27 | +\define('CO_'.$moduleDirNameUpper.'_METAVERSION', "<span style='font-weight: bold;'>Downloads meta version:</span> "); |
|
28 | +\define('CO_'.$moduleDirNameUpper.'_OFF', "<span style='font-weight: bold;'>OFF</span>"); |
|
29 | +\define('CO_'.$moduleDirNameUpper.'_ON', "<span style='font-weight: bold;'>ON</span>"); |
|
30 | +\define('CO_'.$moduleDirNameUpper.'_SERVERPATH', 'Server path to XOOPS root: '); |
|
31 | +\define('CO_'.$moduleDirNameUpper.'_SERVERUPLOADSTATUS', 'Server uploads status: '); |
|
32 | +\define('CO_'.$moduleDirNameUpper.'_SPHPINI', "<span style='font-weight: bold;'>Information taken from PHP ini file:</span>"); |
|
33 | +\define('CO_'.$moduleDirNameUpper.'_UPLOADPATHDSC', 'Note. Upload path *MUST* contain the full server path of your upload folder.'); |
|
34 | + |
|
35 | +\define('CO_'.$moduleDirNameUpper.'_PRINT', "<span style='font-weight: bold;'>Print</span>"); |
|
36 | +\define('CO_'.$moduleDirNameUpper.'_PDF', "<span style='font-weight: bold;'>Create PDF</span>"); |
|
37 | + |
|
38 | +\define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED0', "Update failed - couldn't rename field '%s'"); |
|
39 | +\define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED1', "Update failed - couldn't add new fields"); |
|
40 | +\define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED2', "Update failed - couldn't rename table '%s'"); |
|
41 | +\define('CO_'.$moduleDirNameUpper.'_ERROR_COLUMN', 'Could not create column in database : %s'); |
|
42 | +\define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_XOOPS', 'This module requires XOOPS %s+ (%s installed)'); |
|
43 | +\define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_PHP', 'This module requires PHP version %s+ (%s installed)'); |
|
44 | +\define('CO_'.$moduleDirNameUpper.'_ERROR_TAG_REMOVAL', 'Could not remove tags from Tag Module'); |
|
45 | + |
|
46 | +\define('CO_'.$moduleDirNameUpper.'_FOLDERS_DELETED_OK', 'Upload Folders have been deleted'); |
|
47 | 47 | |
48 | 48 | // Error Msgs |
49 | -\define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_DEL_PATH', 'Could not delete %s directory'); |
|
50 | -\define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_REMOVE', 'Could not delete %s'); |
|
51 | -\define('CO_' . $moduleDirNameUpper . '_ERROR_NO_PLUGIN', 'Could not load plugin'); |
|
49 | +\define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_DEL_PATH', 'Could not delete %s directory'); |
|
50 | +\define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_REMOVE', 'Could not delete %s'); |
|
51 | +\define('CO_'.$moduleDirNameUpper.'_ERROR_NO_PLUGIN', 'Could not load plugin'); |
|
52 | 52 | |
53 | 53 | //Help |
54 | -\define('CO_' . $moduleDirNameUpper . '_DIRNAME', basename(dirname(__DIR__, 2))); |
|
55 | -\define('CO_' . $moduleDirNameUpper . '_HELP_HEADER', __DIR__ . '/help/helpheader.tpl'); |
|
56 | -\define('CO_' . $moduleDirNameUpper . '_BACK_2_ADMIN', 'Back to Administration of '); |
|
57 | -\define('CO_' . $moduleDirNameUpper . '_OVERVIEW', 'Overview'); |
|
54 | +\define('CO_'.$moduleDirNameUpper.'_DIRNAME', basename(dirname(__DIR__, 2))); |
|
55 | +\define('CO_'.$moduleDirNameUpper.'_HELP_HEADER', __DIR__.'/help/helpheader.tpl'); |
|
56 | +\define('CO_'.$moduleDirNameUpper.'_BACK_2_ADMIN', 'Back to Administration of '); |
|
57 | +\define('CO_'.$moduleDirNameUpper.'_OVERVIEW', 'Overview'); |
|
58 | 58 | |
59 | 59 | //\define('CO_' . $moduleDirNameUpper . '_HELP_DIR', __DIR__); |
60 | 60 | |
61 | 61 | //help multi-page |
62 | -\define('CO_' . $moduleDirNameUpper . '_DISCLAIMER', 'Disclaimer'); |
|
63 | -\define('CO_' . $moduleDirNameUpper . '_LICENSE', 'License'); |
|
64 | -\define('CO_' . $moduleDirNameUpper . '_SUPPORT', 'Support'); |
|
62 | +\define('CO_'.$moduleDirNameUpper.'_DISCLAIMER', 'Disclaimer'); |
|
63 | +\define('CO_'.$moduleDirNameUpper.'_LICENSE', 'License'); |
|
64 | +\define('CO_'.$moduleDirNameUpper.'_SUPPORT', 'Support'); |
|
65 | 65 | |
66 | 66 | //Sample Data |
67 | -\define('CO_' . $moduleDirNameUpper . '_' . 'LOAD_SAMPLEDATA', 'Import Sample Data (will delete ALL current data)'); |
|
68 | -\define('CO_' . $moduleDirNameUpper . '_' . 'LOAD_SAMPLEDATA_CONFIRM', 'Are you sure to Import Sample Data? (It will delete ALL current data)'); |
|
69 | -\define('CO_' . $moduleDirNameUpper . '_' . 'LOAD_SAMPLEDATA_SUCCESS', 'Sample Date imported successfully'); |
|
70 | -\define('CO_' . $moduleDirNameUpper . '_' . 'SAVE_SAMPLEDATA', 'Export Tables to YAML'); |
|
71 | -\define('CO_' . $moduleDirNameUpper . '_' . 'SAVE_SAMPLEDATA_SUCCESS', 'Export Tables to YAML successfully'); |
|
72 | -\define('CO_' . $moduleDirNameUpper . '_' . 'CLEAR_SAMPLEDATA', 'Clear Sample Data'); |
|
73 | -\define('CO_' . $moduleDirNameUpper . '_' . 'CLEAR_SAMPLEDATA_OK', 'The Sample Data has been cleared'); |
|
74 | -\define('CO_' . $moduleDirNameUpper . '_' . 'CLEAR_SAMPLEDATA_CONFIRM', 'Are you sure to Clear Sample Data? (It will delete ALL current data)'); |
|
75 | -\define('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA', 'Export DB Schema to YAML'); |
|
76 | -\define('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_SUCCESS', 'Export DB Schema to YAML was a success'); |
|
77 | -\define('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_ERROR', 'ERROR: Export of DB Schema to YAML failed'); |
|
78 | -\define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON', 'Show Sample Button?'); |
|
79 | -\define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON_DESC', 'If yes, the "Add Sample Data" button will be visible to the Admin. It is Yes as a default for first installation.'); |
|
80 | -\define('CO_' . $moduleDirNameUpper . '_' . 'HIDE_SAMPLEDATA_BUTTONS', 'Hide the Import buttons)'); |
|
81 | -\define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLEDATA_BUTTONS', 'Show the Import buttons)'); |
|
82 | - |
|
83 | -\define('CO_' . $moduleDirNameUpper . '_' . 'CONFIRM', 'Confirm'); |
|
67 | +\define('CO_'.$moduleDirNameUpper.'_'.'LOAD_SAMPLEDATA', 'Import Sample Data (will delete ALL current data)'); |
|
68 | +\define('CO_'.$moduleDirNameUpper.'_'.'LOAD_SAMPLEDATA_CONFIRM', 'Are you sure to Import Sample Data? (It will delete ALL current data)'); |
|
69 | +\define('CO_'.$moduleDirNameUpper.'_'.'LOAD_SAMPLEDATA_SUCCESS', 'Sample Date imported successfully'); |
|
70 | +\define('CO_'.$moduleDirNameUpper.'_'.'SAVE_SAMPLEDATA', 'Export Tables to YAML'); |
|
71 | +\define('CO_'.$moduleDirNameUpper.'_'.'SAVE_SAMPLEDATA_SUCCESS', 'Export Tables to YAML successfully'); |
|
72 | +\define('CO_'.$moduleDirNameUpper.'_'.'CLEAR_SAMPLEDATA', 'Clear Sample Data'); |
|
73 | +\define('CO_'.$moduleDirNameUpper.'_'.'CLEAR_SAMPLEDATA_OK', 'The Sample Data has been cleared'); |
|
74 | +\define('CO_'.$moduleDirNameUpper.'_'.'CLEAR_SAMPLEDATA_CONFIRM', 'Are you sure to Clear Sample Data? (It will delete ALL current data)'); |
|
75 | +\define('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA', 'Export DB Schema to YAML'); |
|
76 | +\define('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA_SUCCESS', 'Export DB Schema to YAML was a success'); |
|
77 | +\define('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA_ERROR', 'ERROR: Export of DB Schema to YAML failed'); |
|
78 | +\define('CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLE_BUTTON', 'Show Sample Button?'); |
|
79 | +\define('CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLE_BUTTON_DESC', 'If yes, the "Add Sample Data" button will be visible to the Admin. It is Yes as a default for first installation.'); |
|
80 | +\define('CO_'.$moduleDirNameUpper.'_'.'HIDE_SAMPLEDATA_BUTTONS', 'Hide the Import buttons)'); |
|
81 | +\define('CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLEDATA_BUTTONS', 'Show the Import buttons)'); |
|
82 | + |
|
83 | +\define('CO_'.$moduleDirNameUpper.'_'.'CONFIRM', 'Confirm'); |
|
84 | 84 | |
85 | 85 | //letter choice |
86 | -\define('CO_' . $moduleDirNameUpper . '_' . 'BROWSETOTOPIC', "<span style='font-weight: bold;'>Browse items alphabetically</span>"); |
|
87 | -\define('CO_' . $moduleDirNameUpper . '_' . 'OTHER', 'Other'); |
|
88 | -\define('CO_' . $moduleDirNameUpper . '_' . 'ALL', 'All'); |
|
86 | +\define('CO_'.$moduleDirNameUpper.'_'.'BROWSETOTOPIC', "<span style='font-weight: bold;'>Browse items alphabetically</span>"); |
|
87 | +\define('CO_'.$moduleDirNameUpper.'_'.'OTHER', 'Other'); |
|
88 | +\define('CO_'.$moduleDirNameUpper.'_'.'ALL', 'All'); |
|
89 | 89 | |
90 | 90 | // block defines |
91 | -\define('CO_' . $moduleDirNameUpper . '_' . 'ACCESSRIGHTS', 'Access Rights'); |
|
92 | -\define('CO_' . $moduleDirNameUpper . '_' . 'ACTION', 'Action'); |
|
93 | -\define('CO_' . $moduleDirNameUpper . '_' . 'ACTIVERIGHTS', 'Active Rights'); |
|
94 | -\define('CO_' . $moduleDirNameUpper . '_' . 'BADMIN', 'Block Administration'); |
|
95 | -\define('CO_' . $moduleDirNameUpper . '_' . 'BLKDESC', 'Description'); |
|
96 | -\define('CO_' . $moduleDirNameUpper . '_' . 'CBCENTER', 'Center Middle'); |
|
97 | -\define('CO_' . $moduleDirNameUpper . '_' . 'CBLEFT', 'Center Left'); |
|
98 | -\define('CO_' . $moduleDirNameUpper . '_' . 'CBRIGHT', 'Center Right'); |
|
99 | -\define('CO_' . $moduleDirNameUpper . '_' . 'SBLEFT', 'Left'); |
|
100 | -\define('CO_' . $moduleDirNameUpper . '_' . 'SBRIGHT', 'Right'); |
|
101 | -\define('CO_' . $moduleDirNameUpper . '_' . 'SIDE', 'Alignment'); |
|
102 | -\define('CO_' . $moduleDirNameUpper . '_' . 'TITLE', 'Title'); |
|
103 | -\define('CO_' . $moduleDirNameUpper . '_' . 'VISIBLE', 'Visible'); |
|
104 | -\define('CO_' . $moduleDirNameUpper . '_' . 'VISIBLEIN', 'Visible In'); |
|
105 | -\define('CO_' . $moduleDirNameUpper . '_' . 'WEIGHT', 'Weight'); |
|
106 | - |
|
107 | -\define('CO_' . $moduleDirNameUpper . '_' . 'PERMISSIONS', 'Permissions'); |
|
108 | -\define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS', 'Blocks Admin'); |
|
109 | -\define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_DESC', 'Blocks/Group Admin'); |
|
110 | - |
|
111 | -\define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_MANAGMENT', 'Manage'); |
|
112 | -\define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_ADDBLOCK', 'Add a new block'); |
|
113 | -\define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_EDITBLOCK', 'Edit a block'); |
|
114 | -\define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_CLONEBLOCK', 'Clone a block'); |
|
91 | +\define('CO_'.$moduleDirNameUpper.'_'.'ACCESSRIGHTS', 'Access Rights'); |
|
92 | +\define('CO_'.$moduleDirNameUpper.'_'.'ACTION', 'Action'); |
|
93 | +\define('CO_'.$moduleDirNameUpper.'_'.'ACTIVERIGHTS', 'Active Rights'); |
|
94 | +\define('CO_'.$moduleDirNameUpper.'_'.'BADMIN', 'Block Administration'); |
|
95 | +\define('CO_'.$moduleDirNameUpper.'_'.'BLKDESC', 'Description'); |
|
96 | +\define('CO_'.$moduleDirNameUpper.'_'.'CBCENTER', 'Center Middle'); |
|
97 | +\define('CO_'.$moduleDirNameUpper.'_'.'CBLEFT', 'Center Left'); |
|
98 | +\define('CO_'.$moduleDirNameUpper.'_'.'CBRIGHT', 'Center Right'); |
|
99 | +\define('CO_'.$moduleDirNameUpper.'_'.'SBLEFT', 'Left'); |
|
100 | +\define('CO_'.$moduleDirNameUpper.'_'.'SBRIGHT', 'Right'); |
|
101 | +\define('CO_'.$moduleDirNameUpper.'_'.'SIDE', 'Alignment'); |
|
102 | +\define('CO_'.$moduleDirNameUpper.'_'.'TITLE', 'Title'); |
|
103 | +\define('CO_'.$moduleDirNameUpper.'_'.'VISIBLE', 'Visible'); |
|
104 | +\define('CO_'.$moduleDirNameUpper.'_'.'VISIBLEIN', 'Visible In'); |
|
105 | +\define('CO_'.$moduleDirNameUpper.'_'.'WEIGHT', 'Weight'); |
|
106 | + |
|
107 | +\define('CO_'.$moduleDirNameUpper.'_'.'PERMISSIONS', 'Permissions'); |
|
108 | +\define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS', 'Blocks Admin'); |
|
109 | +\define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_DESC', 'Blocks/Group Admin'); |
|
110 | + |
|
111 | +\define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_MANAGMENT', 'Manage'); |
|
112 | +\define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_ADDBLOCK', 'Add a new block'); |
|
113 | +\define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_EDITBLOCK', 'Edit a block'); |
|
114 | +\define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_CLONEBLOCK', 'Clone a block'); |
|
115 | 115 | |
116 | 116 | //myblocksadmin |
117 | -\define('CO_' . $moduleDirNameUpper . '_' . 'AGDS', 'Admin Groups'); |
|
118 | -\define('CO_' . $moduleDirNameUpper . '_' . 'BCACHETIME', 'Cache Time'); |
|
119 | -\define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_ADMIN', 'Blocks Admin'); |
|
120 | -\define('CO_' . $moduleDirNameUpper . '_' . 'UPDATE_SUCCESS', 'Update successful'); |
|
117 | +\define('CO_'.$moduleDirNameUpper.'_'.'AGDS', 'Admin Groups'); |
|
118 | +\define('CO_'.$moduleDirNameUpper.'_'.'BCACHETIME', 'Cache Time'); |
|
119 | +\define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_ADMIN', 'Blocks Admin'); |
|
120 | +\define('CO_'.$moduleDirNameUpper.'_'.'UPDATE_SUCCESS', 'Update successful'); |
|
121 | 121 | |
122 | 122 | //Template Admin |
123 | -\define('CO_' . $moduleDirNameUpper . '_' . 'TPLSETS', 'Template Management'); |
|
124 | -\define('CO_' . $moduleDirNameUpper . '_' . 'GENERATE', 'Generate'); |
|
125 | -\define('CO_' . $moduleDirNameUpper . '_' . 'FILENAME', 'File Name'); |
|
123 | +\define('CO_'.$moduleDirNameUpper.'_'.'TPLSETS', 'Template Management'); |
|
124 | +\define('CO_'.$moduleDirNameUpper.'_'.'GENERATE', 'Generate'); |
|
125 | +\define('CO_'.$moduleDirNameUpper.'_'.'FILENAME', 'File Name'); |
|
126 | 126 | |
127 | 127 | //Menu |
128 | -\define('CO_' . $moduleDirNameUpper . '_' . 'ADMENU_MIGRATE', 'Migrate'); |
|
129 | -\define('CO_' . $moduleDirNameUpper . '_' . 'FOLDER_YES', 'Folder "%s" exist'); |
|
130 | -\define('CO_' . $moduleDirNameUpper . '_' . 'FOLDER_NO', 'Folder "%s" does not exist. Create the specified folder with CHMOD 777.'); |
|
131 | -\define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS', 'Show Development Tools Button?'); |
|
132 | -\define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS_DESC', 'If yes, the "Migrate" Tab and other Development tools will be visible to the Admin.'); |
|
133 | -\define('CO_' . $moduleDirNameUpper . '_' . 'ADMENU_FEEDBACK', 'Feedback'); |
|
134 | -\define('CO_' . $moduleDirNameUpper . '_' . 'MIGRATE_OK', 'Database migrated to current schema.'); |
|
135 | -\define('CO_' . $moduleDirNameUpper . '_' . 'MIGRATE_WARNING', 'Warning! This is intended for developers only. Confirm write schema file from current database.'); |
|
136 | -\define('CO_' . $moduleDirNameUpper . '_' . 'MIGRATE_SCHEMA_OK', 'Current schema file written'); |
|
128 | +\define('CO_'.$moduleDirNameUpper.'_'.'ADMENU_MIGRATE', 'Migrate'); |
|
129 | +\define('CO_'.$moduleDirNameUpper.'_'.'FOLDER_YES', 'Folder "%s" exist'); |
|
130 | +\define('CO_'.$moduleDirNameUpper.'_'.'FOLDER_NO', 'Folder "%s" does not exist. Create the specified folder with CHMOD 777.'); |
|
131 | +\define('CO_'.$moduleDirNameUpper.'_'.'SHOW_DEV_TOOLS', 'Show Development Tools Button?'); |
|
132 | +\define('CO_'.$moduleDirNameUpper.'_'.'SHOW_DEV_TOOLS_DESC', 'If yes, the "Migrate" Tab and other Development tools will be visible to the Admin.'); |
|
133 | +\define('CO_'.$moduleDirNameUpper.'_'.'ADMENU_FEEDBACK', 'Feedback'); |
|
134 | +\define('CO_'.$moduleDirNameUpper.'_'.'MIGRATE_OK', 'Database migrated to current schema.'); |
|
135 | +\define('CO_'.$moduleDirNameUpper.'_'.'MIGRATE_WARNING', 'Warning! This is intended for developers only. Confirm write schema file from current database.'); |
|
136 | +\define('CO_'.$moduleDirNameUpper.'_'.'MIGRATE_SCHEMA_OK', 'Current schema file written'); |
|
137 | 137 | |
138 | 138 | //Latest Version Check |
139 | -\define('CO_' . $moduleDirNameUpper . '_' . 'NEW_VERSION', 'New Version: '); |
|
139 | +\define('CO_'.$moduleDirNameUpper.'_'.'NEW_VERSION', 'New Version: '); |
|
140 | 140 | |
141 | 141 | //DirectoryChecker |
142 | -\define('CO_' . $moduleDirNameUpper . '_' . 'AVAILABLE', "<span style='color: green;'>Available</span>"); |
|
143 | -\define('CO_' . $moduleDirNameUpper . '_' . 'NOTAVAILABLE', "<span style='color: red;'>Not available</span>"); |
|
144 | -\define('CO_' . $moduleDirNameUpper . '_' . 'NOTWRITABLE', "<span style='color: red;'>Should have permission ( %d ), but it has ( %d )</span>"); |
|
145 | -\define('CO_' . $moduleDirNameUpper . '_' . 'CREATETHEDIR', 'Create it'); |
|
146 | -\define('CO_' . $moduleDirNameUpper . '_' . 'SETMPERM', 'Set the permission'); |
|
147 | -\define('CO_' . $moduleDirNameUpper . '_' . 'DIRCREATED', 'The directory has been created'); |
|
148 | -\define('CO_' . $moduleDirNameUpper . '_' . 'DIRNOTCREATED', 'The directory cannot be created'); |
|
149 | -\define('CO_' . $moduleDirNameUpper . '_' . 'PERMSET', 'The permission has been set'); |
|
150 | -\define('CO_' . $moduleDirNameUpper . '_' . 'PERMNOTSET', 'The permission cannot be set'); |
|
142 | +\define('CO_'.$moduleDirNameUpper.'_'.'AVAILABLE', "<span style='color: green;'>Available</span>"); |
|
143 | +\define('CO_'.$moduleDirNameUpper.'_'.'NOTAVAILABLE', "<span style='color: red;'>Not available</span>"); |
|
144 | +\define('CO_'.$moduleDirNameUpper.'_'.'NOTWRITABLE', "<span style='color: red;'>Should have permission ( %d ), but it has ( %d )</span>"); |
|
145 | +\define('CO_'.$moduleDirNameUpper.'_'.'CREATETHEDIR', 'Create it'); |
|
146 | +\define('CO_'.$moduleDirNameUpper.'_'.'SETMPERM', 'Set the permission'); |
|
147 | +\define('CO_'.$moduleDirNameUpper.'_'.'DIRCREATED', 'The directory has been created'); |
|
148 | +\define('CO_'.$moduleDirNameUpper.'_'.'DIRNOTCREATED', 'The directory cannot be created'); |
|
149 | +\define('CO_'.$moduleDirNameUpper.'_'.'PERMSET', 'The permission has been set'); |
|
150 | +\define('CO_'.$moduleDirNameUpper.'_'.'PERMNOTSET', 'The permission cannot be set'); |
|
151 | 151 | |
152 | 152 | //FileChecker |
153 | 153 | //\define('CO_' . $moduleDirNameUpper . '_' . 'AVAILABLE', "<span style='color: green;'>Available</span>"); |
@@ -157,32 +157,32 @@ discard block |
||
157 | 157 | //\define('CO_' . $moduleDirNameUpper . '_' . 'CREATETHEFILE', 'Create it'); |
158 | 158 | //\define('CO_' . $moduleDirNameUpper . '_' . 'SETMPERM', 'Set the permission'); |
159 | 159 | |
160 | -\define('CO_' . $moduleDirNameUpper . '_' . 'FILECOPIED', 'The file has been copied'); |
|
161 | -\define('CO_' . $moduleDirNameUpper . '_' . 'FILENOTCOPIED', 'The file cannot be copied'); |
|
160 | +\define('CO_'.$moduleDirNameUpper.'_'.'FILECOPIED', 'The file has been copied'); |
|
161 | +\define('CO_'.$moduleDirNameUpper.'_'.'FILENOTCOPIED', 'The file cannot be copied'); |
|
162 | 162 | |
163 | -\define('CO_' . $moduleDirNameUpper . '_' . 'TRUNCATE_LENGTH', 'Number of Characters to truncate to the long text field'); |
|
164 | -\define('CO_' . $moduleDirNameUpper . '_' . 'TRUNCATE_LENGTH_DESC', 'Set the maximum number of characters to truncate the long text fields'); |
|
163 | +\define('CO_'.$moduleDirNameUpper.'_'.'TRUNCATE_LENGTH', 'Number of Characters to truncate to the long text field'); |
|
164 | +\define('CO_'.$moduleDirNameUpper.'_'.'TRUNCATE_LENGTH_DESC', 'Set the maximum number of characters to truncate the long text fields'); |
|
165 | 165 | |
166 | 166 | //image config |
167 | -\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_WIDTH', 'Image Display Width'); |
|
168 | -\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_WIDTH_DSC', 'Display width for image'); |
|
169 | -\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_HEIGHT', 'Image Display Height'); |
|
170 | -\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_HEIGHT_DSC', 'Display height for image'); |
|
171 | -\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_CONFIG', '<span style="color: #FF0000; font-size: Small; font-weight: bold;">--- EXTERNAL Image configuration ---</span> '); |
|
172 | -\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_CONFIG_DSC', ''); |
|
173 | -\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_UPLOAD_PATH', 'Image Upload path'); |
|
174 | -\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_UPLOAD_PATH_DSC', 'Path for uploading images'); |
|
175 | - |
|
176 | -\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_FILE_SIZE', 'Image File Size (in Bytes)'); |
|
177 | -\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_FILE_SIZE_DSC', 'The maximum file size of the image file (in Bytes)'); |
|
167 | +\define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_WIDTH', 'Image Display Width'); |
|
168 | +\define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_WIDTH_DSC', 'Display width for image'); |
|
169 | +\define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_HEIGHT', 'Image Display Height'); |
|
170 | +\define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_HEIGHT_DSC', 'Display height for image'); |
|
171 | +\define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_CONFIG', '<span style="color: #FF0000; font-size: Small; font-weight: bold;">--- EXTERNAL Image configuration ---</span> '); |
|
172 | +\define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_CONFIG_DSC', ''); |
|
173 | +\define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_UPLOAD_PATH', 'Image Upload path'); |
|
174 | +\define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_UPLOAD_PATH_DSC', 'Path for uploading images'); |
|
175 | + |
|
176 | +\define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_FILE_SIZE', 'Image File Size (in Bytes)'); |
|
177 | +\define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_FILE_SIZE_DSC', 'The maximum file size of the image file (in Bytes)'); |
|
178 | 178 | |
179 | 179 | //Module Stats |
180 | -\define('CO_' . $moduleDirNameUpper . '_' . 'STATS_SUMMARY', 'Module Statistics'); |
|
181 | -\define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_CATEGORIES', 'Categories:'); |
|
182 | -\define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_ITEMS', 'Items'); |
|
183 | -\define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_OFFLINE', 'Offline'); |
|
184 | -\define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_PUBLISHED', 'Published'); |
|
185 | -\define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_REJECTED', 'Rejected'); |
|
186 | -\define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_SUBMITTED', 'Submitted'); |
|
187 | - |
|
188 | -\define('CO_' . $moduleDirNameUpper . '_' . 'ERROR403', 'You are not allowed to view this page!'); |
|
180 | +\define('CO_'.$moduleDirNameUpper.'_'.'STATS_SUMMARY', 'Module Statistics'); |
|
181 | +\define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_CATEGORIES', 'Categories:'); |
|
182 | +\define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_ITEMS', 'Items'); |
|
183 | +\define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_OFFLINE', 'Offline'); |
|
184 | +\define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_PUBLISHED', 'Published'); |
|
185 | +\define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_REJECTED', 'Rejected'); |
|
186 | +\define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_SUBMITTED', 'Submitted'); |
|
187 | + |
|
188 | +\define('CO_'.$moduleDirNameUpper.'_'.'ERROR403', 'You are not allowed to view this page!'); |
@@ -26,7 +26,7 @@ |
||
26 | 26 | |
27 | 27 | //Help |
28 | 28 | define('_MI_MYIFRAME_DIRNAME', basename(dirname(__DIR__, 2))); |
29 | -define('_MI_MYIFRAME_HELP_HEADER', __DIR__ . '/help/helpheader.tpl'); |
|
29 | +define('_MI_MYIFRAME_HELP_HEADER', __DIR__.'/help/helpheader.tpl'); |
|
30 | 30 | define('_MI_MYIFRAME_BACK_2_ADMIN', 'Back to Administration of '); |
31 | 31 | define('_MI_MYIFRAME_OVERVIEW', 'Overview'); |
32 | 32 |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | */ |
20 | 20 | |
21 | 21 | use XoopsModules\Myiframe\{ |
22 | - Helper |
|
22 | + Helper |
|
23 | 23 | }; |
24 | 24 | /** @var Helper $helper */ |
25 | 25 | |
@@ -37,12 +37,12 @@ discard block |
||
37 | 37 | $myts = \MyTextSanitizer::getInstance(); |
38 | 38 | |
39 | 39 | if (!isset($GLOBALS['xoTheme']) || !is_object($GLOBALS['xoTheme'])) { |
40 | - require $GLOBALS['xoops']->path('class/theme.php'); |
|
41 | - $GLOBALS['xoTheme'] = new \xos_opal_Theme(); |
|
40 | + require $GLOBALS['xoops']->path('class/theme.php'); |
|
41 | + $GLOBALS['xoTheme'] = new \xos_opal_Theme(); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | if (!isset($GLOBALS['xoopsTpl']) || !($GLOBALS['xoopsTpl'] instanceof XoopsTpl)) { |
45 | - require $GLOBALS['xoops']->path('class/template.php'); |
|
46 | - $xoopsTpl = new XoopsTpl(); |
|
45 | + require $GLOBALS['xoops']->path('class/template.php'); |
|
46 | + $xoopsTpl = new XoopsTpl(); |
|
47 | 47 | } |
48 | 48 |
@@ -24,10 +24,10 @@ |
||
24 | 24 | |
25 | 25 | /** @var Helper $helper */ |
26 | 26 | |
27 | -require dirname(__DIR__, 2) . '/mainfile.php'; |
|
28 | -require XOOPS_ROOT_PATH . '/header.php'; |
|
27 | +require dirname(__DIR__, 2).'/mainfile.php'; |
|
28 | +require XOOPS_ROOT_PATH.'/header.php'; |
|
29 | 29 | |
30 | -require __DIR__ . '/preloads/autoloader.php'; |
|
30 | +require __DIR__.'/preloads/autoloader.php'; |
|
31 | 31 | |
32 | 32 | $moduleDirName = basename(__DIR__); |
33 | 33 |
@@ -21,69 +21,69 @@ |
||
21 | 21 | $moduleDirNameUpper = \mb_strtoupper($moduleDirName); |
22 | 22 | |
23 | 23 | return (object)[ |
24 | - 'name' => $moduleDirNameUpper . ' Module Configurator', |
|
25 | - 'paths' => [ |
|
26 | - 'dirname' => $moduleDirName, |
|
27 | - 'admin' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin', |
|
28 | - 'modPath' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName, |
|
29 | - 'modUrl' => XOOPS_URL . '/modules/' . $moduleDirName, |
|
30 | - 'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
31 | - 'uploadUrl' => XOOPS_UPLOAD_URL . '/' . $moduleDirName, |
|
32 | - ], |
|
33 | - 'uploadFolders' => [ |
|
34 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
35 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category', |
|
36 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots', |
|
37 | - //XOOPS_UPLOAD_PATH . '/flags' |
|
38 | - ], |
|
39 | - 'copyBlankFiles' => [ |
|
40 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
41 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category', |
|
42 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots', |
|
43 | - //XOOPS_UPLOAD_PATH . '/flags' |
|
44 | - ], |
|
24 | + 'name' => $moduleDirNameUpper . ' Module Configurator', |
|
25 | + 'paths' => [ |
|
26 | + 'dirname' => $moduleDirName, |
|
27 | + 'admin' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin', |
|
28 | + 'modPath' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName, |
|
29 | + 'modUrl' => XOOPS_URL . '/modules/' . $moduleDirName, |
|
30 | + 'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
31 | + 'uploadUrl' => XOOPS_UPLOAD_URL . '/' . $moduleDirName, |
|
32 | + ], |
|
33 | + 'uploadFolders' => [ |
|
34 | + XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
35 | + XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category', |
|
36 | + XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots', |
|
37 | + //XOOPS_UPLOAD_PATH . '/flags' |
|
38 | + ], |
|
39 | + 'copyBlankFiles' => [ |
|
40 | + XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
41 | + XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category', |
|
42 | + XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots', |
|
43 | + //XOOPS_UPLOAD_PATH . '/flags' |
|
44 | + ], |
|
45 | 45 | |
46 | - 'copyTestFolders' => [ |
|
47 | - [ |
|
48 | - XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/uploads', |
|
49 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
50 | - ], |
|
51 | - // [ |
|
52 | - // XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/thumbs', |
|
53 | - // XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/thumbs', |
|
54 | - // ], |
|
55 | - ], |
|
46 | + 'copyTestFolders' => [ |
|
47 | + [ |
|
48 | + XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/uploads', |
|
49 | + XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
50 | + ], |
|
51 | + // [ |
|
52 | + // XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/thumbs', |
|
53 | + // XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/thumbs', |
|
54 | + // ], |
|
55 | + ], |
|
56 | 56 | |
57 | - 'templateFolders' => [ |
|
58 | - '/templates/', |
|
59 | - // '/templates/blocks/', |
|
60 | - // '/templates/admin/' |
|
61 | - ], |
|
62 | - 'oldFiles' => [ |
|
63 | - '/class/request.php', |
|
64 | - '/class/registry.php', |
|
65 | - '/class/utilities.php', |
|
66 | - '/class/util.php', |
|
67 | - // '/include/constants.php', |
|
68 | - // '/include/functions.php', |
|
69 | - '/ajaxrating.txt', |
|
70 | - ], |
|
71 | - 'oldFolders' => [ |
|
72 | - '/images', |
|
73 | - '/css', |
|
74 | - '/js', |
|
75 | - '/tcpdf', |
|
76 | - ], |
|
57 | + 'templateFolders' => [ |
|
58 | + '/templates/', |
|
59 | + // '/templates/blocks/', |
|
60 | + // '/templates/admin/' |
|
61 | + ], |
|
62 | + 'oldFiles' => [ |
|
63 | + '/class/request.php', |
|
64 | + '/class/registry.php', |
|
65 | + '/class/utilities.php', |
|
66 | + '/class/util.php', |
|
67 | + // '/include/constants.php', |
|
68 | + // '/include/functions.php', |
|
69 | + '/ajaxrating.txt', |
|
70 | + ], |
|
71 | + 'oldFolders' => [ |
|
72 | + '/images', |
|
73 | + '/css', |
|
74 | + '/js', |
|
75 | + '/tcpdf', |
|
76 | + ], |
|
77 | 77 | |
78 | - 'renameTables' => [// 'XX_archive' => 'ZZZZ_archive', |
|
79 | - ], |
|
80 | - 'renameColumns' => [// 'extcal_event' => ['from' => 'event_etablissement', 'to' => 'event_location'], |
|
81 | - ], |
|
82 | - 'moduleStats' => [ |
|
83 | - // 'totalcategories' => $helper->getHandler('Category')->getCategoriesCount(-1), |
|
84 | - // 'totalitems' => $helper->getHandler('Item')->getItemsCount(), |
|
85 | - // 'totalsubmitted' => $helper->getHandler('Item')->getItemsCount(-1, [Constants::PUBLISHER_STATUS_SUBMITTED]), |
|
86 | - ], |
|
87 | - 'modCopyright' => "<a href='https://xoops.org' title='XOOPS Project' target='_blank'> |
|
78 | + 'renameTables' => [// 'XX_archive' => 'ZZZZ_archive', |
|
79 | + ], |
|
80 | + 'renameColumns' => [// 'extcal_event' => ['from' => 'event_etablissement', 'to' => 'event_location'], |
|
81 | + ], |
|
82 | + 'moduleStats' => [ |
|
83 | + // 'totalcategories' => $helper->getHandler('Category')->getCategoriesCount(-1), |
|
84 | + // 'totalitems' => $helper->getHandler('Item')->getItemsCount(), |
|
85 | + // 'totalsubmitted' => $helper->getHandler('Item')->getItemsCount(-1, [Constants::PUBLISHER_STATUS_SUBMITTED]), |
|
86 | + ], |
|
87 | + 'modCopyright' => "<a href='https://xoops.org' title='XOOPS Project' target='_blank'> |
|
88 | 88 | <img src='" . Admin::iconUrl('xoopsmicrobutton.gif') . "' alt='XOOPS Project'></a>", |
89 | 89 | ]; |
@@ -20,33 +20,33 @@ discard block |
||
20 | 20 | $moduleDirName = \basename(\dirname(__DIR__)); |
21 | 21 | $moduleDirNameUpper = \mb_strtoupper($moduleDirName); |
22 | 22 | |
23 | -return (object)[ |
|
24 | - 'name' => $moduleDirNameUpper . ' Module Configurator', |
|
23 | +return (object) [ |
|
24 | + 'name' => $moduleDirNameUpper.' Module Configurator', |
|
25 | 25 | 'paths' => [ |
26 | 26 | 'dirname' => $moduleDirName, |
27 | - 'admin' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin', |
|
28 | - 'modPath' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName, |
|
29 | - 'modUrl' => XOOPS_URL . '/modules/' . $moduleDirName, |
|
30 | - 'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
31 | - 'uploadUrl' => XOOPS_UPLOAD_URL . '/' . $moduleDirName, |
|
27 | + 'admin' => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/admin', |
|
28 | + 'modPath' => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName, |
|
29 | + 'modUrl' => XOOPS_URL.'/modules/'.$moduleDirName, |
|
30 | + 'uploadPath' => XOOPS_UPLOAD_PATH.'/'.$moduleDirName, |
|
31 | + 'uploadUrl' => XOOPS_UPLOAD_URL.'/'.$moduleDirName, |
|
32 | 32 | ], |
33 | 33 | 'uploadFolders' => [ |
34 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
35 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category', |
|
36 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots', |
|
34 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName, |
|
35 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/category', |
|
36 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/screenshots', |
|
37 | 37 | //XOOPS_UPLOAD_PATH . '/flags' |
38 | 38 | ], |
39 | 39 | 'copyBlankFiles' => [ |
40 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
41 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category', |
|
42 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots', |
|
40 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName, |
|
41 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/category', |
|
42 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/screenshots', |
|
43 | 43 | //XOOPS_UPLOAD_PATH . '/flags' |
44 | 44 | ], |
45 | 45 | |
46 | 46 | 'copyTestFolders' => [ |
47 | 47 | [ |
48 | - XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/uploads', |
|
49 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
48 | + XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/testdata/uploads', |
|
49 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName, |
|
50 | 50 | ], |
51 | 51 | // [ |
52 | 52 | // XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/thumbs', |
@@ -85,5 +85,5 @@ discard block |
||
85 | 85 | // 'totalsubmitted' => $helper->getHandler('Item')->getItemsCount(-1, [Constants::PUBLISHER_STATUS_SUBMITTED]), |
86 | 86 | ], |
87 | 87 | 'modCopyright' => "<a href='https://xoops.org' title='XOOPS Project' target='_blank'> |
88 | - <img src='" . Admin::iconUrl('xoopsmicrobutton.gif') . "' alt='XOOPS Project'></a>", |
|
88 | + <img src='" . Admin::iconUrl('xoopsmicrobutton.gif')."' alt='XOOPS Project'></a>", |
|
89 | 89 | ]; |