Passed
Push — master ( 829601...ed204a )
by Michael
02:18
created
class/ContactHandler.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -144,34 +144,34 @@  discard block
 block discarded – undo
144 144
         $info          = '';
145 145
         $subjectPrefix = '';
146 146
         if ($GLOBALS['xoopsModuleConfig']['form_dept'] && $GLOBALS['xoopsModuleConfig']['subject_prefix'] && $GLOBALS['xoopsModuleConfig']['contact_dept']) {
147
-            $subjectPrefix = '[' . $GLOBALS['xoopsModuleConfig']['prefix_text'] . ' ' . $contact['contact_department'] . ']: ';
148
-            $info          .= _MD_CONTACT_DEPARTMENT . ': ' . $contact['contact_department'] . "\n";
147
+            $subjectPrefix = '['.$GLOBALS['xoopsModuleConfig']['prefix_text'].' '.$contact['contact_department'].']: ';
148
+            $info .= _MD_CONTACT_DEPARTMENT.': '.$contact['contact_department']."\n";
149 149
         }
150
-        $xoopsMailer->setSubject($subjectPrefix . \html_entity_decode($contact['contact_subject'], \ENT_QUOTES, 'UTF-8'));
150
+        $xoopsMailer->setSubject($subjectPrefix.\html_entity_decode($contact['contact_subject'], \ENT_QUOTES, 'UTF-8'));
151 151
 
152 152
         if ($contact['contact_url']) {
153
-            $info .= _MD_CONTACT_URL . ': ' . $contact['contact_url'] . "\n";
153
+            $info .= _MD_CONTACT_URL.': '.$contact['contact_url']."\n";
154 154
         }
155 155
         if ($contact['contact_icq']) {
156
-            $info .= _MD_CONTACT_ICQ . ': ' . $contact['contact_icq'] . "\n";
156
+            $info .= _MD_CONTACT_ICQ.': '.$contact['contact_icq']."\n";
157 157
         }
158 158
         if ($contact['contact_skype']) {
159
-            $info .= _MD_CONTACT_SKYPE . ': ' . $contact['contact_skype'] . "\n";
159
+            $info .= _MD_CONTACT_SKYPE.': '.$contact['contact_skype']."\n";
160 160
         }
161 161
         if ($contact['contact_phone']) {
162
-            $info .= _MD_CONTACT_PHONE . ': ' . $contact['contact_phone'] . "\n";
162
+            $info .= _MD_CONTACT_PHONE.': '.$contact['contact_phone']."\n";
163 163
         }
164 164
         if ($contact['contact_company']) {
165
-            $info .= _MD_CONTACT_COMPANY . ': ' . $contact['contact_company'] . "\n";
165
+            $info .= _MD_CONTACT_COMPANY.': '.$contact['contact_company']."\n";
166 166
         }
167 167
         if ($contact['contact_location']) {
168
-            $info .= _MD_CONTACT_LOCATION . ': ' . $contact['contact_location'] . "\n";
168
+            $info .= _MD_CONTACT_LOCATION.': '.$contact['contact_location']."\n";
169 169
         }
170 170
         if ($contact['contact_address']) {
171
-            $info .= _MD_CONTACT_ADDRESS . ': ' . $contact['contact_address'] . "\n";
171
+            $info .= _MD_CONTACT_ADDRESS.': '.$contact['contact_address']."\n";
172 172
         }
173 173
         if ('' !== $info) {
174
-            $info = "\n" . $info . "\n";
174
+            $info = "\n".$info."\n";
175 175
         }
176 176
 
177 177
         $body = \str_replace('{BODY}', \html_entity_decode($contact['contact_message'], \ENT_QUOTES, 'UTF-8'), _MD_CONTACT_MAIL_BODY);
@@ -204,28 +204,28 @@  discard block
 block discarded – undo
204 204
 
205 205
         $info = '';
206 206
         if ($contact['contact_url']) {
207
-            $info .= _MD_CONTACT_URL . ': ' . $contact['contact_url'] . "\n";
207
+            $info .= _MD_CONTACT_URL.': '.$contact['contact_url']."\n";
208 208
         }
209 209
         if ($contact['contact_icq']) {
210
-            $info .= _MD_CONTACT_ICQ . ': ' . $contact['contact_icq'] . "\n";
210
+            $info .= _MD_CONTACT_ICQ.': '.$contact['contact_icq']."\n";
211 211
         }
212 212
         if ($contact['contact_skype']) {
213
-            $info .= _MD_CONTACT_SKYPE . ': ' . $contact['contact_skype'] . "\n";
213
+            $info .= _MD_CONTACT_SKYPE.': '.$contact['contact_skype']."\n";
214 214
         }
215 215
         if ($contact['contact_phone']) {
216
-            $info .= _MD_CONTACT_PHONE . ': ' . $contact['contact_phone'] . "\n";
216
+            $info .= _MD_CONTACT_PHONE.': '.$contact['contact_phone']."\n";
217 217
         }
218 218
         if ($contact['contact_company']) {
219
-            $info .= _MD_CONTACT_COMPANY . ': ' . $contact['contact_company'] . "\n";
219
+            $info .= _MD_CONTACT_COMPANY.': '.$contact['contact_company']."\n";
220 220
         }
221 221
         if ($contact['contact_location']) {
222
-            $info .= _MD_CONTACT_LOCATION . ': ' . $contact['contact_location'] . "\n";
222
+            $info .= _MD_CONTACT_LOCATION.': '.$contact['contact_location']."\n";
223 223
         }
224 224
         if ($contact['contact_address']) {
225
-            $info .= _MD_CONTACT_ADDRESS . ': ' . $contact['contact_address'] . "\n";
225
+            $info .= _MD_CONTACT_ADDRESS.': '.$contact['contact_address']."\n";
226 226
         }
227 227
         if ('' !== $info) {
228
-            $info = "\n" . $info . "\n";
228
+            $info = "\n".$info."\n";
229 229
         }
230 230
 
231 231
         $body = \str_replace('{NAME}', \html_entity_decode($contact['contact_name'], \ENT_QUOTES, 'UTF-8'), _MD_CONTACT_MAILCONFIRM_BODY);
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
         $criteria = new \CriteriaCompo();
312 312
         $criteria->add(new \Criteria('contact_cid', $contact_id));
313 313
         $criteria->add(new \Criteria('contact_type', 'Contact'));
