Passed
Push — master ( b6c62e...3fdbae )
by Michael
07:59
created
header.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,4 +35,4 @@
 block discarded – undo
35 35
 /**#@+
36 36
  */
37 37
 
38
-require dirname(__DIR__, 2) . '/mainfile.php';
38
+require dirname(__DIR__, 2).'/mainfile.php';
Please login to merge, or discard this patch.
admin/main.php 1 patch
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -34,14 +34,14 @@  discard block
 block discarded – undo
34 34
 
35 35
 /**#@+
36 36
  */
37
-require_once __DIR__ . '/admin_header.php';
38
-require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
39
-require_once XOOPS_ROOT_PATH . '/class/pagenav.php';
40
-require_once XOOPS_ROOT_PATH . '/modules/chess/include/functions.php';
37
+require_once __DIR__.'/admin_header.php';
38
+require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
39
+require_once XOOPS_ROOT_PATH.'/class/pagenav.php';
40
+require_once XOOPS_ROOT_PATH.'/modules/chess/include/functions.php';
41 41
 
42 42
 // user input
43 43
 $op    = chess_sanitize(@$_GET['op']);
44
-$start = (int)@$_GET['start']; // offset of first row of table to display (default to 0)
44
+$start = (int) @$_GET['start']; // offset of first row of table to display (default to 0)
45 45
 
46 46
 // get maximum number of items to display on a page, and constrain it to a reasonable value
47 47
 $max_items_to_display = chess_moduleConfig('max_items');
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     global $xoopsModule;
76 76
 
77 77
     echo '
78
-    <h4> ' . _AM_CHESS_CONF . ' </h4>'
78
+    <h4> ' . _AM_CHESS_CONF.' </h4>'
79 79
         //    <table width='100%' border='0' cellspacing='1' class='outer'>
80 80
         //    <tr>
81 81
         //        <td><a href='" . XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . "/admin/index.php?op=suspended_games'>" . _AM_CHESS_SUSPENDED_GAMES . '</a>
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
     );
143 143
 
