@@ -15,7 +15,7 @@ |
||
15 | 15 | |
16 | 16 | ****************************************************************************/ |
17 | 17 | |
18 | - $error_wrong_node = t('this description was created on another Opencaching-webserver and can only be deleted there.'); |
|
18 | + $error_wrong_node = t('this description was created on another Opencaching-webserver and can only be deleted there.'); |
|
19 | 19 | |
20 | - $commit = t('the cache description has been deleted'); |
|
21 | - $commit_title = t('delete this cache-description'); |
|
20 | + $commit = t('the cache description has been deleted'); |
|
21 | + $commit_title = t('delete this cache-description'); |
@@ -71,7 +71,7 @@ |
||
71 | 71 | $error_suffix = '</span>'; |
72 | 72 | |
73 | 73 | $htmlnotice = |
74 | - '<tr><td class="spacer" colspan="2"></td></tr> |
|
74 | + '<tr><td class="spacer" colspan="2"></td></tr> |
|
75 | 75 | <tr> |
76 | 76 | <td class="help" colspan="2"> |
77 | 77 | <img src="lang/de/ocstyle/images/misc/hint.gif" border="0" width="15" height="11" alt="' . t('Notice') . '" title="' . t('Notice') . '" /> |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | /* selmenuitem contains the selected (bold) menu item */ |
286 | 286 | global $mnu_selmenuitem; |
287 | 287 | |
288 | - for ($i = 0, $ret = - 1; ($i < count($menustructure)) && ($ret == - 1); $i ++) { |
|
288 | + for ($i = 0, $ret = - 1; ($i < count($menustructure)) && ($ret == - 1); $i++) { |
|
289 | 289 | if ($menustructure[$i]['siteid'] == $pageid) { |
290 | 290 | $mnu_selmenuitem = $menustructure[$i]; |
291 | 291 | |
@@ -313,7 +313,7 @@ discard block |
||
313 | 313 | global $menu; |
314 | 314 | $c = 0; |
315 | 315 | $max = count($menu); |
316 | - for ($i = 0; $i < $max; $i ++) { |
|
316 | + for ($i = 0; $i < $max; $i++) { |
|
317 | 317 | if ($menu[$i]['visible'] == true) { |
318 | 318 | $sTarget = isset($menu[$i]['target']) ? $menu[$i]['target'] : ''; |
319 | 319 | $sItem = '<a href="' . $menu[$i]['filename'] . '" ' . $sTarget . '>' . htmlspecialchars(t($menu[$i]['menustring']), ENT_COMPAT, 'UTF-8') . '</a>'; |
@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | |
329 | 329 | echo $sItem . "\n"; |
330 | 330 | |
331 | - $c ++; |
|
331 | + $c++; |
|
332 | 332 | } |
333 | 333 | } |
334 | 334 | } |
@@ -348,7 +348,7 @@ discard block |
||
348 | 348 | |
349 | 349 | if (!$bHasSubmenu) { |
350 | 350 | /* prüfen, ob ein Submenü vorhanden ist */ |
351 | - for ($i = 0, $bSubmenu = false; ($i < count($menustructure)) && ($bSubmenu == false); $i ++) { |
|
351 | + for ($i = 0, $bSubmenu = false; ($i < count($menustructure)) && ($bSubmenu == false); $i++) { |
|
352 | 352 | if (isset($menustructure[$i]['submenu'])) { |
353 | 353 | $bSubmenu = true; |
354 | 354 | } |
@@ -365,7 +365,7 @@ discard block |
||
365 | 365 | } |
366 | 366 | } |
367 | 367 | $maxMenuStructure = count($menustructure); |
368 | - for ($i = 0; $i < $maxMenuStructure; $i ++) { |
|
368 | + for ($i = 0; $i < $maxMenuStructure; $i++) { |
|
369 | 369 | if ($menustructure[$i]['visible'] == true) { |
370 | 370 | if ($menustructure[$i]['siteid'] == $pageid) { |
371 | 371 | echo '<li class="' . $cssclass . ' group_active"><a href="' . $menustructure[$i]['filename'] . '">' . htmlspecialchars(t($menustructure[$i]['menustring']), ENT_COMPAT, 'UTF-8') . '</a></li>' . "\n"; |
@@ -397,7 +397,7 @@ discard block |
||
397 | 397 | */ |
398 | 398 | function mnu_IsMenuParentOf($parentmenuitems, $menuitemid) |
399 | 399 | { |
400 | - for ($i = 0; $i < count($parentmenuitems); $i ++) { |
|
400 | + for ($i = 0; $i < count($parentmenuitems); $i++) { |
|
401 | 401 | if ($parentmenuitems[$i]['siteid'] == $menuitemid) { |
402 | 402 | return true; |
403 | 403 | } |
@@ -439,7 +439,7 @@ discard block |
||
439 | 439 | function mnu_prv_EchoBreadCrumbSubItem($pageid, $menustructure) |
440 | 440 | { |
441 | 441 | $maxMenuStructure = count($menustructure); |
442 | - for ($i = 0; $i < $maxMenuStructure; $i ++) { |
|
442 | + for ($i = 0; $i < $maxMenuStructure; $i++) { |
|
443 | 443 | if ($menustructure[$i]['siteid'] == $pageid) { |
444 | 444 | echo ' > ' . htmlspecialchars(t($menustructure[$i]['menustring']), ENT_COMPAT, 'UTF-8'); |
445 | 445 |
@@ -21,7 +21,7 @@ |
||
21 | 21 | |
22 | 22 | //common vars |
23 | 23 | $dateformat = $opt['locale'][$locale]['format']['date']; |
24 | -$reset = t('Reset'); // obsolete |
|
24 | +$reset = t('Reset'); // obsolete |
|
25 | 25 | $yes = t('Yes'); |
26 | 26 | $no = t('No'); |
27 | 27 |
@@ -19,6 +19,6 @@ |
||
19 | 19 | LIMIT 100'); |
20 | 20 | while ($r = sql_fetch_assoc($rs)) { |
21 | 21 | echo $n . ' ' . $r['username'] . ': ' . $r['found'] . "\n"; |
22 | - $n ++; |
|
22 | + $n++; |
|
23 | 23 | } |
24 | 24 | sql_free_result($rs); |
@@ -36,7 +36,7 @@ |
||
36 | 36 | |
37 | 37 | $n = 1; |
38 | 38 | while ($r = sql_fetch_assoc($rs)) { |
39 | - echo " <tr><td style='text-align:right'> " . ($n ++) . ". </td><td style='text-align:right'>" . $r['count'] . "</td><td> " . $r['name'] . "</td></tr>\n"; |
|
39 | + echo " <tr><td style='text-align:right'> " . ($n++) . ". </td><td style='text-align:right'>" . $r['count'] . "</td><td> " . $r['name'] . "</td></tr>\n"; |
|
40 | 40 | } |
41 | 41 | sql_free_result($rs); |
42 | 42 |
@@ -313,15 +313,15 @@ |
||
313 | 313 | // prepare lines |
314 | 314 | $sZoomIn = str_replace("\r", "", $sZoomIn); |
315 | 315 | $sLines = mb_split("\n", $sZoomIn); |
316 | - for ($i = 0; $i < count($sLines); $i ++) { |
|
316 | + for ($i = 0; $i < count($sLines); $i++) { |
|
317 | 317 | $sLines[$i] = str_pad($sLines[$i], ($nColumnsCount - 1), ' '); |
318 | 318 | } |
319 | 319 | |
320 | 320 | $nDegreePerLine = ($lat_to - $lat_from) / count($sLines); |
321 | 321 | $nDegreePerColumn = ($lon_to - $lon_from) / $nColumnsCount; |
322 | 322 | |
323 | - for ($nLine = 0; $nLine < count($sLines); $nLine ++) { |
|
324 | - for ($nColumn = 0; $nColumn < $nColumnsCount; $nColumn ++) { |
|
323 | + for ($nLine = 0; $nLine < count($sLines); $nLine++) { |
|
324 | + for ($nColumn = 0; $nColumn < $nColumnsCount; $nColumn++) { |
|
325 | 325 | if (substr($sLines[$nLine], $nColumn, 1) == '#') { |
326 | 326 | $nLat = $lat_to - $nDegreePerLine * $nLine; |
327 | 327 | $nLon = $lon_from + $nDegreePerColumn * $nColumn; |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | foreach ($simpletextsarray as $text) { |
28 | 28 | if ($text != '') { |
29 | 29 | if (nonalpha($text)) { |
30 | - die($r['uni'] . ' ' . $text . "\n");// obsolete for the same reason as above |
|
30 | + die($r['uni'] . ' ' . $text . "\n"); // obsolete for the same reason as above |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | $simpletext = search_text2simple($text); |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | |
60 | 60 | function nonalpha($str) |
61 | 61 | { |
62 | - for ($i = 0; $i < mb_strlen($str); $i ++) { |
|
62 | + for ($i = 0; $i < mb_strlen($str); $i++) { |
|
63 | 63 | if (!((ord(mb_substr($str, $i, 1)) >= ord('a')) && (ord(mb_substr($str, $i, 1)) <= ord('z')))) { |
64 | 64 | return true; |
65 | 65 | } |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | // ported from lib1 to lib2 / untested! |
23 | 23 | |
24 | 24 | $opt['rootpath'] = '../../'; |
25 | -require_once __DIR__.'/../../lib2/cli.inc.php'; |
|
25 | +require_once __DIR__ . '/../../lib2/cli.inc.php'; |
|
26 | 26 | |
27 | 27 | /* defaults */ |
28 | 28 | $importfiles = [ |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | $file = fopen($filename, "r"); |
45 | 45 | $cnt = 0; |
46 | 46 | while ($line = fgets($file, 4096)) { |
47 | - if ($cnt ++ == 0) {// skip first line |
|
47 | + if ($cnt++ == 0) {// skip first line |
|
48 | 48 | continue; |
49 | 49 | } |
50 | 50 |