@@ -390,7 +390,7 @@ discard block |
||
390 | 390 | $thislog = mb_ereg_replace('{username}', text_xmlentities($rLog['username']), $thislog); |
391 | 391 | |
392 | 392 | if ($rLog['type'] == 3 && $rLog['needs_maintenance'] == 2) { |
393 | - $logtype = 'Needs Maintenance'; // with capital M, other than cache attribute |
|
393 | + $logtype = 'Needs Maintenance'; // with capital M, other than cache attribute |
|
394 | 394 | } elseif (isset($gpxLogType[$rLog['type']])) { |
395 | 395 | $logtype = $gpxLogType[$rLog['type']]; |
396 | 396 | } else { |
@@ -511,28 +511,28 @@ discard block |
||
511 | 511 | switch ($childWaypoint['type']) { |
512 | 512 | case 1: |
513 | 513 | $wp_typename = "Parking Area"; |
514 | - break; // well-known garmin symbols |
|
514 | + break; // well-known garmin symbols |
|
515 | 515 | case 2: |
516 | 516 | $wp_typename = "Flag, Green"; |
517 | - break; // stage / ref point |
|
517 | + break; // stage / ref point |
|
518 | 518 | case 3: |
519 | 519 | $wp_typename = "Flag, Blue"; |
520 | - break; // path |
|
520 | + break; // path |
|
521 | 521 | case 4: |
522 | 522 | $wp_typename = "Circle with X"; |
523 | 523 | break; // final |
524 | 524 | case 5: |
525 | 525 | $wp_typename = "Diamond, Green"; |
526 | - break; // point of interest |
|
526 | + break; // point of interest |
|
527 | 527 | default: |
528 | 528 | $wp_typename = "Flag, Blue"; |
529 | - break; // for the case new types are forgotten here .. |
|
529 | + break; // for the case new types are forgotten here .. |
|
530 | 530 | } |
531 | 531 | $thiswp = mb_ereg_replace('{type}', text_xmlentities($wp_typename), $thiswp); |
532 | 532 | $thiswp = mb_ereg_replace('{parent}', $r['waypoint'], $thiswp); |
533 | 533 | $thiswp = mb_ereg_replace('{cacheid}', $r['cacheid'], $thiswp); |
534 | 534 | $waypoints .= $thiswp; |
535 | - ++ $n; |
|
535 | + ++$n; |
|
536 | 536 | } |
537 | 537 | |
538 | 538 | if ($cacheNote && !empty($cacheNote['latitude']) && !empty($cacheNote['longitude'])) { |
@@ -156,7 +156,7 @@ |
||
156 | 156 | } |
157 | 157 | |
158 | 158 | // doppelte chars ersetzen |
159 | - for ($c = ord('a'); $c <= ord('z'); $c ++) { |
|
159 | + for ($c = ord('a'); $c <= ord('z'); $c++) { |
|
160 | 160 | $str = mb_ereg_replace(chr($c) . chr($c), chr($c), $str); |
161 | 161 | } |
162 | 162 |
@@ -59,7 +59,7 @@ |
||
59 | 59 | $to_page = min($last_page, max($first_page, $current_page - $lrspan) + $this->max_pages_shown - 1); |
60 | 60 | $from_page = max($first_page, $to_page - $this->max_pages_shown + 1); |
61 | 61 | |
62 | - for ($page = $from_page; $page <= $to_page; $page ++) { |
|
62 | + for ($page = $from_page; $page <= $to_page; $page++) { |
|
63 | 63 | if ($page == $current_page) { |
64 | 64 | $pages[$page] = false; |
65 | 65 | } else { |
@@ -74,7 +74,7 @@ |
||
74 | 74 | break; |
75 | 75 | } |
76 | 76 | $command['result'][] = $r; |
77 | - $c ++; |
|
77 | + $c++; |
|
78 | 78 | } |
79 | 79 | sql_free_result($rs); |
80 | 80 |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | // add country-dependent town list for small map |
35 | 35 | $country = $login->getUserCountry(); |
36 | 36 | if ($opt['map']['towns']['enable'] && |
37 | - isset($build_map_towns_menu) && $build_map_towns_menu && // optimization |
|
37 | + isset($build_map_towns_menu) && $build_map_towns_menu && // optimization |
|
38 | 38 | isset($opt['map']['towns'][$country]['enable']) && $opt['map']['towns'][$country]['enable'] |
39 | 39 | ) { |
40 | 40 | $rsTowns = sqlf( |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | 'parent' => MNU_MAP |
74 | 74 | ]; |
75 | 75 | $menuitem[MNU_MAP]['subitems'][] = $menu_map; |
76 | - ++ $menu_map; |
|
76 | + ++$menu_map; |
|
77 | 77 | } |
78 | 78 | } |
79 | 79 | } |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | $rsSubmenu = sqlf("SELECT `id` FROM `sys_menu` WHERE `parent`=0 ORDER BY `parent` ASC, `position` ASC"); |
101 | 101 | while ($rSubmenu = sql_fetch_assoc($rsSubmenu)) { |
102 | 102 | $aMenu[MNU_ROOT]['subitems'][$nPos] = $rSubmenu['id']; |
103 | - $nPos ++; |
|
103 | + $nPos++; |
|
104 | 104 | } |
105 | 105 | sql_free_result($rsSubmenu); |
106 | 106 | fwrite($f, "\n"); |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | ); |
138 | 138 | while ($rSubmenu = sql_fetch_assoc($rsSubmenu)) { |
139 | 139 | $aMenu[$r['id']]['subitems'][$nPos] = $rSubmenu['id']; |
140 | - $nPos ++; |
|
140 | + $nPos++; |
|
141 | 141 | } |
142 | 142 | sql_free_result($rsSubmenu); |
143 | 143 | } |
@@ -143,9 +143,9 @@ discard block |
||
143 | 143 | |
144 | 144 | } |
145 | 145 | $fnl = strlen($filename); |
146 | - $fh = "\x14\x00"; // ver needed to extract |
|
147 | - $fh .= "\x00\x00"; // gen purpose bit flag |
|
148 | - $fh .= "\x08\x00"; // compression method |
|
146 | + $fh = "\x14\x00"; // ver needed to extract |
|
147 | + $fh .= "\x00\x00"; // gen purpose bit flag |
|
148 | + $fh .= "\x08\x00"; // compression method |
|
149 | 149 | $fh .= "\x00\x00\x00\x00"; // last mod time and date |
150 | 150 | $fh .= pack( |
151 | 151 | "V3v2", |
@@ -170,16 +170,16 @@ discard block |
||
170 | 170 | "va*v3V2", |
171 | 171 | 0, |
172 | 172 | $fh, |
173 | - 0, // file comment length |
|
174 | - 0, // disk number start |
|
175 | - 0, // internal file attributes |
|
176 | - $attr, // external file attributes - 'archive/directory' bit set |
|
173 | + 0, // file comment length |
|
174 | + 0, // disk number start |
|
175 | + 0, // internal file attributes |
|
176 | + $attr, // external file attributes - 'archive/directory' bit set |
|
177 | 177 | $this->offset |
178 | 178 | ) . $filename; |
179 | 179 | |
180 | 180 | $this->offset += 42 + $fnl + $gzsize; |
181 | 181 | $this->cdir[] = $cdir; |
182 | - $this->cnt ++; |
|
182 | + $this->cnt++; |
|
183 | 183 | $this->idx = $this->cnt - 1; |
184 | 184 | } |
185 | 185 | |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | $cdsl, // size of central dir |
229 | 229 | $zdsl, // offset to start of central dir |
230 | 230 | 0 |
231 | - ); // .zip file comment length |
|
231 | + ); // .zip file comment length |
|
232 | 232 | return $this->zipfile; |
233 | 233 | } |
234 | 234 |
@@ -20,13 +20,13 @@ |
||
20 | 20 | * |
21 | 21 | ***************************************************************************/ |
22 | 22 | |
23 | -define('LOGIN_UNKNOWN_ERROR', - 1); // unkown error occured |
|
24 | -define('LOGIN_OK', 0); // login succeeded |
|
25 | -define('LOGIN_BADUSERPW', 1); // bad username or password |
|
26 | -define('LOGIN_TOOMUCHLOGINS', 2); // too many logins in short time |
|
27 | -define('LOGIN_USERNOTACTIVE', 3); // the useraccount locked |
|
23 | +define('LOGIN_UNKNOWN_ERROR', - 1); // unkown error occured |
|
24 | +define('LOGIN_OK', 0); // login succeeded |
|
25 | +define('LOGIN_BADUSERPW', 1); // bad username or password |
|
26 | +define('LOGIN_TOOMUCHLOGINS', 2); // too many logins in short time |
|
27 | +define('LOGIN_USERNOTACTIVE', 3); // the useraccount locked |
|
28 | 28 | define('LOGIN_EMPTY_USERPASSWORD', 4); // given username/password was empty |
29 | -define('LOGIN_LOGOUT_OK', 5); // logout was successfull |
|
29 | +define('LOGIN_LOGOUT_OK', 5); // logout was successfull |
|
30 | 30 | |
31 | 31 | // login times in seconds |
32 | 32 | define('LOGIN_TIME', 60 * 60); |
@@ -534,7 +534,7 @@ discard block |
||
534 | 534 | if (substr($link, 0, 7) == 'http://' || substr($link, 0, 8) == 'https://' || |
535 | 535 | substr($link, 0, 7) == 'mailto:' |
536 | 536 | ) { |
537 | - $this->_link_count ++; |
|
537 | + $this->_link_count++; |
|
538 | 538 | $this->_link_list .= "[" . $this->_link_count . "] $link\n"; |
539 | 539 | $additional = ' [' . $this->_link_count . ']'; |
540 | 540 | } elseif (substr($link, 0, 11) == 'javascript:') { |
@@ -542,7 +542,7 @@ discard block |
||
542 | 542 | $additional = ''; |
543 | 543 | // what about href="#anchor" ? |
544 | 544 | } else { |
545 | - $this->_link_count ++; |
|
545 | + $this->_link_count++; |
|
546 | 546 | $this->_link_list .= "[" . $this->_link_count . "] " . $this->url; |
547 | 547 | if (substr($link, 0, 1) != '/') { |
548 | 548 | $this->_link_list .= '/'; |
@@ -229,7 +229,7 @@ |
||
229 | 229 | |
230 | 230 | while ($nCurPos < mb_strlen($str)) { |
231 | 231 | $nNextSep = mb_strlen($str); |
232 | - for ($nSepPos = 0; $nSepPos < mb_strlen($sep); $nSepPos ++) { |
|
232 | + for ($nSepPos = 0; $nSepPos < mb_strlen($sep); $nSepPos++) { |
|
233 | 233 | $nThisPos = mb_strpos($str, mb_substr($sep, $nSepPos, 1), $nCurPos); |
234 | 234 | if ($nThisPos !== false) { |
235 | 235 | if ($nNextSep > $nThisPos) { |