144 144
     if ($xoopsDB->getRowsNum($result) > 0) {
145
-        echo '<h3>' . _AM_CHESS_SUSPENDED_GAMES . "</h3>\n";
145
+        echo '<h3>'._AM_CHESS_SUSPENDED_GAMES."</h3>\n";
146 146
 
147 147
         while (false !== ($row = $xoopsDB->fetchArray($result))) {
148 148
             $user_white = $memberHandler->getUser($row['white_uid']);
@@ -155,9 +155,9 @@  discard block
 block discarded – undo
155 155
 
156 156
             $date = $row['start_date'] ? date('Y.m.d', $row['start_date']) : 'not yet started';
157 157
 
158
-            $title_text = _AM_CHESS_GAME . " #{$row['game_id']}&nbsp;&nbsp;&nbsp;$username_white " . _AM_CHESS_VS . " $username_black&nbsp;&nbsp;&nbsp;($date)";
158
+            $title_text = _AM_CHESS_GAME." #{$row['game_id']}&nbsp;&nbsp;&nbsp;$username_white "._AM_CHESS_VS." $username_black&nbsp;&nbsp;&nbsp;($date)";
159 159
 
160
-            $form = new XoopsThemeForm($title_text, "game_{$row['game_id']}", XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . "/game.php?game_id={$row['game_id']}", 'post', true);
160
+            $form = new XoopsThemeForm($title_text, "game_{$row['game_id']}", XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname')."/game.php?game_id={$row['game_id']}", 'post', true);
161 161
 
162 162
             [$date, $suspender_uid, $type, $explain] = explode('|', $row['suspended']);
163 163
 
@@ -177,13 +177,13 @@  discard block
 block discarded – undo
177 177
 
178 178
             $suspender_username = is_object($suspender_user) ? $suspender_user->getVar('uname') : _AM_CHESS_UNKNOWN_USER;
179 179
 
180
-            $form->addElement(new XoopsFormLabel(_AM_CHESS_WHEN_SUSPENDED . ':', formatTimestamp(strtotime($date))));
180
+            $form->addElement(new XoopsFormLabel(_AM_CHESS_WHEN_SUSPENDED.':', formatTimestamp(strtotime($date))));
181 181
 
182
-            $form->addElement(new XoopsFormLabel(_AM_CHESS_SUSPENDED_BY . ':', $suspender_username));
182
+            $form->addElement(new XoopsFormLabel(_AM_CHESS_SUSPENDED_BY.':', $suspender_username));
183 183
 
184
-            $form->addElement(new XoopsFormLabel(_AM_CHESS_SUSPENSION_TYPE . ':', $type_display));
184
+            $form->addElement(new XoopsFormLabel(_AM_CHESS_SUSPENSION_TYPE.':', $type_display));
185 185
 
186
-            $form->addElement(new XoopsFormLabel(_AM_CHESS_SUSPENSION_REASON . ':', $explain));
186
+            $form->addElement(new XoopsFormLabel(_AM_CHESS_SUSPENSION_REASON.':', $explain));
187 187
 
188 188
             $form->addElement(new XoopsFormButton('', 'submit', _AM_CHESS_ARBITRATE_SUBMIT, 'submit'));
189 189
 
@@ -194,9 +194,9 @@  discard block
 block discarded – undo
194 194
 
195 195
         $pagenav = new XoopsPageNav($num_rows, $max_items_to_display, $start, 'start', "op=$op");
196 196
 
197
-        echo '<div align="center">' . $pagenav->renderNav() . "&nbsp;</div>\n";
197
+        echo '<div align="center">'.$pagenav->renderNav()."&nbsp;</div>\n";
198 198
     } else {
199
-        echo '<h3>' . _AM_CHESS_NO_SUSPENDED_GAMES . "</h3>\n";
199
+        echo '<h3>'._AM_CHESS_NO_SUSPENDED_GAMES."</h3>\n";
200 200
     }
201 201
 
202 202
     $xoopsDB->freeRecordSet($result);
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
     );
239 239
 
240 240
     if ($xoopsDB->getRowsNum($result) > 0) {
241
-        echo '<h3>' . _AM_CHESS_ACTIVE_GAMES . "</h3>\n";
241
+        echo '<h3>'._AM_CHESS_ACTIVE_GAMES."</h3>\n";
242 242
 
243 243
         while (false !== ($row = $xoopsDB->fetchArray($result))) {
244 244
             $user_white = $memberHandler->getUser($row['white_uid']);
@@ -251,9 +251,9 @@  discard block
 block discarded – undo
251 251
 
252 252
             $date = $row['start_date'] ? date('Y.m.d', $row['start_date']) : 'not yet started';
253 253
 
254
-            $title_text = _AM_CHESS_GAME . " #{$row['game_id']}&nbsp;&nbsp;&nbsp;$username_white " . _AM_CHESS_VS . " $username_black&nbsp;&nbsp;&nbsp;($date)";
254
+            $title_text = _AM_CHESS_GAME." #{$row['game_id']}&nbsp;&nbsp;&nbsp;$username_white "._AM_CHESS_VS." $username_black&nbsp;&nbsp;&nbsp;($date)";
255 255
 
256
-            $form = new XoopsThemeForm($title_text, "game_{$row['game_id']}", XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . "/game.php?game_id={$row['game_id']}", 'post', true);
256
+            $form = new XoopsThemeForm($title_text, "game_{$row['game_id']}", XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname')."/game.php?game_id={$row['game_id']}", 'post', true);
257 257
 
258 258
             $form->addElement(new XoopsFormButton('', 'submit', _AM_CHESS_ARBITRATE_SUBMIT, 'submit'));
259 259
 
@@ -264,9 +264,9 @@  discard block
 block discarded – undo
264 264
 
265 265
         $pagenav = new XoopsPageNav($num_rows, $max_items_to_display, $start, 'start', "op=$op");
266 266
 
267
-        echo '<div align="center">' . $pagenav->renderNav() . "&nbsp;</div>\n";
267
+        echo '<div align="center">'.$pagenav->renderNav()."&nbsp;</div>\n";
268 268
     } else {
269
-        echo '<h3>' . _AM_CHESS_NO_ACTIVE_GAMES . "</h3>\n";
269
+        echo '<h3>'._AM_CHESS_NO_ACTIVE_GAMES."</h3>\n";
270 270
     }
271 271
 
272 272
     $xoopsDB->freeRecordSet($result);
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
     );
308 308
 
309 309
     if ($xoopsDB->getRowsNum($result) > 0) {
310
-        echo '<h3>' . _AM_CHESS_CHALLENGES . "</h3>\n";
310
+        echo '<h3>'._AM_CHESS_CHALLENGES."</h3>\n";
311 311
 
312 312
         while (false !== ($row = $xoopsDB->fetchArray($result))) {
313 313
             $user_player1 = $memberHandler->getUser($row['player1_uid']);
@@ -320,9 +320,9 @@  discard block
 block discarded – undo
320 320
 
321 321
             $date = date('Y.m.d', $row['create_date']);
322 322
 
323
-            $title_text = _AM_CHESS_CHALLENGE . " #{$row['challenge_id']}&nbsp;&nbsp;&nbsp;$username_player1 " . _AM_CHESS_CHALLENGED . ": $username_player2&nbsp;&nbsp;&nbsp;(" . _AM_CHESS_CREATED . " $date)";
323
+            $title_text = _AM_CHESS_CHALLENGE." #{$row['challenge_id']}&nbsp;&nbsp;&nbsp;$username_player1 "._AM_CHESS_CHALLENGED.": $username_player2&nbsp;&nbsp;&nbsp;("._AM_CHESS_CREATED." $date)";
324 324
 
325
-            $form = new XoopsThemeForm($title_text, "challenge_{$row['challenge_id']}", XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . "/create.php?challenge_id={$row['challenge_id']}", 'post', true);
325
+            $form = new XoopsThemeForm($title_text, "challenge_{$row['challenge_id']}", XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname')."/create.php?challenge_id={$row['challenge_id']}", 'post', true);
326 326
 
327 327
             $form->addElement(new XoopsFormButton('', 'submit', _AM_CHESS_ARBITRATE_SUBMIT, 'submit'));
328 328
 
@@ -333,9 +333,9 @@  discard block
 block discarded – undo
333 333
 
334 334
         $pagenav = new XoopsPageNav($num_rows, $max_items_to_display, $start, 'start', "op=$op");
335 335
 
336
-        echo '<div align="center">' . $pagenav->renderNav() . "&nbsp;</div>\n";
336
+        echo '<div align="center">'.$pagenav->renderNav()."&nbsp;</div>\n";
337 337
     } else {
338
-        echo '<h3>' . _AM_CHESS_NO_CHALLENGES . "</h3>\n";
338
+        echo '<h3>'._AM_CHESS_NO_CHALLENGES."</h3>\n";
339 339
     }
340 340
 
341 341
     $xoopsDB->freeRecordSet($result);
Please login to merge, or discard this patch.
game.php 1 patch
Spacing   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -40,19 +40,19 @@  discard block
 block discarded – undo
40 40
 
41 41
 /**#@+
42 42
  */
43
-require_once dirname(__DIR__, 2) . '/mainfile.php';
44
-require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
43
+require_once dirname(__DIR__, 2).'/mainfile.php';
44
+require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
45 45
 
46 46
 $GLOBALS['xoopsOption']['template_main']                  = 'chess_game_main.tpl';
47 47
 $xoopsConfig['module_cache'][$xoopsModule->getVar('mid')] = 0; // disable caching
48
-require_once XOOPS_ROOT_PATH . '/header.php';
49
-require_once XOOPS_ROOT_PATH . '/modules/chess/include/constants.inc.php';
50
-require_once XOOPS_ROOT_PATH . '/modules/chess/include/functions.php';
48
+require_once XOOPS_ROOT_PATH.'/header.php';
49
+require_once XOOPS_ROOT_PATH.'/modules/chess/include/constants.inc.php';
50
+require_once XOOPS_ROOT_PATH.'/modules/chess/include/functions.php';
51 51
 
52 52
 chess_game();
53 53
 
54
-require_once XOOPS_ROOT_PATH . '/include/comment_view.php';
55
-require_once XOOPS_ROOT_PATH . '/footer.php';
54
+require_once XOOPS_ROOT_PATH.'/include/comment_view.php';
55
+require_once XOOPS_ROOT_PATH.'/footer.php';
56 56
 /**#@-*/
57 57
 
58 58
 /**
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 {
69 69
     // user input
70 70
 
71
-    $game_id = (int)@$_GET['game_id'];
71
+    $game_id = (int) @$_GET['game_id'];
72 72
 
73 73
     $submit_move = isset($_POST['submit_move']);
74 74
 
@@ -96,9 +96,9 @@  discard block
 block discarded – undo
96 96
 
97 97
     if (($submit_move || $submit_refresh || $submit_arbitrate || $show_arbiter_ctrl) && is_object($GLOBALS['xoopsSecurity']) && !$GLOBALS['xoopsSecurity']->check()) {
98 98
         redirect_header(
99
-            XOOPS_URL . '/modules/chess/',
99
+            XOOPS_URL.'/modules/chess/',
100 100
             _CHESS_REDIRECT_DELAY_FAILURE,
101
-            _MD_CHESS_TOKEN_ERROR . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors())
101
+            _MD_CHESS_TOKEN_ERROR.'<br>'.implode('<br>', $GLOBALS['xoopsSecurity']->getErrors())
102 102
         );
103 103
     }
104 104
 
@@ -107,15 +107,15 @@  discard block
 block discarded – undo
107 107
     $gamedata = chess_get_game($game_id);
108 108
 
109 109
     if (false === $gamedata) {
110
-        redirect_header(XOOPS_URL . '/modules/chess/', _CHESS_REDIRECT_DELAY_FAILURE, _MD_CHESS_GAME_NOT_FOUND);
110
+        redirect_header(XOOPS_URL.'/modules/chess/', _CHESS_REDIRECT_DELAY_FAILURE, _MD_CHESS_GAME_NOT_FOUND);
111 111
     }
112 112
 
113 113
     $gamedata_updated = false;
114 114
 
115 115
     $move_performed        = false; // status result from move-handler
116
-    $move_result_text      = '';    // text result from move-handler
117
-    $draw_claim_error_text = '';    // text describing invalid draw-claim
118
-    $notify                = '';    // text description of action for notification
116
+    $move_result_text      = ''; // text result from move-handler
117
+    $draw_claim_error_text = ''; // text describing invalid draw-claim
118
+    $notify                = ''; // text description of action for notification
119 119
     $delete_game           = false;
120 120
 
121 121
     global $xoopsUser;
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         if ($uid == $gamedata['white_uid']) {
129 129
             $user_color = $gamedata['fen_active_color']; // current user is either player, so consider him active player
130 130
         } else {
131
-            $user_color = '';                            // current user is not a player
131
+            $user_color = ''; // current user is not a player
132 132
         }
133 133
         // not self-play
134 134
     } else {
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         } elseif ($uid == $gamedata['black_uid']) {
138 138
             $user_color = 'b'; // current user is black
139 139
         } else {
140
-            $user_color = '';  // current user is not a player
140
+            $user_color = ''; // current user is not a player
141 141
         }
142 142
     }
143 143
 
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
 
226 226
                         $gamedata['pgn_result'] = '1/2-1/2';
227 227
 
228
-                        $comment = '{' . $draw_claim_text . '}';
228
+                        $comment = '{'.$draw_claim_text.'}';
229 229
 
230 230
                         $gamedata['pgn_movetext'] = str_replace('*', "{$gamedata['pgn_result']} $comment", $gamedata['pgn_movetext']);
231 231
 
@@ -243,13 +243,13 @@  discard block
 block discarded – undo
243 243
 
244 244
                     $gamedata['pgn_result'] = 'w' == $user_color ? '0-1' : '1-0';
245 245
 
246
-                    $comment = '{' . $user_color_name . ' ' . _MD_CHESS_RESIGNED . '}';
246
+                    $comment = '{'.$user_color_name.' '._MD_CHESS_RESIGNED.'}';
247 247
 
248 248
                     $gamedata['pgn_movetext'] = str_replace('*', "{$gamedata['pgn_result']} $comment", $gamedata['pgn_movetext']);
249 249
 
250 250
                     $gamedata_updated = true;
251 251
 
252
-                    $notify = "$user_color_name " . _MD_CHESS_RESIGNED;
252
+                    $notify = "$user_color_name "._MD_CHESS_RESIGNED;
253 253
                 }
254 254
                 break;
255 255
             case _CHESS_MOVETYPE_OFFER_DRAW:
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
 
259 259
                     $gamedata_updated = true;
260 260
 
261
-                    $notify = "$user_color_name " . _MD_CHESS_OFFERED_DRAW;
261
+                    $notify = "$user_color_name "._MD_CHESS_OFFERED_DRAW;
262 262
                 }
263 263
                 break;
264 264
             case _CHESS_MOVETYPE_ACCEPT_DRAW:
@@ -267,13 +267,13 @@  discard block
 block discarded – undo
267 267
 
268 268
                     $gamedata['pgn_result'] = '1/2-1/2';
269 269
 
270
-                    $comment = '{' . _MD_CHESS_DRAW_BY_AGREEMENT . '}';
270
+                    $comment = '{'._MD_CHESS_DRAW_BY_AGREEMENT.'}';
271 271
 
272 272
                     $gamedata['pgn_movetext'] = str_replace('*', "{$gamedata['pgn_result']} $comment", $gamedata['pgn_movetext']);
273 273
 
274 274
                     $gamedata_updated = true;
275 275
 
276
-                    $notify = "$user_color_name " . _MD_CHESS_ACCEPTED_DRAW;
276
+                    $notify = "$user_color_name "._MD_CHESS_ACCEPTED_DRAW;
277 277
                 }
278 278
 
279 279
             // no break
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
 
284 284
                     $gamedata_updated = true;
285 285
 
286
-                    $notify = "$user_color_name " . _MD_CHESS_REJECTED_DRAW;
286
+                    $notify = "$user_color_name "._MD_CHESS_REJECTED_DRAW;
287 287
                 }
288 288
                 break;
289 289
             case _CHESS_MOVETYPE_RESTART:
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
             case _CHESS_MOVETYPE_DELETE:
325 325
                 if ($user_is_player && ($selfplay || chess_can_delete())) {
326 326
                     $delete_game = true; // must defer actual deletion until after notifications are sent
327
-                    $notify      = eval('return \'' . _MD_CHESS_DELETED_GAME . '\';'); // eval references $username
327
+                    $notify      = eval('return \''._MD_CHESS_DELETED_GAME.'\';'); // eval references $username
328 328
                 }
329 329
                 break;
330 330
             case _CHESS_MOVETYPE_WANT_ARBITRATION:
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
 
340 340
                     $gamedata_updated = true;
341 341
 
342
-                    $notify = "$user_color_name " . _MD_CHESS_RQSTED_ARBT . ' ' . _MD_CHESS_BEEN_SUSPENDED;
342
+                    $notify = "$user_color_name "._MD_CHESS_RQSTED_ARBT.' '._MD_CHESS_BEEN_SUSPENDED;
343 343
                 }
344 344
                 break;
345 345
         }
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
 
374 374
                     $gamedata_updated = true;
375 375
 
376
-                    $notify = eval('return \'' . _MD_CHESS_RESUMED_PLAY . '\';'); // eval references $username
376
+                    $notify = eval('return \''._MD_CHESS_RESUMED_PLAY.'\';'); // eval references $username
377 377
                 }
378 378
                 break;
379 379
             case _CHESS_ARBITER_DRAW:
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
 
387 387
                     $arbiter_explain = str_replace('}', ')', $arbiter_explain);
388 388
 
389
-                    $comment = '{' . sprintf(_MD_CHESS_DRAW_DECLARED, $arbiter_explain) . '}';
389
+                    $comment = '{'.sprintf(_MD_CHESS_DRAW_DECLARED, $arbiter_explain).'}';
390 390
 
391 391
                     $gamedata['pgn_movetext'] = str_replace('*', "{$gamedata['pgn_result']} $comment", $gamedata['pgn_movetext']);
392 392
 
@@ -394,13 +394,13 @@  discard block
 block discarded – undo
394 394
 
395 395
                     $gamedata_updated = true;
396 396
 
397
-                    $notify = eval('return \'' . _MD_CHESS_DECLARED_DRAW . '\';'); // eval references $username
397
+                    $notify = eval('return \''._MD_CHESS_DECLARED_DRAW.'\';'); // eval references $username
398 398
                 }
399 399
                 break;
400 400
             case _CHESS_ARBITER_DELETE:
401 401
                 if ($gamedata['suspended']) {
402 402
                     $delete_game = true; // must defer actual deletion until after notifications are sent
403
-                    $notify      = eval('return \'' . _MD_CHESS_DELETED_GAME . '\';'); // eval references $username
403
+                    $notify      = eval('return \''._MD_CHESS_DELETED_GAME.'\';'); // eval references $username
404 404
                 }
405 405
                 break;
406 406
             case _CHESS_ARBITER_SUSPEND:
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
 
416 416
                     $gamedata_updated = true;
417 417
 
418
-                    $notify = eval('return \'' . _MD_CHESS_SUSPENDED_PLAY . '\';'); // eval references $username
418
+                    $notify = eval('return \''._MD_CHESS_SUSPENDED_PLAY.'\';'); // eval references $username
419 419
                 }
420 420
                 break;
421 421
             default:
@@ -447,7 +447,7 @@  discard block
 block discarded – undo
447 447
         if (_CHESS_MOVETYPE_WANT_ARBITRATION == $movetype) {
448 448
             $event = 'notify_request_arbitration';
449 449
 
450
-            $username = $xoopsUser ? $xoopsUser->getVar('uname') : '(' . _MD_CHESS_UNKNOWN . ')';
450
+            $username = $xoopsUser ? $xoopsUser->getVar('uname') : '('._MD_CHESS_UNKNOWN.')';
451 451
 
452 452
             $extra_tags = ['CHESS_REQUESTOR' => $username, 'CHESS_GAME_ID' => $game_id, 'CHESS_EXPLAIN' => $move_explain];
453 453
 
@@ -460,7 +460,7 @@  discard block
 block discarded – undo
460 460
     if ($delete_game) {
461 461
         chess_delete_game($game_id);
462 462
 
463
-        redirect_header(XOOPS_URL . '/modules/chess/', _CHESS_REDIRECT_DELAY_SUCCESS, _MD_CHESS_GAME_DELETED);
463
+        redirect_header(XOOPS_URL.'/modules/chess/', _CHESS_REDIRECT_DELAY_SUCCESS, _MD_CHESS_GAME_DELETED);
464 464
     }
465 465
 }
466 466
 
@@ -532,11 +532,11 @@  discard block
 block discarded – undo
532 532
     );
533 533
 
534 534
     if ($xoopsDB->errno()) {
535
-        trigger_error($xoopsDB->errno() . ':' . $xoopsDB->error(), E_USER_ERROR);
535
+        trigger_error($xoopsDB->errno().':'.$xoopsDB->error(), E_USER_ERROR);
536 536
     }
537 537
 
538 538
     if ('*' != $gamedata['pgn_result'] && '1' == $gamedata['is_rated']) {
539
-        require_once XOOPS_ROOT_PATH . '/modules/chess/include/ratings.php';
539
+        require_once XOOPS_ROOT_PATH.'/modules/chess/include/ratings.php';
540 540
 
541 541
         chess_ratings_adj($game_id);
542 542
     }
@@ -560,7 +560,7 @@  discard block
 block discarded – undo
560 560
     $xoopsDB->query("DELETE FROM $table WHERE game_id='$game_id'");
561 561
 
562 562
     if ($xoopsDB->errno()) {
563
-        trigger_error($xoopsDB->errno() . ':' . $xoopsDB->error(), E_USER_ERROR);
563
+        trigger_error($xoopsDB->errno().':'.$xoopsDB->error(), E_USER_ERROR);
564 564
     }
565 565
 }
566 566
 
@@ -733,7 +733,7 @@  discard block
 block discarded – undo
733 733
 
734 734
     // The current position is included, since that's the position against which the other positions will be compared.
735 735
 
736
-    $repeats[] = $gamedata['fen_fullmove_number'] . $gamedata['fen_active_color'];
736
+    $repeats[] = $gamedata['fen_fullmove_number'].$gamedata['fen_active_color'];
737 737
 
738 738
     // Compare initial board position with last board position, unless the move number is the same, meaning that there haven't been any moves.
739 739
 
@@ -742,7 +742,7 @@  discard block
 block discarded – undo
742 742
     $board_state = "{$tmp_gamedata['fen_piece_placement']} {$tmp_gamedata['fen_active_color']} {$tmp_gamedata['fen_castling_availability']} {$tmp_gamedata['fen_en_passant_target_square']}";
743 743
 
744 744
     if ($tmp_gamedata['fen_fullmove_number'] != $last_move_number && $board_state == $last_board_state) {
745
-        $repeats[] = $tmp_gamedata['fen_fullmove_number'] . $tmp_gamedata['fen_active_color'];
745
+        $repeats[] = $tmp_gamedata['fen_fullmove_number'].$tmp_gamedata['fen_active_color'];
746 746
 
747 747
         if (CHESS_LOG_3FOLD) {
748 748
             $log[] = sprintf('%08x %03d%1s %s', crc32($board_state), $tmp_gamedata['fen_fullmove_number'], $tmp_gamedata['fen_active_color'], $board_state);
@@ -807,7 +807,7 @@  discard block
 block discarded – undo
807 807
             }
808 808
 
809 809
             if ($tmp_gamedata['fen_fullmove_number'] != $last_move_number && $board_state == $last_board_state) {
810
-                $repeats[] = $tmp_gamedata['fen_fullmove_number'] . $tmp_gamedata['fen_active_color'];
810
+                $repeats[] = $tmp_gamedata['fen_fullmove_number'].$tmp_gamedata['fen_active_color'];
811 811
 
812 812
                 #*#DEBUG# - start
813 813
 
@@ -854,7 +854,7 @@  discard block
 block discarded – undo
854 854
     }
855 855
 
856 856
     if (CHESS_LOG_3FOLD) {
857
-        $logfile = XOOPS_ROOT_PATH . '/cache/' . date('Ymd_His') . '_3fold.log';
857
+        $logfile = XOOPS_ROOT_PATH.'/cache/'.date('Ymd_His').'_3fold.log';
858 858
 
859 859
         sort($log);
860 860
 
@@ -917,7 +917,7 @@  discard block
 block discarded – undo
917 917
     $xoopsTpl->assign(
918 918
         'xoops_module_header',
919 919
         '
920
-        <link rel="stylesheet" type="text/css" media="screen" href="' . XOOPS_URL . '/modules/chess/assets/css/style.css">
920
+        <link rel="stylesheet" type="text/css" media="screen" href="' . XOOPS_URL.'/modules/chess/assets/css/style.css">
921 921
     '
922 922
     );
923 923
 
@@ -960,7 +960,7 @@  discard block
 block discarded – undo
960 960
         $expanded_row = preg_replace_callback(
961 961
             '/(\d)/',
962 962
 
963
-            static function ($matches) {
963
+            static function($matches) {
964 964
                 return str_repeat('x', $matches[1]);
965 965
             },
966 966
             $rank
Please login to merge, or discard this patch.
include/ratings.inc.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
 /**#@+
31 31
  */
32
-require_once XOOPS_ROOT_PATH . '/modules/chess/include/functions.php';
32
+require_once XOOPS_ROOT_PATH.'/modules/chess/include/functions.php';
33 33
 /**#@-*/
34 34
 
35 35
 /**
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     if (!empty($value_list)) {
94 94
         $values = implode(',', $value_list);
95 95
         $xoopsDB->query("INSERT INTO $ratings_table (player_uid, rating) VALUES $values");
96
-        $xoopsDB->errno() and trigger_error($xoopsDB->errno() . ':' . $xoopsDB->error(), E_USER_ERROR);
96
+        $xoopsDB->errno() and trigger_error($xoopsDB->errno().':'.$xoopsDB->error(), E_USER_ERROR);
97 97
     }
98 98
 
99 99
     // calculate new ratings using configured rating system
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
         WHERE  player_uid = '{$row['white_uid']}'
110 110
     "
111 111
     );
112
-    $xoopsDB->errno() and trigger_error($xoopsDB->errno() . ':' . $xoopsDB->error(), E_USER_ERROR);
112
+    $xoopsDB->errno() and trigger_error($xoopsDB->errno().':'.$xoopsDB->error(), E_USER_ERROR);
113 113
 
114 114
     $xoopsDB->query(
115 115
         "
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
         WHERE  player_uid = '{$row['black_uid']}'
119 119
     "
120 120
     );
121
-    $xoopsDB->errno() and trigger_error($xoopsDB->errno() . ':' . $xoopsDB->error(), E_USER_ERROR);
121
+    $xoopsDB->errno() and trigger_error($xoopsDB->errno().':'.$xoopsDB->error(), E_USER_ERROR);
122 122
 
123 123
     return true;
124 124
 }
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
         $values = implode(',', $value_list);
203 203
 
204 204
         $xoopsDB->query("INSERT INTO $ratings_table (player_uid, rating, games_won, games_lost, games_drawn) VALUES $values");
205
-        $xoopsDB->errno() and trigger_error($xoopsDB->errno() . ':' . $xoopsDB->error(), E_USER_ERROR);
205
+        $xoopsDB->errno() and trigger_error($xoopsDB->errno().':'.$xoopsDB->error(), E_USER_ERROR);
206 206
     }
207 207
 
208 208
     return true;
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
     }
223 223
 
224 224
     // determine function for getting number of provisional games using configured rating system
225
-    $file = XOOPS_ROOT_PATH . "/modules/chess/include/ratings_{$rating_system}.inc.php";
225
+    $file = XOOPS_ROOT_PATH."/modules/chess/include/ratings_{$rating_system}.inc.php";
226 226
     file_exists($file) or trigger_error("missing file '$file' for rating system '$rating_system'", E_USER_ERROR);
227 227
     require_once $file;
228 228
     $func = "chess_ratings_num_provisional_games_{$rating_system}";
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
  */
240 240
 function chess_ratings_get_func_adj($rating_system)
241 241
 {
242
-    $file = XOOPS_ROOT_PATH . "/modules/chess/include/ratings_{$rating_system}.inc.php";
242
+    $file = XOOPS_ROOT_PATH."/modules/chess/include/ratings_{$rating_system}.inc.php";
243 243
     file_exists($file) or trigger_error("missing file '$file' for rating system '$rating_system'", E_USER_ERROR);
244 244
     require_once $file;
245 245
     $func = "chess_ratings_adj_{$rating_system}";
Please login to merge, or discard this patch.
include/ratings.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
 /**#@+
32 32
  */
33
-require_once XOOPS_ROOT_PATH . '/modules/chess/include/functions.php';
33
+require_once XOOPS_ROOT_PATH.'/modules/chess/include/functions.php';
34 34
 /**#@-*/
35 35
 
36 36
 /**
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 
112 112
         $xoopsDB->query("INSERT INTO $ratings_table (player_uid, rating) VALUES $values");
113 113
 
114
-        $xoopsDB->errno() and trigger_error($xoopsDB->errno() . ':' . $xoopsDB->error(), E_USER_ERROR);
114
+        $xoopsDB->errno() and trigger_error($xoopsDB->errno().':'.$xoopsDB->error(), E_USER_ERROR);
115 115
     }
116 116
 
117 117
     // calculate new ratings using configured rating system
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
     "
131 131
     );
132 132
 
133
-    $xoopsDB->errno() and trigger_error($xoopsDB->errno() . ':' . $xoopsDB->error(), E_USER_ERROR);
133
+    $xoopsDB->errno() and trigger_error($xoopsDB->errno().':'.$xoopsDB->error(), E_USER_ERROR);
134 134
 
135 135
     $xoopsDB->query(
136 136
         "
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     "
141 141
     );
142 142
 
143
-    $xoopsDB->errno() and trigger_error($xoopsDB->errno() . ':' . $xoopsDB->error(), E_USER_ERROR);
143
+    $xoopsDB->errno() and trigger_error($xoopsDB->errno().':'.$xoopsDB->error(), E_USER_ERROR);
144 144
 
145 145
     return true;
146 146
 }
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
 
241 241
         $xoopsDB->query("INSERT INTO $ratings_table (player_uid, rating, games_won, games_lost, games_drawn) VALUES $values");
242 242
 
243
-        $xoopsDB->errno() and trigger_error($xoopsDB->errno() . ':' . $xoopsDB->error(), E_USER_ERROR);
243
+        $xoopsDB->errno() and trigger_error($xoopsDB->errno().':'.$xoopsDB->error(), E_USER_ERROR);
244 244
     }
245 245
 
246 246
     return true;
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
 
262 262
     // determine function for getting number of provisional games using configured rating system
263 263
 
264
-    $file = XOOPS_ROOT_PATH . "/modules/chess/include/ratings_{$rating_system}.php";
264
+    $file = XOOPS_ROOT_PATH."/modules/chess/include/ratings_{$rating_system}.php";
265 265
 
266 266
     file_exists($file) or trigger_error("missing file '$file' for rating system '$rating_system'", E_USER_ERROR);
267 267
 
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
  */
283 283
 function chess_ratings_get_func_adj($rating_system)
284 284
 {
285
-    $file = XOOPS_ROOT_PATH . "/modules/chess/include/ratings_{$rating_system}.php";
285
+    $file = XOOPS_ROOT_PATH."/modules/chess/include/ratings_{$rating_system}.php";
286 286
 
287 287
     file_exists($file) or trigger_error("missing file '$file' for rating system '$rating_system'", E_USER_ERROR);
288 288
 
Please login to merge, or discard this patch.
blocks/blocks.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -36,8 +36,8 @@  discard block
 block discarded – undo
36 36
 
37 37
 /**#@+
38 38
  */
39
-require_once XOOPS_ROOT_PATH . '/modules/chess/include/constants.inc.php';
40
-require_once XOOPS_ROOT_PATH . '/modules/chess/include/functions.php';
39
+require_once XOOPS_ROOT_PATH.'/modules/chess/include/constants.inc.php';
40
+require_once XOOPS_ROOT_PATH.'/modules/chess/include/functions.php';
41 41
 /**#@-*/
42 42
 
43 43
 /**
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
     $table = $xoopsDB->prefix('chess_games');
60 60
 
61
-    $limit = (int)$options[0]; // sanitize with intval()
61
+    $limit = (int) $options[0]; // sanitize with intval()
62 62
 
63 63
     $where = 'white_uid != black_uid';
64 64
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 
123 123
     $memberHandler = xoops_getHandler('member');
124 124
 
125
-    $criteria = new \Criteria('uid', '(' . implode(',', array_keys($userids)) . ')', 'IN');
125
+    $criteria = new \Criteria('uid', '('.implode(',', array_keys($userids)).')', 'IN');
126 126
 
127 127
     $usernames = $memberHandler->getUserList($criteria);
128 128
 
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 
160 160
     $table = $xoopsDB->prefix('chess_challenges');
161 161
 
162
-    $limit = (int)$options[0]; // sanitize with intval()
162
+    $limit = (int) $options[0]; // sanitize with intval()
163 163
 
164 164
     switch ($options[1]) {
165 165
         case 1:
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
 
218 218
     $memberHandler = xoops_getHandler('member');
219 219
 
220
-    $criteria = new \Criteria('uid', '(' . implode(',', array_keys($userids)) . ')', 'IN');
220
+    $criteria = new \Criteria('uid', '('.implode(',', array_keys($userids)).')', 'IN');
221 221
 
222 222
     $usernames = $memberHandler->getUserList($criteria);
223 223
 
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
         return [];
253 253
     }
254 254
 
255
-    require_once XOOPS_ROOT_PATH . '/modules/chess/include/ratings.php';
255
+    require_once XOOPS_ROOT_PATH.'/modules/chess/include/ratings.php';
256 256
 
257 257
     $moduleHandler = xoops_getHandler('module');
258 258
 
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
 
275 275
     $table = $xoopsDB->prefix('chess_ratings');
276 276
 
277
-    $limit = (int)$options[0]; // sanitize with intval()
277
+    $limit = (int) $options[0]; // sanitize with intval()
278 278
 
279 279
     switch ($options[1]) {
280 280
         case 1:
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
     if (!empty($userids)) {
328 328
         $memberHandler = xoops_getHandler('member');
329 329
 
330
-        $criteria = new \Criteria('uid', '(' . implode(',', array_keys($userids)) . ')', 'IN');
330
+        $criteria = new \Criteria('uid', '('.implode(',', array_keys($userids)).')', 'IN');
331 331
 
332 332
         $usernames = $memberHandler->getUserList($criteria);
333 333
     }
@@ -362,16 +362,16 @@  discard block
 block discarded – undo
362 362
     $show_unrated = 2 == $options[2] ? 'checked' : '';
363 363
 
364 364
     return '
365
-        ' . _MB_CHESS_NUM_GAMES . ": <input type='text' name='options[0]' value='{$options[0]}' size='3' maxlength='3'>
365
+        ' . _MB_CHESS_NUM_GAMES.": <input type='text' name='options[0]' value='{$options[0]}' size='3' maxlength='3'>
366 366
         <br>
367 367
         <br>
368
-        <input type='radio' name='options[1]' value='1' $show_inplay    > " . _MB_CHESS_SHOW_GAMES_INPLAY . "
369
-        <input type='radio' name='options[1]' value='2' $show_concluded > " . _MB_CHESS_SHOW_GAMES_CONCLUDED . "
370
-        <input type='radio' name='options[1]' value='3' $show_both      > " . _MB_CHESS_SHOW_GAMES_BOTH . "
368
+        <input type='radio' name='options[1]' value='1' $show_inplay    > "._MB_CHESS_SHOW_GAMES_INPLAY."
369
+        <input type='radio' name='options[1]' value='2' $show_concluded > "._MB_CHESS_SHOW_GAMES_CONCLUDED."
370
+        <input type='radio' name='options[1]' value='3' $show_both      > "._MB_CHESS_SHOW_GAMES_BOTH."
371 371
         <br>
372 372
         <br>
373
-        <input type='radio' name='options[2]' value='1' $show_rated_only> " . _MB_CHESS_SHOW_GAMES_RATED . "
374
-        <input type='radio' name='options[2]' value='2' $show_unrated   > " . _MB_CHESS_SHOW_GAMES_UNRATED . '
373
+        <input type='radio' name='options[2]' value='1' $show_rated_only> "._MB_CHESS_SHOW_GAMES_RATED."
374
+        <input type='radio' name='options[2]' value='2' $show_unrated   > "._MB_CHESS_SHOW_GAMES_UNRATED.'
375 375
     ';
376 376
 }
377 377
 
@@ -390,11 +390,11 @@  discard block
 block discarded – undo
390 390
     $show_both = 3 == $options[1] ? 'checked' : '';
391 391
 
392 392
     return '
393
-        ' . _MB_CHESS_NUM_CHALLENGES . ": <input type='text' name='options[0]' value='{$options[0]}' size='3' maxlength='3'>
393
+        ' . _MB_CHESS_NUM_CHALLENGES.": <input type='text' name='options[0]' value='{$options[0]}' size='3' maxlength='3'>
394 394
         <br>
395
-        <input type='radio' name='options[1]' value='1' $show_open> " . _MB_CHESS_SHOW_CHALLENGES_OPEN . "
396
-        <input type='radio' name='options[1]' value='2' $show_user> " . _MB_CHESS_SHOW_CHALLENGES_USER . "
397
-        <input type='radio' name='options[1]' value='3' $show_both> " . _MB_CHESS_SHOW_CHALLENGES_BOTH . '
395
+        <input type='radio' name='options[1]' value='1' $show_open> "._MB_CHESS_SHOW_CHALLENGES_OPEN."
396
+        <input type='radio' name='options[1]' value='2' $show_user> "._MB_CHESS_SHOW_CHALLENGES_USER."
397
+        <input type='radio' name='options[1]' value='3' $show_both> "._MB_CHESS_SHOW_CHALLENGES_BOTH.'
398 398
     ';
399 399
 }
400 400
 
@@ -411,9 +411,9 @@  discard block
 block discarded – undo
411 411
     $show_all = 2 == $options[1] ? 'checked' : '';
412 412
 
413 413
     return '
414
-        ' . _MB_CHESS_NUM_PLAYERS . ": <input type='text' name='options[0]' value='{$options[0]}' size='3' maxlength='3'>
414
+        ' . _MB_CHESS_NUM_PLAYERS.": <input type='text' name='options[0]' value='{$options[0]}' size='3' maxlength='3'>
415 415
         <br>
416
-        <input type='radio' name='options[1]' value='1' $show_nonprovisional> " . _MB_CHESS_SHOW_NONPROVISIONAL . "
417
-        <input type='radio' name='options[1]' value='2' $show_all           > " . _MB_CHESS_SHOW_ALL_RATINGS . '
416
+        <input type='radio' name='options[1]' value='1' $show_nonprovisional> "._MB_CHESS_SHOW_NONPROVISIONAL."
417
+        <input type='radio' name='options[1]' value='2' $show_all           > "._MB_CHESS_SHOW_ALL_RATINGS.'
418 418
     ';
419 419
 }
Please login to merge, or discard this patch.
language/english/filechecker.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -14,15 +14,15 @@
 block discarded – undo
14 14
  * @ignore
15 15
  */
16 16
 
17
-define('CO_' . $moduleDirNameUpper . '_' . 'FC_AVAILABLE', "<span style='color: #008000;'>Available</span>");
18
-define('CO_' . $moduleDirNameUpper . '_' . 'FC_NOTAVAILABLE', "<span style='color: #ff0000;'>Not available</span>");
19
-define('CO_' . $moduleDirNameUpper . '_' . 'FC_NOTWRITABLE', "<span style='color: #ff0000;'>Should have permission ( %d ), but it has ( %d )</span>");
20
-define('CO_' . $moduleDirNameUpper . '_' . 'FC_COPYTHEFILE', 'Copy it');
21
-define('CO_' . $moduleDirNameUpper . '_' . 'FC_CREATETHEFILE', 'Create it');
22
-define('CO_' . $moduleDirNameUpper . '_' . 'FC_SETMPERM', 'Set the permission');
23
-define('CO_' . $moduleDirNameUpper . '_' . 'FC_FILECOPIED', 'The file has been copied');
24
-define('CO_' . $moduleDirNameUpper . '_' . 'FC_FILENOTCOPIED', 'The file cannot be copied');
25
-define('CO_' . $moduleDirNameUpper . '_' . 'FC_PERMSET', 'The permission has been set');
26
-define('CO_' . $moduleDirNameUpper . '_' . 'FC_PERMNOTSET', 'The permission cannot be set');
17
+define('CO_'.$moduleDirNameUpper.'_'.'FC_AVAILABLE', "<span style='color: #008000;'>Available</span>");
18
+define('CO_'.$moduleDirNameUpper.'_'.'FC_NOTAVAILABLE', "<span style='color: #ff0000;'>Not available</span>");
19
+define('CO_'.$moduleDirNameUpper.'_'.'FC_NOTWRITABLE', "<span style='color: #ff0000;'>Should have permission ( %d ), but it has ( %d )</span>");
20
+define('CO_'.$moduleDirNameUpper.'_'.'FC_COPYTHEFILE', 'Copy it');
21
+define('CO_'.$moduleDirNameUpper.'_'.'FC_CREATETHEFILE', 'Create it');
22
+define('CO_'.$moduleDirNameUpper.'_'.'FC_SETMPERM', 'Set the permission');
23
+define('CO_'.$moduleDirNameUpper.'_'.'FC_FILECOPIED', 'The file has been copied');
24
+define('CO_'.$moduleDirNameUpper.'_'.'FC_FILENOTCOPIED', 'The file cannot be copied');
25
+define('CO_'.$moduleDirNameUpper.'_'.'FC_PERMSET', 'The permission has been set');
26
+define('CO_'.$moduleDirNameUpper.'_'.'FC_PERMNOTSET', 'The permission cannot be set');
27 27
 
28 28
 /**#@-*/
Please login to merge, or discard this patch.
language/english/modinfo.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -73,25 +73,25 @@  discard block
 block discarded – undo
73 73
     '
74 74
     Available rating systems:
75 75
     <br><br>
76
-    &nbsp;&nbsp;' . _MI_CHESS_RATING_SYSTEM_CXR . '    - Adaptation of the ELO rating system, used by permission of <a target="_blank" href="http://chess-express.com/">Chess Express Ratings, Inc.</a>
76
+    &nbsp;&nbsp;' . _MI_CHESS_RATING_SYSTEM_CXR.'    - Adaptation of the ELO rating system, used by permission of <a target="_blank" href="http://chess-express.com/">Chess Express Ratings, Inc.</a>
77 77
     <br><br>
78
-    &nbsp;&nbsp;' . _MI_CHESS_RATING_SYSTEM_LINEAR . ' - A very simple system that adds (subtracts) a fixed number of points for a win (loss).
78
+    &nbsp;&nbsp;' . _MI_CHESS_RATING_SYSTEM_LINEAR.' - A very simple system that adds (subtracts) a fixed number of points for a win (loss).
79 79
     <br><br>
80
-    Select "' . _MI_CHESS_RATING_SYSTEM_NONE . '" to disable the rating feature.
80
+    Select "' . _MI_CHESS_RATING_SYSTEM_NONE.'" to disable the rating feature.
81 81
     <br><br>
82 82
     After changing this setting, you should rebuild the player ratings data from Main Menu >> Chess >>
83
-    ' . _MI_CHESS_SMNAME4 . '.
83
+    ' . _MI_CHESS_SMNAME4.'.
84 84
 '
85 85
 );
86 86
 define('_MI_CHESS_INITIAL_RATING', 'Initial player rating');
87 87
 define(
88 88
     '_MI_CHESS_INITIAL_RATING_DES',
89 89
     '
90
-    If the "' . _MI_CHESS_RATING_SYSTEM_CXR . '" rating system is selected, this value should be between 800 and 2000.
90
+    If the "' . _MI_CHESS_RATING_SYSTEM_CXR.'" rating system is selected, this value should be between 800 and 2000.
91 91
     <br><br>
92 92
     Applies only if a player rating system is selected.
93 93
     <br><br>
94
-    If you change this value, you should rebuild the player ratings data from Main Menu >> Chess >> ' . _MI_CHESS_SMNAME4 . '.
94
+    If you change this value, you should rebuild the player ratings data from Main Menu >> Chess >> ' . _MI_CHESS_SMNAME4.'.
95 95
 '
96 96
 );
97 97
 define('_MI_CHESS_ALLOW_UNRATED', 'Allow unrated games?');
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 
171 171
 //Help
172 172
 define('_MI_CHESS_DIRNAME', basename(dirname(__DIR__, 2)));
173
-define('_MI_CHESS_HELP_HEADER', __DIR__ . '/help/helpheader.tpl');
173
+define('_MI_CHESS_HELP_HEADER', __DIR__.'/help/helpheader.tpl');
174 174
 define('_MI_CHESS_BACK_2_ADMIN', 'Back to Administration of ');
175 175
 define('_MI_CHESS_OVERVIEW', 'Overview');
176 176
 
Please login to merge, or discard this patch.
language/english/common.php 1 patch
Spacing   +124 added lines, -124 removed lines patch added patch discarded remove patch
@@ -25,132 +25,132 @@  discard block
 block discarded – undo
25 25
 $moduleDirName      = basename(dirname(__DIR__, 2));
26 26
 $moduleDirNameUpper = mb_strtoupper($moduleDirName);
27 27
 
28
-define('CO_' . $moduleDirNameUpper . '_GDLIBSTATUS', 'GD library support: ');
29
-define('CO_' . $moduleDirNameUpper . '_GDLIBVERSION', 'GD Library version: ');
30
-define('CO_' . $moduleDirNameUpper . '_GDOFF', "<span style='font-weight: bold;'>Disabled</span> (No thumbnails available)");
31
-define('CO_' . $moduleDirNameUpper . '_GDON', "<span style='font-weight: bold;'>Enabled</span> (Thumbsnails available)");
32
-define('CO_' . $moduleDirNameUpper . '_IMAGEINFO', 'Server status');
33
-define('CO_' . $moduleDirNameUpper . '_MAXPOSTSIZE', 'Max post size permitted (post_max_size directive in php.ini): ');
34
-define('CO_' . $moduleDirNameUpper . '_MAXUPLOADSIZE', 'Max upload size permitted (upload_max_filesize directive in php.ini): ');
35
-define('CO_' . $moduleDirNameUpper . '_MEMORYLIMIT', 'Memory limit (memory_limit directive in php.ini): ');
36
-define('CO_' . $moduleDirNameUpper . '_METAVERSION', "<span style='font-weight: bold;'>Downloads meta version:</span> ");
37
-define('CO_' . $moduleDirNameUpper . '_OFF', "<span style='font-weight: bold;'>OFF</span>");
38
-define('CO_' . $moduleDirNameUpper . '_ON', "<span style='font-weight: bold;'>ON</span>");
39
-define('CO_' . $moduleDirNameUpper . '_SERVERPATH', 'Server path to XOOPS root: ');
40
-define('CO_' . $moduleDirNameUpper . '_SERVERUPLOADSTATUS', 'Server uploads status: ');
41
-define('CO_' . $moduleDirNameUpper . '_SPHPINI', "<span style='font-weight: bold;'>Information taken from PHP ini file:</span>");
42
-define('CO_' . $moduleDirNameUpper . '_UPLOADPATHDSC', 'Note. Upload path *MUST* contain the full server path of your upload folder.');
43
-
44
-define('CO_' . $moduleDirNameUpper . '_PRINT', "<span style='font-weight: bold;'>Print</span>");
45
-define('CO_' . $moduleDirNameUpper . '_PDF', "<span style='font-weight: bold;'>Create PDF</span>");
46
-
47
-define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED0', "Update failed - couldn't rename field '%s'");
48
-define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED1', "Update failed - couldn't add new fields");
49
-define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED2', "Update failed - couldn't rename table '%s'");
50
-define('CO_' . $moduleDirNameUpper . '_ERROR_COLUMN', 'Could not create column in database : %s');
51
-define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_XOOPS', 'This module requires XOOPS %s+ (%s installed)');
52
-define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_PHP', 'This module requires PHP version %s+ (%s installed)');
53
-define('CO_' . $moduleDirNameUpper . '_ERROR_TAG_REMOVAL', 'Could not remove tags from Tag Module');
54
-
55
-define('CO_' . $moduleDirNameUpper . '_FOLDERS_DELETED_OK', 'Upload Folders have been deleted');
28
+define('CO_'.$moduleDirNameUpper.'_GDLIBSTATUS', 'GD library support: ');
29
+define('CO_'.$moduleDirNameUpper.'_GDLIBVERSION', 'GD Library version: ');
30
+define('CO_'.$moduleDirNameUpper.'_GDOFF', "<span style='font-weight: bold;'>Disabled</span> (No thumbnails available)");
31
+define('CO_'.$moduleDirNameUpper.'_GDON', "<span style='font-weight: bold;'>Enabled</span> (Thumbsnails available)");
32
+define('CO_'.$moduleDirNameUpper.'_IMAGEINFO', 'Server status');
33
+define('CO_'.$moduleDirNameUpper.'_MAXPOSTSIZE', 'Max post size permitted (post_max_size directive in php.ini): ');
34
+define('CO_'.$moduleDirNameUpper.'_MAXUPLOADSIZE', 'Max upload size permitted (upload_max_filesize directive in php.ini): ');
35
+define('CO_'.$moduleDirNameUpper.'_MEMORYLIMIT', 'Memory limit (memory_limit directive in php.ini): ');
36
+define('CO_'.$moduleDirNameUpper.'_METAVERSION', "<span style='font-weight: bold;'>Downloads meta version:</span> ");
37
+define('CO_'.$moduleDirNameUpper.'_OFF', "<span style='font-weight: bold;'>OFF</span>");
38
+define('CO_'.$moduleDirNameUpper.'_ON', "<span style='font-weight: bold;'>ON</span>");
39
+define('CO_'.$moduleDirNameUpper.'_SERVERPATH', 'Server path to XOOPS root: ');
40
+define('CO_'.$moduleDirNameUpper.'_SERVERUPLOADSTATUS', 'Server uploads status: ');
41
+define('CO_'.$moduleDirNameUpper.'_SPHPINI', "<span style='font-weight: bold;'>Information taken from PHP ini file:</span>");
42
+define('CO_'.$moduleDirNameUpper.'_UPLOADPATHDSC', 'Note. Upload path *MUST* contain the full server path of your upload folder.');
43
+
44
+define('CO_'.$moduleDirNameUpper.'_PRINT', "<span style='font-weight: bold;'>Print</span>");
45
+define('CO_'.$moduleDirNameUpper.'_PDF', "<span style='font-weight: bold;'>Create PDF</span>");
46
+
47
+define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED0', "Update failed - couldn't rename field '%s'");
48
+define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED1', "Update failed - couldn't add new fields");
49
+define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED2', "Update failed - couldn't rename table '%s'");
50
+define('CO_'.$moduleDirNameUpper.'_ERROR_COLUMN', 'Could not create column in database : %s');
51
+define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_XOOPS', 'This module requires XOOPS %s+ (%s installed)');
52
+define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_PHP', 'This module requires PHP version %s+ (%s installed)');
53
+define('CO_'.$moduleDirNameUpper.'_ERROR_TAG_REMOVAL', 'Could not remove tags from Tag Module');
54
+
55
+define('CO_'.$moduleDirNameUpper.'_FOLDERS_DELETED_OK', 'Upload Folders have been deleted');
56 56
 
57 57
 // Error Msgs
58
-define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_DEL_PATH', 'Could not delete %s directory');
59
-define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_REMOVE', 'Could not delete %s');
60
-define('CO_' . $moduleDirNameUpper . '_ERROR_NO_PLUGIN', 'Could not load plugin');
58
+define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_DEL_PATH', 'Could not delete %s directory');
59
+define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_REMOVE', 'Could not delete %s');
60
+define('CO_'.$moduleDirNameUpper.'_ERROR_NO_PLUGIN', 'Could not load plugin');
61 61
 
62 62
 //Help
63
-define('CO_' . $moduleDirNameUpper . '_DIRNAME', basename(dirname(__DIR__, 2)));
64
-define('CO_' . $moduleDirNameUpper . '_HELP_HEADER', __DIR__ . '/help/helpheader.tpl');
65
-define('CO_' . $moduleDirNameUpper . '_BACK_2_ADMIN', 'Back to Administration of ');
66
-define('CO_' . $moduleDirNameUpper . '_OVERVIEW', 'Overview');
63
+define('CO_'.$moduleDirNameUpper.'_DIRNAME', basename(dirname(__DIR__, 2)));
64
+define('CO_'.$moduleDirNameUpper.'_HELP_HEADER', __DIR__.'/help/helpheader.tpl');
65
+define('CO_'.$moduleDirNameUpper.'_BACK_2_ADMIN', 'Back to Administration of ');
66
+define('CO_'.$moduleDirNameUpper.'_OVERVIEW', 'Overview');
67 67
 
68 68
 //define('CO_' . $moduleDirNameUpper . '_HELP_DIR', __DIR__);
69 69
 
70 70
 //help multi-page
71
-define('CO_' . $moduleDirNameUpper . '_DISCLAIMER', 'Disclaimer');
72
-define('CO_' . $moduleDirNameUpper . '_LICENSE', 'License');
73
-define('CO_' . $moduleDirNameUpper . '_SUPPORT', 'Support');
71
+define('CO_'.$moduleDirNameUpper.'_DISCLAIMER', 'Disclaimer');
72
+define('CO_'.$moduleDirNameUpper.'_LICENSE', 'License');
73
+define('CO_'.$moduleDirNameUpper.'_SUPPORT', 'Support');
74 74
 
75 75
 //Sample Data
76
-define('CO_' . $moduleDirNameUpper . '_' . 'ADD_SAMPLEDATA', 'Import Sample Data (will delete ALL current data)');
77
-define('CO_' . $moduleDirNameUpper . '_' . 'SAMPLEDATA_SUCCESS', 'Sample Date uploaded successfully');
78
-define('CO_' . $moduleDirNameUpper . '_' . 'SAVE_SAMPLEDATA', 'Export Tables to YAML');
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 . '_' . 'EXPORT_SCHEMA', 'Export DB Schema to YAML');
82
-define('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_SUCCESS', 'Export DB Schema to YAML was a success');
83
-define('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_ERROR', 'ERROR: Export of DB Schema to YAML failed');
84
-define('CO_' . $moduleDirNameUpper . '_' . 'ADD_SAMPLEDATA_OK', 'Are you sure to Import Sample Data? (It will delete ALL current data)');
85
-define('CO_' . $moduleDirNameUpper . '_' . 'HIDE_SAMPLEDATA_BUTTONS', 'Hide the Import buttons)');
86
-define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLEDATA_BUTTONS', 'Show the Import buttons)');
87
-define('CO_' . $moduleDirNameUpper . '_' . 'CONFIRM', 'Confirm');
76
+define('CO_'.$moduleDirNameUpper.'_'.'ADD_SAMPLEDATA', 'Import Sample Data (will delete ALL current data)');
77
+define('CO_'.$moduleDirNameUpper.'_'.'SAMPLEDATA_SUCCESS', 'Sample Date uploaded successfully');
78
+define('CO_'.$moduleDirNameUpper.'_'.'SAVE_SAMPLEDATA', 'Export Tables to YAML');
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.'_'.'EXPORT_SCHEMA', 'Export DB Schema to YAML');
82
+define('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA_SUCCESS', 'Export DB Schema to YAML was a success');
83
+define('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA_ERROR', 'ERROR: Export of DB Schema to YAML failed');
84
+define('CO_'.$moduleDirNameUpper.'_'.'ADD_SAMPLEDATA_OK', 'Are you sure to Import Sample Data? (It will delete ALL current data)');
85
+define('CO_'.$moduleDirNameUpper.'_'.'HIDE_SAMPLEDATA_BUTTONS', 'Hide the Import buttons)');
86
+define('CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLEDATA_BUTTONS', 'Show the Import buttons)');
87
+define('CO_'.$moduleDirNameUpper.'_'.'CONFIRM', 'Confirm');
88 88
 
89 89
 //letter choice
90
-define('CO_' . $moduleDirNameUpper . '_' . 'BROWSETOTOPIC', "<span style='font-weight: bold;'>Browse items alphabetically</span>");
91
-define('CO_' . $moduleDirNameUpper . '_' . 'OTHER', 'Other');
92
-define('CO_' . $moduleDirNameUpper . '_' . 'ALL', 'All');
90
+define('CO_'.$moduleDirNameUpper.'_'.'BROWSETOTOPIC', "<span style='font-weight: bold;'>Browse items alphabetically</span>");
91
+define('CO_'.$moduleDirNameUpper.'_'.'OTHER', 'Other');
92
+define('CO_'.$moduleDirNameUpper.'_'.'ALL', 'All');
93 93
 
94 94
 // block defines
95
-define('CO_' . $moduleDirNameUpper . '_' . 'ACCESSRIGHTS', 'Access Rights');
96
-define('CO_' . $moduleDirNameUpper . '_' . 'ACTION', 'Action');
97
-define('CO_' . $moduleDirNameUpper . '_' . 'ACTIVERIGHTS', 'Active Rights');
98
-define('CO_' . $moduleDirNameUpper . '_' . 'BADMIN', 'Block Administration');
99
-define('CO_' . $moduleDirNameUpper . '_' . 'BLKDESC', 'Description');
100
-define('CO_' . $moduleDirNameUpper . '_' . 'CBCENTER', 'Center Middle');
101
-define('CO_' . $moduleDirNameUpper . '_' . 'CBLEFT', 'Center Left');
102
-define('CO_' . $moduleDirNameUpper . '_' . 'CBRIGHT', 'Center Right');
103
-define('CO_' . $moduleDirNameUpper . '_' . 'SBLEFT', 'Left');
104
-define('CO_' . $moduleDirNameUpper . '_' . 'SBRIGHT', 'Right');
105
-define('CO_' . $moduleDirNameUpper . '_' . 'SIDE', 'Alignment');
106
-define('CO_' . $moduleDirNameUpper . '_' . 'TITLE', 'Title');
107
-define('CO_' . $moduleDirNameUpper . '_' . 'VISIBLE', 'Visible');
108
-define('CO_' . $moduleDirNameUpper . '_' . 'VISIBLEIN', 'Visible In');
109
-define('CO_' . $moduleDirNameUpper . '_' . 'WEIGHT', 'Weight');
110
-
111
-define('CO_' . $moduleDirNameUpper . '_' . 'PERMISSIONS', 'Permissions');
112
-define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS', 'Blocks Admin');
113
-define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_DESC', 'Blocks/Group Admin');
114
-
115
-define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_MANAGMENT', 'Manage');
116
-define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_ADDBLOCK', 'Add a new block');
117
-define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_EDITBLOCK', 'Edit a block');
118
-define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_CLONEBLOCK', 'Clone a block');
95
+define('CO_'.$moduleDirNameUpper.'_'.'ACCESSRIGHTS', 'Access Rights');
96
+define('CO_'.$moduleDirNameUpper.'_'.'ACTION', 'Action');
97
+define('CO_'.$moduleDirNameUpper.'_'.'ACTIVERIGHTS', 'Active Rights');
98
+define('CO_'.$moduleDirNameUpper.'_'.'BADMIN', 'Block Administration');
99
+define('CO_'.$moduleDirNameUpper.'_'.'BLKDESC', 'Description');
100
+define('CO_'.$moduleDirNameUpper.'_'.'CBCENTER', 'Center Middle');
101
+define('CO_'.$moduleDirNameUpper.'_'.'CBLEFT', 'Center Left');
102
+define('CO_'.$moduleDirNameUpper.'_'.'CBRIGHT', 'Center Right');
103
+define('CO_'.$moduleDirNameUpper.'_'.'SBLEFT', 'Left');
104
+define('CO_'.$moduleDirNameUpper.'_'.'SBRIGHT', 'Right');
105
+define('CO_'.$moduleDirNameUpper.'_'.'SIDE', 'Alignment');
106
+define('CO_'.$moduleDirNameUpper.'_'.'TITLE', 'Title');
107
+define('CO_'.$moduleDirNameUpper.'_'.'VISIBLE', 'Visible');
108
+define('CO_'.$moduleDirNameUpper.'_'.'VISIBLEIN', 'Visible In');
109
+define('CO_'.$moduleDirNameUpper.'_'.'WEIGHT', 'Weight');
110
+
111
+define('CO_'.$moduleDirNameUpper.'_'.'PERMISSIONS', 'Permissions');
112
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS', 'Blocks Admin');
113
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_DESC', 'Blocks/Group Admin');
114
+
115
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_MANAGMENT', 'Manage');
116
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_ADDBLOCK', 'Add a new block');
117
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_EDITBLOCK', 'Edit a block');
118
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_CLONEBLOCK', 'Clone a block');
119 119
 
120 120
 //myblocksadmin
121
-define('CO_' . $moduleDirNameUpper . '_' . 'AGDS', 'Admin Groups');
122
-define('CO_' . $moduleDirNameUpper . '_' . 'BCACHETIME', 'Cache Time');
123
-define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_ADMIN', 'Blocks Admin');
121
+define('CO_'.$moduleDirNameUpper.'_'.'AGDS', 'Admin Groups');
122
+define('CO_'.$moduleDirNameUpper.'_'.'BCACHETIME', 'Cache Time');
123
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_ADMIN', 'Blocks Admin');
124 124
 
125 125
 //Template Admin
126
-define('CO_' . $moduleDirNameUpper . '_' . 'TPLSETS', 'Template Management');
127
-define('CO_' . $moduleDirNameUpper . '_' . 'GENERATE', 'Generate');
128
-define('CO_' . $moduleDirNameUpper . '_' . 'FILENAME', 'File Name');
126
+define('CO_'.$moduleDirNameUpper.'_'.'TPLSETS', 'Template Management');
127
+define('CO_'.$moduleDirNameUpper.'_'.'GENERATE', 'Generate');
128
+define('CO_'.$moduleDirNameUpper.'_'.'FILENAME', 'File Name');
129 129
 
130 130
 //Menu
131
-define('CO_' . $moduleDirNameUpper . '_' . 'ADMENU_MIGRATE', 'Migrate');
132
-define('CO_' . $moduleDirNameUpper . '_' . 'FOLDER_YES', 'Folder "%s" exist');
133
-define('CO_' . $moduleDirNameUpper . '_' . 'FOLDER_NO', 'Folder "%s" does not exist. Create the specified folder with CHMOD 777.');
134
-define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS', 'Show Development Tools Button?');
135
-define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS_DESC', 'If yes, the "Migrate" Tab and other Development tools will be visible to the Admin.');
136
-define('CO_' . $moduleDirNameUpper . '_' . 'ADMENU_FEEDBACK', 'Feedback');
137
-define('CO_' . $moduleDirNameUpper . '_' . 'MIGRATE_OK', 'Database migrated to current schema.');
138
-define('CO_' . $moduleDirNameUpper . '_' . 'MIGRATE_WARNING', 'Warning! This is intended for developers only. Confirm write schema file from current database.');
139
-define('CO_' . $moduleDirNameUpper . '_' . 'MIGRATE_SCHEMA_OK', 'Current schema file written');
131
+define('CO_'.$moduleDirNameUpper.'_'.'ADMENU_MIGRATE', 'Migrate');
132
+define('CO_'.$moduleDirNameUpper.'_'.'FOLDER_YES', 'Folder "%s" exist');
133
+define('CO_'.$moduleDirNameUpper.'_'.'FOLDER_NO', 'Folder "%s" does not exist. Create the specified folder with CHMOD 777.');
134
+define('CO_'.$moduleDirNameUpper.'_'.'SHOW_DEV_TOOLS', 'Show Development Tools Button?');
135
+define('CO_'.$moduleDirNameUpper.'_'.'SHOW_DEV_TOOLS_DESC', 'If yes, the "Migrate" Tab and other Development tools will be visible to the Admin.');
136
+define('CO_'.$moduleDirNameUpper.'_'.'ADMENU_FEEDBACK', 'Feedback');
137
+define('CO_'.$moduleDirNameUpper.'_'.'MIGRATE_OK', 'Database migrated to current schema.');
138
+define('CO_'.$moduleDirNameUpper.'_'.'MIGRATE_WARNING', 'Warning! This is intended for developers only. Confirm write schema file from current database.');
139
+define('CO_'.$moduleDirNameUpper.'_'.'MIGRATE_SCHEMA_OK', 'Current schema file written');
140 140
 
141 141
 //Latest Version Check
142
-define('CO_' . $moduleDirNameUpper . '_' . 'NEW_VERSION', 'New Version: ');
142
+define('CO_'.$moduleDirNameUpper.'_'.'NEW_VERSION', 'New Version: ');
143 143
 
144 144
 //DirectoryChecker
145
-define('CO_' . $moduleDirNameUpper . '_' . 'AVAILABLE', "<span style='color: #008000;'>Available</span>");
146
-define('CO_' . $moduleDirNameUpper . '_' . 'NOTAVAILABLE', "<span style='color: #ff0000;'>Not available</span>");
147
-define('CO_' . $moduleDirNameUpper . '_' . 'NOTWRITABLE', "<span style='color: #ff0000;'>Should have permission ( %d ), but it has ( %d )</span>");
148
-define('CO_' . $moduleDirNameUpper . '_' . 'CREATETHEDIR', 'Create it');
149
-define('CO_' . $moduleDirNameUpper . '_' . 'SETMPERM', 'Set the permission');
150
-define('CO_' . $moduleDirNameUpper . '_' . 'DIRCREATED', 'The directory has been created');
151
-define('CO_' . $moduleDirNameUpper . '_' . 'DIRNOTCREATED', 'The directory cannot be created');
152
-define('CO_' . $moduleDirNameUpper . '_' . 'PERMSET', 'The permission has been set');
153
-define('CO_' . $moduleDirNameUpper . '_' . 'PERMNOTSET', 'The permission cannot be set');
145
+define('CO_'.$moduleDirNameUpper.'_'.'AVAILABLE', "<span style='color: #008000;'>Available</span>");
146
+define('CO_'.$moduleDirNameUpper.'_'.'NOTAVAILABLE', "<span style='color: #ff0000;'>Not available</span>");
147
+define('CO_'.$moduleDirNameUpper.'_'.'NOTWRITABLE', "<span style='color: #ff0000;'>Should have permission ( %d ), but it has ( %d )</span>");
148
+define('CO_'.$moduleDirNameUpper.'_'.'CREATETHEDIR', 'Create it');
149
+define('CO_'.$moduleDirNameUpper.'_'.'SETMPERM', 'Set the permission');
150
+define('CO_'.$moduleDirNameUpper.'_'.'DIRCREATED', 'The directory has been created');
151
+define('CO_'.$moduleDirNameUpper.'_'.'DIRNOTCREATED', 'The directory cannot be created');
152
+define('CO_'.$moduleDirNameUpper.'_'.'PERMSET', 'The permission has been set');
153
+define('CO_'.$moduleDirNameUpper.'_'.'PERMNOTSET', 'The permission cannot be set');
154 154
 
155 155
 //FileChecker
156 156
 //define('CO_' . $moduleDirNameUpper . '_' . 'AVAILABLE', "<span style='color: green;'>Available</span>");
@@ -160,36 +160,36 @@  discard block
 block discarded – undo
160 160
 //define('CO_' . $moduleDirNameUpper . '_' . 'CREATETHEFILE', 'Create it');
161 161
 //define('CO_' . $moduleDirNameUpper . '_' . 'SETMPERM', 'Set the permission');
162 162
 
163
-define('CO_' . $moduleDirNameUpper . '_' . 'FILECOPIED', 'The file has been copied');
164
-define('CO_' . $moduleDirNameUpper . '_' . 'FILENOTCOPIED', 'The file cannot be copied');
163
+define('CO_'.$moduleDirNameUpper.'_'.'FILECOPIED', 'The file has been copied');
164
+define('CO_'.$moduleDirNameUpper.'_'.'FILENOTCOPIED', 'The file cannot be copied');
165 165
 
166 166
 //define('CO_' . $moduleDirNameUpper . '_' . 'PERMSET', 'The permission has been set');
167 167
 //define('CO_' . $moduleDirNameUpper . '_' . 'PERMNOTSET', 'The permission cannot be set');
168 168
 
169 169
 //image config
170
-define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_WIDTH', 'Image Display Width');
171
-define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_WIDTH_DSC', 'Display width for image');
172
-define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_HEIGHT', 'Image Display Height');
173
-define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_HEIGHT_DSC', 'Display height for image');
174
-define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_CONFIG', '<span style="color: #FF0000; font-size: Small;  font-weight: bold;">--- EXTERNAL Image configuration ---</span> ');
175
-define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_CONFIG_DSC', '');
176
-define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_UPLOAD_PATH', 'Image Upload path');
177
-define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_UPLOAD_PATH_DSC', 'Path for uploading images');
178
-
179
-define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_FILE_SIZE', 'Image File Size (in Bytes)');
180
-define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_FILE_SIZE_DSC', 'The maximum file size of the image file (in Bytes)');
170
+define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_WIDTH', 'Image Display Width');
171
+define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_WIDTH_DSC', 'Display width for image');
172
+define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_HEIGHT', 'Image Display Height');
173
+define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_HEIGHT_DSC', 'Display height for image');
174
+define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_CONFIG', '<span style="color: #FF0000; font-size: Small;  font-weight: bold;">--- EXTERNAL Image configuration ---</span> ');
175
+define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_CONFIG_DSC', '');
176
+define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_UPLOAD_PATH', 'Image Upload path');
177
+define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_UPLOAD_PATH_DSC', 'Path for uploading images');
178
+
179
+define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_FILE_SIZE', 'Image File Size (in Bytes)');
180
+define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_FILE_SIZE_DSC', 'The maximum file size of the image file (in Bytes)');
181 181
 
182 182
 //Preferences
183
-define('CO_' . $moduleDirNameUpper . '_' . 'TRUNCATE_LENGTH', 'Number of Characters to truncate to the long text field');
184
-define('CO_' . $moduleDirNameUpper . '_' . 'TRUNCATE_LENGTH_DESC', 'Set the maximum number of characters to truncate the long text fields');
183
+define('CO_'.$moduleDirNameUpper.'_'.'TRUNCATE_LENGTH', 'Number of Characters to truncate to the long text field');
184
+define('CO_'.$moduleDirNameUpper.'_'.'TRUNCATE_LENGTH_DESC', 'Set the maximum number of characters to truncate the long text fields');
185 185
 
186 186
 //Module Stats
187
-define('CO_' . $moduleDirNameUpper . '_' . 'STATS_SUMMARY', 'Module Statistics');
188
-define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_CATEGORIES', 'Categories:');
189
-define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_ITEMS', 'Items');
190
-define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_OFFLINE', 'Offline');
191
-define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_PUBLISHED', 'Published');
192
-define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_REJECTED', 'Rejected');
193
-define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_SUBMITTED', 'Submitted');
187
+define('CO_'.$moduleDirNameUpper.'_'.'STATS_SUMMARY', 'Module Statistics');
188
+define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_CATEGORIES', 'Categories:');
189
+define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_ITEMS', 'Items');
190
+define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_OFFLINE', 'Offline');
191
+define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_PUBLISHED', 'Published');
192
+define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_REJECTED', 'Rejected');
193
+define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_SUBMITTED', 'Submitted');
194 194
 
195 195
 /**#@-*/
Please login to merge, or discard this patch.