| @@ -355,7 +355,7 @@ | ||
| 355 | 355 | // return array(); | 
| 356 | 356 | // Logic Error - log types are still valid when no NEW logs are allowed for the cache. | 
| 357 | 357 | // (Would e.g. block admin logs and log-type restoring for locked caches.) | 
| 358 | - return get_cache_log_types($this->getCacheId(), $this->getType()); // depends on userid | |
| 358 | + return get_cache_log_types($this->getCacheId(), $this->getType()); // depends on userid | |
| 359 | 359 | } | 
| 360 | 360 | |
| 361 | 361 | public static function isDuplicate($cacheId, $userId, $logType, $logDate, $logText) | 
| @@ -29,7 +29,7 @@ discard block | ||
| 29 | 29 | // number of points in the polygon | 
| 30 | 30 | $n = count($polygon); | 
| 31 | 31 | $poly1 = $polygon[0]; | 
| 32 | -        for ($i = 1; $i <= $n; $i ++) { | |
| 32 | +        for ($i = 1; $i <= $n; $i++) { | |
| 33 | 33 |              $poly1XY = explode(' ', $poly1); | 
| 34 | 34 | $poly1x = $poly1XY[0]; | 
| 35 | 35 | $poly1y = $poly1XY[1]; | 
| @@ -44,7 +44,7 @@ discard block | ||
| 44 | 44 |                          if ($poly1y != $poly2y) { | 
| 45 | 45 | $xinters = ($py - $poly1y) * ($poly2x - $poly1x) / ($poly2y - $poly1y) + $poly1x; | 
| 46 | 46 |                              if ($poly1x == $poly2x || $px <= $xinters) { | 
| 47 | - $counter ++; | |
| 47 | + $counter++; | |
| 48 | 48 | } | 
| 49 | 49 | } | 
| 50 | 50 | } | 
| @@ -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 { | 
| @@ -7,34 +7,34 @@ | ||
| 7 | 7 | * Common error messages | 
| 8 | 8 | ***************************************************************************/ | 
| 9 | 9 | |
| 10 | - define('ERROR_UNKNOWN', 1000); | |
| 11 | - define('ERROR_TEMPLATE_NOT_FOUND', 1001); | |
| 12 | - define('ERROR_COMPILATION_FAILED', 1002); | |
| 13 | - define('ERROR_NO_ACCESS', 1003); | |
| 14 | - define('ERROR_INVALID_OPERATION', 1004); | |
| 15 | - define('ERROR_LOGIN_REQUIRED', 1005); | |
| 16 | - define('ERROR_MAIL_TEMPLATE_NOT_FOUND', 1006); | |
| 17 | - define('ERROR_NO_COOKIES', 1007); | |
| 18 | - define('ERROR_ALREADY_LOGGEDIN', 1008); | |
| 19 | - define('ERROR_USER_NOT_ACTIVE', 1009); | |
| 20 | - define('ERROR_USER_NO_EMAIL', 1010); | |
| 21 | - define('ERROR_CACHE_NOT_PUBLISHED', 1011); | |
| 22 | - define('ERROR_CACHE_LOCKED', 1012); | |
| 10 | +    define('ERROR_UNKNOWN', 1000); | |
| 11 | +    define('ERROR_TEMPLATE_NOT_FOUND', 1001); | |
| 12 | +    define('ERROR_COMPILATION_FAILED', 1002); | |
| 13 | +    define('ERROR_NO_ACCESS', 1003); | |
| 14 | +    define('ERROR_INVALID_OPERATION', 1004); | |
| 15 | +    define('ERROR_LOGIN_REQUIRED', 1005); | |
| 16 | +    define('ERROR_MAIL_TEMPLATE_NOT_FOUND', 1006); | |
| 17 | +    define('ERROR_NO_COOKIES', 1007); | |
| 18 | +    define('ERROR_ALREADY_LOGGEDIN', 1008); | |
| 19 | +    define('ERROR_USER_NOT_ACTIVE', 1009); | |
| 20 | +    define('ERROR_USER_NO_EMAIL', 1010); | |
| 21 | +    define('ERROR_CACHE_NOT_PUBLISHED', 1011); | |
| 22 | +    define('ERROR_CACHE_LOCKED', 1012); | |
| 23 | 23 | |
| 24 | - define('ERROR_SEARCHPLUGIN_WAYPOINT_FORMAT', 1013); | |
| 25 | - define('ERROR_SEARCHPLUGIN_WAYPOINT_MANY', 1014); | |
| 26 | - define('ERROR_SEARCHPLUGIN_WAYPOINT_NOTFOUND', 1015); | |
| 24 | +    define('ERROR_SEARCHPLUGIN_WAYPOINT_FORMAT', 1013); | |
| 25 | +    define('ERROR_SEARCHPLUGIN_WAYPOINT_MANY', 1014); | |
| 26 | +    define('ERROR_SEARCHPLUGIN_WAYPOINT_NOTFOUND', 1015); | |
| 27 | 27 | |
| 28 | - define('ERROR_DB_COULD_NOT_RECONNECT', 1016); | |
| 29 | - define('ERROR_DB_NO_ROOT', 1017); | |
| 28 | +    define('ERROR_DB_COULD_NOT_RECONNECT', 1016); | |
| 29 | +    define('ERROR_DB_NO_ROOT', 1017); | |
| 30 | 30 | |
| 31 | - define('ERROR_USER_NOT_EXISTS', 1018); | |
| 32 | - define('ERROR_CACHE_NOT_EXISTS', 1019); | |
| 33 | - define('ERROR_CACHELOG_NOT_EXISTS', 1020); | |
| 34 | - define('ERROR_PICTURE_NOT_EXISTS', 1021); | |
| 31 | +    define('ERROR_USER_NOT_EXISTS', 1018); | |
| 32 | +    define('ERROR_CACHE_NOT_EXISTS', 1019); | |
| 33 | +    define('ERROR_CACHELOG_NOT_EXISTS', 1020); | |
| 34 | +    define('ERROR_PICTURE_NOT_EXISTS', 1021); | |
| 35 | 35 | |
| 36 | - define('ERROR_UPLOAD_ERR_NO_FILE', 1022); | |
| 37 | - define('ERROR_UPLOAD_ERR_SIZE', 1023); | |
| 38 | - define('ERROR_UPLOAD_ERR_TYPE', 1024); | |
| 39 | - define('ERROR_UPLOAD_UNKNOWN', 1025); | |
| 40 | - define('ERROR_UPLOAD_ERR_BAD_FORMAT', 1026); | |
| 36 | +    define('ERROR_UPLOAD_ERR_NO_FILE', 1022); | |
| 37 | +    define('ERROR_UPLOAD_ERR_SIZE', 1023); | |
| 38 | +    define('ERROR_UPLOAD_ERR_TYPE', 1024); | |
| 39 | +    define('ERROR_UPLOAD_UNKNOWN', 1025); | |
| 40 | +    define('ERROR_UPLOAD_ERR_BAD_FORMAT', 1026); | |
| @@ -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 | |
| @@ -15,8 +15,8 @@ | ||
| 15 | 15 | |
| 16 | 16 | ****************************************************************************/ | 
| 17 | 17 | |
| 18 | - $error_wrong_node = t('This log entry has been created on another Opencaching website. The cache can only be edited there.'); | |
| 19 | - $removed_message_end = '---'; | |
| 18 | +    $error_wrong_node = t('This log entry has been created on another Opencaching website. The cache can only be edited there.'); | |
| 19 | + $removed_message_end = '---'; | |
| 20 | 20 | |
| 21 | 21 | |
| 22 | 22 | function removed_log_subject($lang) | 
| @@ -14,8 +14,7 @@ | ||
| 14 | 14 | $tpl->caching = true; | 
| 15 | 15 | $tpl->cache_lifetime = 3600; | 
| 16 | 16 | |
| 17 | -$country = isset($_REQUEST['usercountry']) ? $_REQUEST['usercountry'] : | |
| 18 | - (isset($_REQUEST['country']) ? $_REQUEST['country'] : $opt['page']['main_country']); | |
| 17 | +$country = isset($_REQUEST['usercountry']) ? $_REQUEST['usercountry'] : (isset($_REQUEST['country']) ? $_REQUEST['country'] : $opt['page']['main_country']); | |
| 19 | 18 | |
| 20 | 19 |  if (!$tpl->is_cached()) { | 
| 21 | 20 | $newCaches = array(); | 
| @@ -67,7 +67,7 @@ discard block | ||
| 67 | 67 | $nFileNr = 0; | 
| 68 | 68 |      $rs = sql('SELECT `id`, `url` FROM `pictures` WHERE `local`=0'); | 
| 69 | 69 |      while ($r = sql_fetch_array($rs)) { | 
| 70 | - $nFileNr ++; | |
| 70 | + $nFileNr++; | |
| 71 | 71 |          $fileparts = mb_split('/', $r['url']); | 
| 72 | 72 | $filename = $fileparts[count($fileparts) - 1]; | 
| 73 | 73 | |
| @@ -237,7 +237,7 @@ discard block | ||
| 237 | 237 | exit; | 
| 238 | 238 | } | 
| 239 | 239 | |
| 240 | -        for ($i = 1; $i <= $filescount; $i ++) { | |
| 240 | +        for ($i = 1; $i <= $filescount; $i++) { | |
| 241 | 241 | echo "Download Paket: " . $i . ' von ' . $filescount . "\n"; | 
| 242 | 242 | |
| 243 | 243 | $fileurl = $opt['url_getsession']; | 
| @@ -411,11 +411,11 @@ discard block | ||
| 411 | 411 |                              if ($sSubElement != '') { | 
| 412 | 412 | // vorheriges element zuerst schlißen | 
| 413 | 413 | $sSubElement = ''; | 
| 414 | - $nRecursionLevel --; | |
| 414 | + $nRecursionLevel--; | |
| 415 | 415 | } | 
| 416 | 416 | |
| 417 | 417 | $sSubElement = mb_strtoupper($xmlReader->name); | 
| 418 | - $nRecursionLevel ++; | |
| 418 | + $nRecursionLevel++; | |
| 419 | 419 | |
| 420 | 420 | // attribute auslesen | 
| 421 | 421 |                              if ($xmlReader->moveToFirstAttribute()) { | 
| @@ -432,7 +432,7 @@ discard block | ||
| 432 | 432 |                          } else { | 
| 433 | 433 |                              if ($xmlReader->nodeType == XMLReader::END_ELEMENT) { | 
| 434 | 434 | $sSubElement = ''; | 
| 435 | - $nRecursionLevel --; | |
| 435 | + $nRecursionLevel--; | |
| 436 | 436 | } | 
| 437 | 437 | } | 
| 438 | 438 | } | 
| @@ -26,7 +26,7 @@ discard block | ||
| 26 | 26 | $year = substr($cache['date_created'], 0, 4); | 
| 27 | 27 |      if ($year >= 2005 && $year <= date('Y') && ($lat != 0 || $long != 0)) { | 
| 28 | 28 | $years[$year] = true; | 
| 29 | - $liste[$lat][$long]['caches'][$year] ++; | |
| 29 | + $liste[$lat][$long]['caches'][$year]++; | |
| 30 | 30 | } | 
| 31 | 31 | } | 
| 32 | 32 | mysql_free_result($rs); | 
| @@ -50,7 +50,7 @@ discard block | ||
| 50 | 50 | $year = substr($cache['date'], 0, 4); | 
| 51 | 51 |          if ($year >= 2005 && $year <= date('Y') && ($lat != 0 || $long != 0)) { | 
| 52 | 52 | $years[$year] = true; | 
| 53 | - $liste[$lat][$long]['logs'][$year] ++; | |
| 53 | + $liste[$lat][$long]['logs'][$year]++; | |
| 54 | 54 | } | 
| 55 | 55 | } | 
| 56 | 56 | mysql_free_result($rs); | 
| @@ -67,7 +67,7 @@ discard block | ||
| 67 | 67 |  while ($cache = sql_fetch_assoc($rs)) { | 
| 68 | 68 | $lat = floor($cache['latitude'] / $grid); | 
| 69 | 69 | $long = floor($cache['longitude'] / $grid); | 
| 70 | - $liste[$lat][$long]['caches']['all'] ++; | |
| 70 | + $liste[$lat][$long]['caches']['all']++; | |
| 71 | 71 | $liste[$lat][$long]['logs']['all'] += $cache['logs']; | 
| 72 | 72 | } | 
| 73 | 73 | mysql_free_result($rs); |