314
-        $contacts =& $this->getObjects($criteria, false);
314
+        $contacts = & $this->getObjects($criteria, false);
315 315
         if ($contacts) {
316 316
             $ret = [];
317 317
             /** @var Contact $root */
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
         $criteria->setOrder($contact['order']);
343 343
         $criteria->setStart($contact['start']);
344 344
         $criteria->setLimit($contact['limit']);
345
-        $contacts =& $this->getObjects($criteria, false);
345
+        $contacts = & $this->getObjects($criteria, false);
346 346
         if ($contacts) {
347 347
             /** @var Contact $root */
348 348
             foreach ($contacts as $root) {
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
         }
483 483
         $criteria->setSort('contact_create');
484 484
         $criteria->setOrder('DESC');
485
-        $contacts =& $this->getObjects($criteria, false);
485
+        $contacts = & $this->getObjects($criteria, false);
486 486
         if ($contacts) {
487 487
             /** @var Contact $root */
488 488
             foreach ($contacts as $root) {
Please login to merge, or discard this patch.
admin/menu.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 $helper->loadLanguage('feedback');
33 33
 
34 34
 $pathIcon32 = Admin::menuIconPath('');
35
-$pathModIcon32 = XOOPS_URL .   '/modules/' . $moduleDirName . '/assets/images/icons/32/';
35
+$pathModIcon32 = XOOPS_URL.'/modules/'.$moduleDirName.'/assets/images/icons/32/';
36 36
 if (is_object($helper->getModule()) && false !== $helper->getModule()->getInfo('modicons32')) {
37 37
     $pathModIcon32 = $helper->url($helper->getModule()->getInfo('modicons32'));
38 38
 }
@@ -40,34 +40,34 @@  discard block
 block discarded – undo
40 40
 $adminmenu[] = [
41 41
     'title' => _MI_CONTACT_MENU_HOME,
42 42
     'desc'  => _MI_CONTACT_MENU_HOME_DESC,
43
-    'icon'  => $pathIcon32 . '/home.png',
43
+    'icon'  => $pathIcon32.'/home.png',
44 44
     'link'  => 'admin/index.php',
45 45
 ];
46 46
 
47 47
 $adminmenu[] = [
48 48
     'title' => _MI_CONTACT_MENU_CONTACT,
49 49
     'desc'  => _MI_CONTACT_MENU_CONTACT_DESC,
50
-    'icon'  => $pathIcon32 . '/content.png',
50
+    'icon'  => $pathIcon32.'/content.png',
51 51
     'link'  => 'admin/main.php',
52 52
 ];
53 53
 
54 54
 $adminmenu[] = [
55 55
     'title' => _MI_CONTACT_MENU_LOGS,
56 56
     'desc'  => _MI_CONTACT_MENU_LOGS_DESC,
57
-    'icon'  => $pathIcon32 . '/identity.png',
57
+    'icon'  => $pathIcon32.'/identity.png',
58 58
     'link'  => 'admin/log.php',
59 59
 ];
60 60
 
61 61
 $adminmenu[] = [
62 62
     'title' => _MI_CONTACT_MENU_TOOLS,
63 63
     'desc'  => _MI_CONTACT_MENU_TOOLS_DESC,
64
-    'icon'  => $pathIcon32 . '/delete.png',
64
+    'icon'  => $pathIcon32.'/delete.png',
65 65
     'link'  => 'admin/tools.php',
66 66
 ];
67 67
 
68 68
 $adminmenu[] = [
69 69
     'title' => _MI_CONTACT_MENU_ABOUT,
70 70
     'desc'  => _MI_CONTACT_MENU_ABOUT_DESC,
71
-    'icon'  => $pathIcon32 . '/about.png',
71
+    'icon'  => $pathIcon32.'/about.png',
72 72
     'link'  => 'admin/about.php',
73 73
 ];
Please login to merge, or discard this patch.
admin/admin_footer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,6 +16,6 @@
 block discarded – undo
16 16
  */
17 17
 $pathIcon32 = Xmf\Module\Admin::iconUrl('', 32);
18 18
 
19
-echo "<div class='adminfooter'>\n" . "  <div style='text-align: center;'>\n" . "    <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" . "  </div>\n" . '  ' . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" . '</div>';
19
+echo "<div class='adminfooter'>\n"."  <div style='text-align: center;'>\n"."    <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n"."  </div>\n".'  '._AM_MODULEADMIN_ADMIN_FOOTER."\n".'</div>';
20 20
 
21 21
 xoops_cp_footer();
Please login to merge, or discard this patch.
admin/about.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,11 +24,11 @@
 block discarded – undo
24 24
 
25 25
 /** @var Admin $adminObject */
26 26
 
27
-require_once __DIR__ . '/admin_header.php';
27
+require_once __DIR__.'/admin_header.php';
28 28
 xoops_cp_header();
29 29
 
30 30
 $adminObject->displayNavigation(basename(__FILE__));
31 31
 $adminObject::setPaypal('[email protected]');
32 32
 $adminObject->displayAbout(false);
33 33
 
34
-require_once __DIR__ . '/admin_footer.php';
34
+require_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
config/icons.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -9,18 +9,18 @@
 block discarded – undo
9 9
 $pathIcon16    = Admin::iconUrl('', 16);
10 10
 $moduleDirName = \basename(\dirname(__DIR__));
11 11
 
12
-return (object)[
12
+return (object) [
13 13
     //    'name'  => mb_strtoupper($moduleDirName) . ' IconConfigurator',
14 14
     //    'icons' => [
15
-    'edit'    => "<img src='" . $pathIcon16 . "/edit.png'  alt=" . _EDIT . "' align='middle'>",
16
-    'delete'  => "<img src='" . $pathIcon16 . "/delete.png' alt='" . _DELETE . "' align='middle'>",
17
-    'clone'   => "<img src='" . $pathIcon16 . "/editcopy.png' alt='" . _CLONE . "' align='middle'>",
18
-    'preview' => "<img src='" . $pathIcon16 . "/view.png' alt='" . _PREVIEW . "' align='middle'>",
19
-    'print'   => "<img src='" . $pathIcon16 . "/printer.png' alt='" . _CLONE . "' align='middle'>",
20
-    'pdf'     => "<img src='" . $pathIcon16 . "/pdf.png' alt='" . _CLONE . "' align='middle'>",
21
-    'add'     => "<img src='" . $pathIcon16 . "/add.png' alt='" . _ADD . "' align='middle'>",
22
-    '0'       => "<img src='" . $pathIcon16 . "/0.png' alt='" . 0 . "' align='middle'>",
23
-    '1'       => "<img src='" . $pathIcon16 . "/1.png' alt='" . 1 . "' align='middle'>",
15
+    'edit'    => "<img src='".$pathIcon16."/edit.png'  alt="._EDIT."' align='middle'>",
16
+    'delete'  => "<img src='".$pathIcon16."/delete.png' alt='"._DELETE."' align='middle'>",
17
+    'clone'   => "<img src='".$pathIcon16."/editcopy.png' alt='"._CLONE."' align='middle'>",
18
+    'preview' => "<img src='".$pathIcon16."/view.png' alt='"._PREVIEW."' align='middle'>",
19
+    'print'   => "<img src='".$pathIcon16."/printer.png' alt='"._CLONE."' align='middle'>",
20
+    'pdf'     => "<img src='".$pathIcon16."/pdf.png' alt='"._CLONE."' align='middle'>",
21
+    'add'     => "<img src='".$pathIcon16."/add.png' alt='"._ADD."' align='middle'>",
22
+    '0'       => "<img src='".$pathIcon16."/0.png' alt='".0."' align='middle'>",
23
+    '1'       => "<img src='".$pathIcon16."/1.png' alt='".1."' align='middle'>",
24 24
     //    ],
25 25
 ];
26 26
 
Please login to merge, or discard this patch.
config/config.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -21,35 +21,35 @@  discard block
 block discarded – undo
21 21
 $moduleDirNameUpper = mb_strtoupper($moduleDirName);
22 22
 xoops_loadLanguage('common', $moduleDirName);
23 23
 
24
-return (object)[
25
-    'name'           => $moduleDirNameUpper . ' ModuleConfigurator',
24
+return (object) [
25
+    'name'           => $moduleDirNameUpper.' ModuleConfigurator',
26 26
     'paths'          => [
27 27
         'dirname'    => $moduleDirName,
28
-        'admin'      => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin',
29
-        'modPath'    => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName,
30
-        'modUrl'     => XOOPS_URL . '/modules/' . $moduleDirName,
31
-        'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
32
-        'uploadUrl'  => XOOPS_UPLOAD_URL . '/' . $moduleDirName,
28
+        'admin'      => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/admin',
29
+        'modPath'    => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName,
30
+        'modUrl'     => XOOPS_URL.'/modules/'.$moduleDirName,
31
+        'uploadPath' => XOOPS_UPLOAD_PATH.'/'.$moduleDirName,
32
+        'uploadUrl'  => XOOPS_UPLOAD_URL.'/'.$moduleDirName,
33 33
     ],
34 34
     'uploadFolders'  => [
35
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
36
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/attachments',
37
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category',
38
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots',
35
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName,
36
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/attachments',
37
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/category',
38
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/screenshots',
39 39
         //XOOPS_UPLOAD_PATH . '/flags'
40 40
     ],
41 41
     'copyBlankFiles' => [
42
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
43
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/attachments',
44
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category',
45
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots',
42
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName,
43
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/attachments',
44
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/category',
45
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/screenshots',
46 46
         //XOOPS_UPLOAD_PATH . '/flags'
47 47
     ],
48 48
 
49 49
     'copyTestFolders' => [
50 50
         [
51
-            XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/uploads',
52
-            XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
51
+            XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/testdata/uploads',
52
+            XOOPS_UPLOAD_PATH.'/'.$moduleDirName,
53 53
         ],
54 54
         //            [
55 55
         //                XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/thumbs',
@@ -86,6 +86,6 @@  discard block
 block discarded – undo
86 86
         //            'totalsubmitted'  => $helper->getHandler('Item')->getItemsCount(-1, [Constants::PUBLISHER_STATUS_SUBMITTED]),
87 87
     ],
88 88
     'modCopyright' => "<a href='https://xoops.org' title='XOOPS Project' target='_blank'>
89
-                     <img src='" . Admin::iconUrl('xoopsmicrobutton.gif') . "' alt='XOOPS Project'></a>",
89
+                     <img src='" . Admin::iconUrl('xoopsmicrobutton.gif')."' alt='XOOPS Project'></a>",
90 90
 ];
91 91
 
Please login to merge, or discard this patch.
config/paths.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -9,18 +9,18 @@
 block discarded – undo
9 9
 $moduleDirName = \basename(\dirname(__DIR__));
10 10
 //    $moduleDirNameUpper = mb_strtoupper($moduleDirName);
11 11
 
12
-return (object)[
12
+return (object) [
13 13
     //        'name'          => mb_strtoupper($moduleDirName) . ' PathConfigurator',
14 14
     //        'paths'         => [
15 15
     'dirname'    => $moduleDirName,
16
-    'admin'      => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin',
17
-    'modPath'    => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName,
18
-    'modUrl'     => XOOPS_URL . '/modules/' . $moduleDirName,
19
-    'uploadUrl'  => XOOPS_UPLOAD_URL . '/' . $moduleDirName,
20
-    'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
16
+    'admin'      => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/admin',
17
+    'modPath'    => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName,
18
+    'modUrl'     => XOOPS_URL.'/modules/'.$moduleDirName,
19
+    'uploadUrl'  => XOOPS_UPLOAD_URL.'/'.$moduleDirName,
20
+    'uploadPath' => XOOPS_UPLOAD_PATH.'/'.$moduleDirName,
21 21
 
22
-    'uploadPathCategory'    => XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category',
23
-    'uploadPathScreenshots' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots',
22
+    'uploadPathCategory'    => XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/category',
23
+    'uploadPathScreenshots' => XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/screenshots',
24 24
     //        ],
25 25
     //        'uploadFolders' => [
26 26
     //            XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
Please login to merge, or discard this patch.
language/english/common.php 1 patch
Spacing   +129 added lines, -129 removed lines patch added patch discarded remove patch
@@ -17,138 +17,138 @@  discard block
 block discarded – undo
17 17
 $moduleDirName = \basename(\dirname(__DIR__, 2));
18 18
 $moduleDirNameUpper = mb_strtoupper($moduleDirName);
19 19
 
20
-\define('CO_' . $moduleDirNameUpper . '_GDLIBSTATUS', 'GD library support: ');
21
-\define('CO_' . $moduleDirNameUpper . '_GDLIBVERSION', 'GD Library version: ');
22
-\define('CO_' . $moduleDirNameUpper . '_GDOFF', "<span style='font-weight: bold;'>Disabled</span> (No thumbnails available)");
23
-\define('CO_' . $moduleDirNameUpper . '_GDON', "<span style='font-weight: bold;'>Enabled</span> (Thumbsnails available)");
24
-\define('CO_' . $moduleDirNameUpper . '_IMAGEINFO', 'Server status');
25
-\define('CO_' . $moduleDirNameUpper . '_MAXPOSTSIZE', 'Max post size permitted (post_max_size directive in php.ini): ');
26
-\define('CO_' . $moduleDirNameUpper . '_MAXUPLOADSIZE', 'Max upload size permitted (upload_max_filesize directive in php.ini): ');
27
-\define('CO_' . $moduleDirNameUpper . '_MEMORYLIMIT', 'Memory limit (memory_limit directive in php.ini): ');
28
-\define('CO_' . $moduleDirNameUpper . '_METAVERSION', "<span style='font-weight: bold;'>Downloads meta version:</span> ");
29
-\define('CO_' . $moduleDirNameUpper . '_OFF', "<span style='font-weight: bold;'>OFF</span>");
30
-\define('CO_' . $moduleDirNameUpper . '_ON', "<span style='font-weight: bold;'>ON</span>");
31
-\define('CO_' . $moduleDirNameUpper . '_SERVERPATH', 'Server path to XOOPS root: ');
32
-\define('CO_' . $moduleDirNameUpper . '_SERVERUPLOADSTATUS', 'Server uploads status: ');
33
-\define('CO_' . $moduleDirNameUpper . '_SPHPINI', "<span style='font-weight: bold;'>Information taken from PHP ini file:</span>");
34
-\define('CO_' . $moduleDirNameUpper . '_UPLOADPATHDSC', 'Note. Upload path *MUST* contain the full server path of your upload folder.');
35
-
36
-\define('CO_' . $moduleDirNameUpper . '_PRINT', "<span style='font-weight: bold;'>Print</span>");
37
-\define('CO_' . $moduleDirNameUpper . '_PDF', "<span style='font-weight: bold;'>Create PDF</span>");
38
-
39
-\define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED0', "Update failed - couldn't rename field '%s'");
40
-\define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED1', "Update failed - couldn't add new fields");
41
-\define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED2', "Update failed - couldn't rename table '%s'");
42
-\define('CO_' . $moduleDirNameUpper . '_ERROR_COLUMN', 'Could not create column in database : %s');
43
-\define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_XOOPS', 'This module requires XOOPS %s+ (%s installed)');
44
-\define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_PHP', 'This module requires PHP version %s+ (%s installed)');
45
-\define('CO_' . $moduleDirNameUpper . '_ERROR_TAG_REMOVAL', 'Could not remove tags from Tag Module');
46
-
47
-\define('CO_' . $moduleDirNameUpper . '_FOLDERS_DELETED_OK', 'Upload Folders have been deleted');
20
+\define('CO_'.$moduleDirNameUpper.'_GDLIBSTATUS', 'GD library support: ');
21
+\define('CO_'.$moduleDirNameUpper.'_GDLIBVERSION', 'GD Library version: ');
22
+\define('CO_'.$moduleDirNameUpper.'_GDOFF', "<span style='font-weight: bold;'>Disabled</span> (No thumbnails available)");
23
+\define('CO_'.$moduleDirNameUpper.'_GDON', "<span style='font-weight: bold;'>Enabled</span> (Thumbsnails available)");
24
+\define('CO_'.$moduleDirNameUpper.'_IMAGEINFO', 'Server status');
25
+\define('CO_'.$moduleDirNameUpper.'_MAXPOSTSIZE', 'Max post size permitted (post_max_size directive in php.ini): ');
26
+\define('CO_'.$moduleDirNameUpper.'_MAXUPLOADSIZE', 'Max upload size permitted (upload_max_filesize directive in php.ini): ');
27
+\define('CO_'.$moduleDirNameUpper.'_MEMORYLIMIT', 'Memory limit (memory_limit directive in php.ini): ');
28
+\define('CO_'.$moduleDirNameUpper.'_METAVERSION', "<span style='font-weight: bold;'>Downloads meta version:</span> ");
29
+\define('CO_'.$moduleDirNameUpper.'_OFF', "<span style='font-weight: bold;'>OFF</span>");
30
+\define('CO_'.$moduleDirNameUpper.'_ON', "<span style='font-weight: bold;'>ON</span>");
31
+\define('CO_'.$moduleDirNameUpper.'_SERVERPATH', 'Server path to XOOPS root: ');
32
+\define('CO_'.$moduleDirNameUpper.'_SERVERUPLOADSTATUS', 'Server uploads status: ');
33
+\define('CO_'.$moduleDirNameUpper.'_SPHPINI', "<span style='font-weight: bold;'>Information taken from PHP ini file:</span>");
34
+\define('CO_'.$moduleDirNameUpper.'_UPLOADPATHDSC', 'Note. Upload path *MUST* contain the full server path of your upload folder.');
35
+
36
+\define('CO_'.$moduleDirNameUpper.'_PRINT', "<span style='font-weight: bold;'>Print</span>");
37
+\define('CO_'.$moduleDirNameUpper.'_PDF', "<span style='font-weight: bold;'>Create PDF</span>");
38
+
39
+\define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED0', "Update failed - couldn't rename field '%s'");
40
+\define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED1', "Update failed - couldn't add new fields");
41
+\define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED2', "Update failed - couldn't rename table '%s'");
42
+\define('CO_'.$moduleDirNameUpper.'_ERROR_COLUMN', 'Could not create column in database : %s');
43
+\define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_XOOPS', 'This module requires XOOPS %s+ (%s installed)');
44
+\define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_PHP', 'This module requires PHP version %s+ (%s installed)');
45
+\define('CO_'.$moduleDirNameUpper.'_ERROR_TAG_REMOVAL', 'Could not remove tags from Tag Module');
46
+
47
+\define('CO_'.$moduleDirNameUpper.'_FOLDERS_DELETED_OK', 'Upload Folders have been deleted');
48 48
 
49 49
 // Error Msgs
50
-\define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_DEL_PATH', 'Could not delete %s directory');
51
-\define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_REMOVE', 'Could not delete %s');
52
-\define('CO_' . $moduleDirNameUpper . '_ERROR_NO_PLUGIN', 'Could not load plugin');
50
+\define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_DEL_PATH', 'Could not delete %s directory');
51
+\define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_REMOVE', 'Could not delete %s');
52
+\define('CO_'.$moduleDirNameUpper.'_ERROR_NO_PLUGIN', 'Could not load plugin');
53 53
 
54 54
 //Help
55
-\define('CO_' . $moduleDirNameUpper . '_DIRNAME', basename(dirname(__DIR__, 2)));
56
-\define('CO_' . $moduleDirNameUpper . '_HELP_HEADER', __DIR__ . '/help/helpheader.tpl');
57
-\define('CO_' . $moduleDirNameUpper . '_BACK_2_ADMIN', 'Back to Administration of ');
58
-\define('CO_' . $moduleDirNameUpper . '_OVERVIEW', 'Overview');
55
+\define('CO_'.$moduleDirNameUpper.'_DIRNAME', basename(dirname(__DIR__, 2)));
56
+\define('CO_'.$moduleDirNameUpper.'_HELP_HEADER', __DIR__.'/help/helpheader.tpl');
57
+\define('CO_'.$moduleDirNameUpper.'_BACK_2_ADMIN', 'Back to Administration of ');
58
+\define('CO_'.$moduleDirNameUpper.'_OVERVIEW', 'Overview');
59 59
 
60 60
 //\define('CO_' . $moduleDirNameUpper . '_HELP_DIR', __DIR__);
61 61
 
62 62
 //help multi-page
63
-\define('CO_' . $moduleDirNameUpper . '_DISCLAIMER', 'Disclaimer');
64
-\define('CO_' . $moduleDirNameUpper . '_LICENSE', 'License');
65
-\define('CO_' . $moduleDirNameUpper . '_SUPPORT', 'Support');
63
+\define('CO_'.$moduleDirNameUpper.'_DISCLAIMER', 'Disclaimer');
64
+\define('CO_'.$moduleDirNameUpper.'_LICENSE', 'License');
65
+\define('CO_'.$moduleDirNameUpper.'_SUPPORT', 'Support');
66 66
 
67 67
 //Sample Data
68
-\define('CO_' . $moduleDirNameUpper . '_' . 'LOAD_SAMPLEDATA', 'Import Sample Data (will delete ALL current data)');
69
-\define('CO_' . $moduleDirNameUpper . '_' . 'LOAD_SAMPLEDATA_CONFIRM', 'Are you sure to Import Sample Data? (It will delete ALL current data)');
70
-\define('CO_' . $moduleDirNameUpper . '_' . 'LOAD_SAMPLEDATA_SUCCESS', 'Sample Date imported  successfully');
71
-\define('CO_' . $moduleDirNameUpper . '_' . 'SAVE_SAMPLEDATA', 'Export Tables to YAML');
72
-\define('CO_' . $moduleDirNameUpper . '_' . 'SAVE_SAMPLEDATA_SUCCESS', 'Export Tables to YAML successfully');
73
-\define('CO_' . $moduleDirNameUpper . '_' . 'CLEAR_SAMPLEDATA', 'Clear Sample Data');
74
-\define('CO_' . $moduleDirNameUpper . '_' . 'CLEAR_SAMPLEDATA_OK', 'The Sample Data has been cleared');
75
-\define('CO_' . $moduleDirNameUpper . '_' . 'CLEAR_SAMPLEDATA_CONFIRM', 'Are you sure to Clear Sample Data? (It will delete ALL current data)');
76
-\define('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA', 'Export DB Schema to YAML');
77
-\define('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_SUCCESS', 'Export DB Schema to YAML was a success');
78
-\define('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_ERROR', 'ERROR: Export of DB Schema to YAML failed');
79
-\define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON', 'Show Sample Button?');
80
-\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.');
81
-\define('CO_' . $moduleDirNameUpper . '_' . 'HIDE_SAMPLEDATA_BUTTONS', 'Hide the Import buttons)');
82
-\define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLEDATA_BUTTONS', 'Show the Import buttons)');
83
-
84
-\define('CO_' . $moduleDirNameUpper . '_' . 'CONFIRM', 'Confirm');
68
+\define('CO_'.$moduleDirNameUpper.'_'.'LOAD_SAMPLEDATA', 'Import Sample Data (will delete ALL current data)');
69
+\define('CO_'.$moduleDirNameUpper.'_'.'LOAD_SAMPLEDATA_CONFIRM', 'Are you sure to Import Sample Data? (It will delete ALL current data)');
70
+\define('CO_'.$moduleDirNameUpper.'_'.'LOAD_SAMPLEDATA_SUCCESS', 'Sample Date imported  successfully');
71
+\define('CO_'.$moduleDirNameUpper.'_'.'SAVE_SAMPLEDATA', 'Export Tables to YAML');
72
+\define('CO_'.$moduleDirNameUpper.'_'.'SAVE_SAMPLEDATA_SUCCESS', 'Export Tables to YAML successfully');
73
+\define('CO_'.$moduleDirNameUpper.'_'.'CLEAR_SAMPLEDATA', 'Clear Sample Data');
74
+\define('CO_'.$moduleDirNameUpper.'_'.'CLEAR_SAMPLEDATA_OK', 'The Sample Data has been cleared');
75
+\define('CO_'.$moduleDirNameUpper.'_'.'CLEAR_SAMPLEDATA_CONFIRM', 'Are you sure to Clear Sample Data? (It will delete ALL current data)');
76
+\define('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA', 'Export DB Schema to YAML');
77
+\define('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA_SUCCESS', 'Export DB Schema to YAML was a success');
78
+\define('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA_ERROR', 'ERROR: Export of DB Schema to YAML failed');
79
+\define('CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLE_BUTTON', 'Show Sample Button?');
80
+\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.');
81
+\define('CO_'.$moduleDirNameUpper.'_'.'HIDE_SAMPLEDATA_BUTTONS', 'Hide the Import buttons)');
82
+\define('CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLEDATA_BUTTONS', 'Show the Import buttons)');
83
+
84
+\define('CO_'.$moduleDirNameUpper.'_'.'CONFIRM', 'Confirm');
85 85
 
86 86
 //letter choice
87
-\define('CO_' . $moduleDirNameUpper . '_' . 'BROWSETOTOPIC', "<span style='font-weight: bold;'>Browse items alphabetically</span>");
88
-\define('CO_' . $moduleDirNameUpper . '_' . 'OTHER', 'Other');
89
-\define('CO_' . $moduleDirNameUpper . '_' . 'ALL', 'All');
87
+\define('CO_'.$moduleDirNameUpper.'_'.'BROWSETOTOPIC', "<span style='font-weight: bold;'>Browse items alphabetically</span>");
88
+\define('CO_'.$moduleDirNameUpper.'_'.'OTHER', 'Other');
89
+\define('CO_'.$moduleDirNameUpper.'_'.'ALL', 'All');
90 90
 
91 91
 // block defines
92
-\define('CO_' . $moduleDirNameUpper . '_' . 'ACCESSRIGHTS', 'Access Rights');
93
-\define('CO_' . $moduleDirNameUpper . '_' . 'ACTION', 'Action');
94
-\define('CO_' . $moduleDirNameUpper . '_' . 'ACTIVERIGHTS', 'Active Rights');
95
-\define('CO_' . $moduleDirNameUpper . '_' . 'BADMIN', 'Block Administration');
96
-\define('CO_' . $moduleDirNameUpper . '_' . 'BLKDESC', 'Description');
97
-\define('CO_' . $moduleDirNameUpper . '_' . 'CBCENTER', 'Center Middle');
98
-\define('CO_' . $moduleDirNameUpper . '_' . 'CBLEFT', 'Center Left');
99
-\define('CO_' . $moduleDirNameUpper . '_' . 'CBRIGHT', 'Center Right');
100
-\define('CO_' . $moduleDirNameUpper . '_' . 'SBLEFT', 'Left');
101
-\define('CO_' . $moduleDirNameUpper . '_' . 'SBRIGHT', 'Right');
102
-\define('CO_' . $moduleDirNameUpper . '_' . 'SIDE', 'Alignment');
103
-\define('CO_' . $moduleDirNameUpper . '_' . 'TITLE', 'Title');
104
-\define('CO_' . $moduleDirNameUpper . '_' . 'VISIBLE', 'Visible');
105
-\define('CO_' . $moduleDirNameUpper . '_' . 'VISIBLEIN', 'Visible In');
106
-\define('CO_' . $moduleDirNameUpper . '_' . 'WEIGHT', 'Weight');
107
-
108
-\define('CO_' . $moduleDirNameUpper . '_' . 'PERMISSIONS', 'Permissions');
109
-\define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS', 'Blocks Admin');
110
-\define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_DESC', 'Blocks/Group Admin');
111
-
112
-\define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_MANAGMENT', 'Manage');
113
-\define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_ADDBLOCK', 'Add a new block');
114
-\define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_EDITBLOCK', 'Edit a block');
115
-\define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_CLONEBLOCK', 'Clone a block');
92
+\define('CO_'.$moduleDirNameUpper.'_'.'ACCESSRIGHTS', 'Access Rights');
93
+\define('CO_'.$moduleDirNameUpper.'_'.'ACTION', 'Action');
94
+\define('CO_'.$moduleDirNameUpper.'_'.'ACTIVERIGHTS', 'Active Rights');
95
+\define('CO_'.$moduleDirNameUpper.'_'.'BADMIN', 'Block Administration');
96
+\define('CO_'.$moduleDirNameUpper.'_'.'BLKDESC', 'Description');
97
+\define('CO_'.$moduleDirNameUpper.'_'.'CBCENTER', 'Center Middle');
98
+\define('CO_'.$moduleDirNameUpper.'_'.'CBLEFT', 'Center Left');
99
+\define('CO_'.$moduleDirNameUpper.'_'.'CBRIGHT', 'Center Right');
100
+\define('CO_'.$moduleDirNameUpper.'_'.'SBLEFT', 'Left');
101
+\define('CO_'.$moduleDirNameUpper.'_'.'SBRIGHT', 'Right');
102
+\define('CO_'.$moduleDirNameUpper.'_'.'SIDE', 'Alignment');
103
+\define('CO_'.$moduleDirNameUpper.'_'.'TITLE', 'Title');
104
+\define('CO_'.$moduleDirNameUpper.'_'.'VISIBLE', 'Visible');
105
+\define('CO_'.$moduleDirNameUpper.'_'.'VISIBLEIN', 'Visible In');
106
+\define('CO_'.$moduleDirNameUpper.'_'.'WEIGHT', 'Weight');
107
+
108
+\define('CO_'.$moduleDirNameUpper.'_'.'PERMISSIONS', 'Permissions');
109
+\define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS', 'Blocks Admin');
110
+\define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_DESC', 'Blocks/Group Admin');
111
+
112
+\define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_MANAGMENT', 'Manage');
113
+\define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_ADDBLOCK', 'Add a new block');
114
+\define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_EDITBLOCK', 'Edit a block');
115
+\define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_CLONEBLOCK', 'Clone a block');
116 116
 
117 117
 //myblocksadmin
118
-\define('CO_' . $moduleDirNameUpper . '_' . 'AGDS', 'Admin Groups');
119
-\define('CO_' . $moduleDirNameUpper . '_' . 'BCACHETIME', 'Cache Time');
120
-\define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_ADMIN', 'Blocks Admin');
121
-\define('CO_' . $moduleDirNameUpper . '_' . 'UPDATE_SUCCESS', 'Update successful');
118
+\define('CO_'.$moduleDirNameUpper.'_'.'AGDS', 'Admin Groups');
119
+\define('CO_'.$moduleDirNameUpper.'_'.'BCACHETIME', 'Cache Time');
120
+\define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_ADMIN', 'Blocks Admin');
121
+\define('CO_'.$moduleDirNameUpper.'_'.'UPDATE_SUCCESS', 'Update successful');
122 122
 
123 123
 //Template Admin
124
-\define('CO_' . $moduleDirNameUpper . '_' . 'TPLSETS', 'Template Management');
125
-\define('CO_' . $moduleDirNameUpper . '_' . 'GENERATE', 'Generate');
126
-\define('CO_' . $moduleDirNameUpper . '_' . 'FILENAME', 'File Name');
124
+\define('CO_'.$moduleDirNameUpper.'_'.'TPLSETS', 'Template Management');
125
+\define('CO_'.$moduleDirNameUpper.'_'.'GENERATE', 'Generate');
126
+\define('CO_'.$moduleDirNameUpper.'_'.'FILENAME', 'File Name');
127 127
 
128 128
 //Menu
129
-\define('CO_' . $moduleDirNameUpper . '_' . 'ADMENU_MIGRATE', 'Migrate');
130
-\define('CO_' . $moduleDirNameUpper . '_' . 'FOLDER_YES', 'Folder "%s" exist');
131
-\define('CO_' . $moduleDirNameUpper . '_' . 'FOLDER_NO', 'Folder "%s" does not exist. Create the specified folder with CHMOD 777.');
132
-\define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS', 'Show Development Tools Button?');
133
-\define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS_DESC', 'If yes, the "Migrate" Tab and other Development tools will be visible to the Admin.');
134
-\define('CO_' . $moduleDirNameUpper . '_' . 'ADMENU_FEEDBACK', 'Feedback');
135
-\define('CO_' . $moduleDirNameUpper . '_' . 'MIGRATE_OK', 'Database migrated to current schema.');
136
-\define('CO_' . $moduleDirNameUpper . '_' . 'MIGRATE_WARNING', 'Warning! This is intended for developers only. Confirm write schema file from current database.');
137
-\define('CO_' . $moduleDirNameUpper . '_' . 'MIGRATE_SCHEMA_OK', 'Current schema file written');
129
+\define('CO_'.$moduleDirNameUpper.'_'.'ADMENU_MIGRATE', 'Migrate');
130
+\define('CO_'.$moduleDirNameUpper.'_'.'FOLDER_YES', 'Folder "%s" exist');
131
+\define('CO_'.$moduleDirNameUpper.'_'.'FOLDER_NO', 'Folder "%s" does not exist. Create the specified folder with CHMOD 777.');
132
+\define('CO_'.$moduleDirNameUpper.'_'.'SHOW_DEV_TOOLS', 'Show Development Tools Button?');
133
+\define('CO_'.$moduleDirNameUpper.'_'.'SHOW_DEV_TOOLS_DESC', 'If yes, the "Migrate" Tab and other Development tools will be visible to the Admin.');
134
+\define('CO_'.$moduleDirNameUpper.'_'.'ADMENU_FEEDBACK', 'Feedback');
135
+\define('CO_'.$moduleDirNameUpper.'_'.'MIGRATE_OK', 'Database migrated to current schema.');
136
+\define('CO_'.$moduleDirNameUpper.'_'.'MIGRATE_WARNING', 'Warning! This is intended for developers only. Confirm write schema file from current database.');
137
+\define('CO_'.$moduleDirNameUpper.'_'.'MIGRATE_SCHEMA_OK', 'Current schema file written');
138 138
 
139 139
 //Latest Version Check
140
-\define('CO_' . $moduleDirNameUpper . '_' . 'NEW_VERSION', 'New Version: ');
140
+\define('CO_'.$moduleDirNameUpper.'_'.'NEW_VERSION', 'New Version: ');
141 141
 
142 142
 //DirectoryChecker
143
-\define('CO_' . $moduleDirNameUpper . '_' . 'AVAILABLE', "<span style='color: green;'>Available</span>");
144
-\define('CO_' . $moduleDirNameUpper . '_' . 'NOTAVAILABLE', "<span style='color: red;'>Not available</span>");
145
-\define('CO_' . $moduleDirNameUpper . '_' . 'NOTWRITABLE', "<span style='color: red;'>Should have permission ( %d ), but it has ( %d )</span>");
146
-\define('CO_' . $moduleDirNameUpper . '_' . 'CREATETHEDIR', 'Create it');
147
-\define('CO_' . $moduleDirNameUpper . '_' . 'SETMPERM', 'Set the permission');
148
-\define('CO_' . $moduleDirNameUpper . '_' . 'DIRCREATED', 'The directory has been created');
149
-\define('CO_' . $moduleDirNameUpper . '_' . 'DIRNOTCREATED', 'The directory cannot be created');
150
-\define('CO_' . $moduleDirNameUpper . '_' . 'PERMSET', 'The permission has been set');
151
-\define('CO_' . $moduleDirNameUpper . '_' . 'PERMNOTSET', 'The permission cannot be set');
143
+\define('CO_'.$moduleDirNameUpper.'_'.'AVAILABLE', "<span style='color: green;'>Available</span>");
144
+\define('CO_'.$moduleDirNameUpper.'_'.'NOTAVAILABLE', "<span style='color: red;'>Not available</span>");
145
+\define('CO_'.$moduleDirNameUpper.'_'.'NOTWRITABLE', "<span style='color: red;'>Should have permission ( %d ), but it has ( %d )</span>");
146
+\define('CO_'.$moduleDirNameUpper.'_'.'CREATETHEDIR', 'Create it');
147
+\define('CO_'.$moduleDirNameUpper.'_'.'SETMPERM', 'Set the permission');
148
+\define('CO_'.$moduleDirNameUpper.'_'.'DIRCREATED', 'The directory has been created');
149
+\define('CO_'.$moduleDirNameUpper.'_'.'DIRNOTCREATED', 'The directory cannot be created');
150
+\define('CO_'.$moduleDirNameUpper.'_'.'PERMSET', 'The permission has been set');
151
+\define('CO_'.$moduleDirNameUpper.'_'.'PERMNOTSET', 'The permission cannot be set');
152 152
 
153 153
 //FileChecker
154 154
 //\define('CO_' . $moduleDirNameUpper . '_' . 'AVAILABLE', "<span style='color: green;'>Available</span>");
@@ -158,31 +158,31 @@  discard block
 block discarded – undo
158 158
 //\define('CO_' . $moduleDirNameUpper . '_' . 'CREATETHEFILE', 'Create it');
159 159
 //\define('CO_' . $moduleDirNameUpper . '_' . 'SETMPERM', 'Set the permission');
160 160
 
161
-\define('CO_' . $moduleDirNameUpper . '_' . 'FILECOPIED', 'The file has been copied');
162
-\define('CO_' . $moduleDirNameUpper . '_' . 'FILENOTCOPIED', 'The file cannot be copied');
161
+\define('CO_'.$moduleDirNameUpper.'_'.'FILECOPIED', 'The file has been copied');
162
+\define('CO_'.$moduleDirNameUpper.'_'.'FILENOTCOPIED', 'The file cannot be copied');
163 163
 
164
-\define('CO_' . $moduleDirNameUpper . '_' . 'TRUNCATE_LENGTH', 'Number of Characters to truncate to the long text field');
165
-\define('CO_' . $moduleDirNameUpper . '_' . 'TRUNCATE_LENGTH_DESC', 'Set the maximum number of characters to truncate the long text fields');
164
+\define('CO_'.$moduleDirNameUpper.'_'.'TRUNCATE_LENGTH', 'Number of Characters to truncate to the long text field');
165
+\define('CO_'.$moduleDirNameUpper.'_'.'TRUNCATE_LENGTH_DESC', 'Set the maximum number of characters to truncate the long text fields');
166 166
 
167 167
 //image config
168
-\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_WIDTH', 'Image Display Width');
169
-\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_WIDTH_DSC', 'Display width for image');
170
-\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_HEIGHT', 'Image Display Height');
171
-\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_HEIGHT_DSC', 'Display height for image');
172
-\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_CONFIG', '<span style="color: #FF0000; font-size: Small;  font-weight: bold;">--- EXTERNAL Image configuration ---</span> ');
173
-\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_CONFIG_DSC', '');
174
-\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_UPLOAD_PATH', 'Image Upload path');
175
-\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_UPLOAD_PATH_DSC', 'Path for uploading images');
168
+\define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_WIDTH', 'Image Display Width');
169
+\define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_WIDTH_DSC', 'Display width for image');
170
+\define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_HEIGHT', 'Image Display Height');
171
+\define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_HEIGHT_DSC', 'Display height for image');
172
+\define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_CONFIG', '<span style="color: #FF0000; font-size: Small;  font-weight: bold;">--- EXTERNAL Image configuration ---</span> ');
173
+\define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_CONFIG_DSC', '');
174
+\define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_UPLOAD_PATH', 'Image Upload path');
175
+\define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_UPLOAD_PATH_DSC', 'Path for uploading images');
176 176
 
177
-\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_FILE_SIZE', 'Image File Size (in Bytes)');
178
-\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_FILE_SIZE_DSC','The maximum file size of the image file (in Bytes)');
177
+\define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_FILE_SIZE', 'Image File Size (in Bytes)');
178
+\define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_FILE_SIZE_DSC', 'The maximum file size of the image file (in Bytes)');
179 179
 
180 180
 
181 181
 //Module Stats
182
-\define('CO_' . $moduleDirNameUpper . '_' . 'STATS_SUMMARY', 'Module Statistics');
183
-\define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_CATEGORIES', 'Categories:');
184
-\define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_ITEMS', 'Items');
185
-\define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_OFFLINE', 'Offline');
186
-\define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_PUBLISHED', 'Published');
187
-\define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_REJECTED', 'Rejected');
188
-\define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_SUBMITTED', 'Submitted');
182
+\define('CO_'.$moduleDirNameUpper.'_'.'STATS_SUMMARY', 'Module Statistics');
183
+\define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_CATEGORIES', 'Categories:');
184
+\define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_ITEMS', 'Items');
185
+\define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_OFFLINE', 'Offline');
186
+\define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_PUBLISHED', 'Published');
187
+\define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_REJECTED', 'Rejected');
188
+\define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_SUBMITTED', 'Submitted');
Please login to merge, or discard this patch.
xoops_version.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
  */
22 22
 defined('XOOPS_ROOT_PATH') || exit('Restricted access');
23 23
 
24
-require_once __DIR__ . '/preloads/autoloader.php';
24
+require_once __DIR__.'/preloads/autoloader.php';
25 25
 
26 26
 $moduleDirName = basename(__DIR__);
27 27
 
@@ -44,10 +44,10 @@  discard block
 block discarded – undo
44 44
     'help'                => 'page=help',
45 45
     // ------------------- Folders & Files -------------------
46 46
     'release_info'        => 'Changelog',
47
-    'release_file'        => XOOPS_URL . "/modules/$moduleDirName/docs/changelog.txt",
47
+    'release_file'        => XOOPS_URL."/modules/$moduleDirName/docs/changelog.txt",
48 48
 
49 49
     'manual'              => 'link to manual file',
50
-    'manual_file'         => XOOPS_URL . "/modules/$moduleDirName/docs/install.txt",
50
+    'manual_file'         => XOOPS_URL."/modules/$moduleDirName/docs/install.txt",
51 51
     // images
52 52
     'image'               => 'assets/images/logoModule.png',
53 53
     'dirname'             => $moduleDirName,
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     // -------------------  PayPal ---------------------------
81 81
     'paypal'              => [
82 82
         'business'      => '[email protected]',
83
-        'item_name'     => 'Donation : ' . _MI_CONTACT_NAME,
83
+        'item_name'     => 'Donation : '._MI_CONTACT_NAME,
84 84
         'amount'        => 0,
85 85
         'currency_code' => 'USD',
86 86
     ],
@@ -100,41 +100,41 @@  discard block
 block discarded – undo
100 100
 
101 101
 // ------------------- Templates ------------------- //
102 102
 $modversion['templates'] = [
103
-    ['file' => $moduleDirName . '_index.tpl', 'description' => '_MI_CONTACT_TEMPLATES',],
103
+    ['file' => $moduleDirName.'_index.tpl', 'description' => '_MI_CONTACT_TEMPLATES', ],
104 104
 ];
105 105
 
106 106
 // ------------------- Blocks ------------------- //
107 107
 $modversion['blocks'][] = [
108
-    'file'        => 'block_' . $moduleDirName . '_form_map.php',
108
+    'file'        => 'block_'.$moduleDirName.'_form_map.php',
109 109
     'name'        => _MI_B_CONTACT_FORM,
110 110
     'description' => _MI_B_CONTACT_FORM_DESC,
111
-    'show_func'   => 'block_' . $moduleDirName . '_form_show',
111
+    'show_func'   => 'block_'.$moduleDirName.'_form_show',
112 112
     'options'     => '',
113
-    'template'    => 'block_' . $moduleDirName . '_form.tpl',
113
+    'template'    => 'block_'.$moduleDirName.'_form.tpl',
114 114
 ];
115 115
 $modversion['blocks'][] = [
116
-    'file'        => 'block_' . $moduleDirName . '_form_map.php',
116
+    'file'        => 'block_'.$moduleDirName.'_form_map.php',
117 117
     'name'        => _MI_B_CONTACT_MAP,
118 118
     'description' => _MI_B_CONTACT_MAP_DESC,
119
-    'show_func'   => 'block_' . $moduleDirName . '_map_show',
119
+    'show_func'   => 'block_'.$moduleDirName.'_map_show',
120 120
     'options'     => '',
121
-    'template'    => 'block_' . $moduleDirName . '_map.tpl',
121
+    'template'    => 'block_'.$moduleDirName.'_map.tpl',
122 122
 ];
123 123
 $modversion['blocks'][] = [
124
-    'file'        => 'block_' . $moduleDirName . '_form_map.php',
124
+    'file'        => 'block_'.$moduleDirName.'_form_map.php',
125 125
     'name'        => _MI_B_CONTACT_FORM_MAP,
126 126
     'description' => _MI_B_CONTACT_FORM_MAP_DESC,
127
-    'show_func'   => 'block_' . $moduleDirName . '_form_map_show',
127
+    'show_func'   => 'block_'.$moduleDirName.'_form_map_show',
128 128
     'options'     => '',
129
-    'template'    => 'block_' . $moduleDirName . '_form_map.tpl',
129
+    'template'    => 'block_'.$moduleDirName.'_form_map.tpl',
130 130
 ];
131 131
 $modversion['blocks'][] = [
132
-    'file'        => 'block_' . $moduleDirName . '_form_map.php',
132
+    'file'        => 'block_'.$moduleDirName.'_form_map.php',
133 133
     'name'        => _MI_B_CONTACT_INFO_MAP,
134 134
     'description' => _MI_B_CONTACT_INFO_MAP_DESC,
135
-    'show_func'   => 'block_' . $moduleDirName . '_form_map_show',
135
+    'show_func'   => 'block_'.$moduleDirName.'_form_map_show',
136 136
     'options'     => '',
137
-    'template'    => 'block_' . $moduleDirName . '_info_map.tpl'
137
+    'template'    => 'block_'.$moduleDirName.'_info_map.tpl'
138 138
 ];
139 139
 
140 140
 // Settings
Please login to merge, or discard this patch.