@@ -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); |
@@ -17,9 +17,9 @@ discard block |
||
| 17 | 17 | * $opt['locale'] |
| 18 | 18 | ***************************************************************************/ |
| 19 | 19 | |
| 20 | -define('OC_LOCALE_ACTIVE', 2); // enable language and show language button in header line |
|
| 21 | -define('OC_LOCALE_HIDDEN', 1); // enable language but hide language button in header line |
|
| 22 | -define('OC_LOCALE_DISABLED', 0); // disable language |
|
| 20 | +define('OC_LOCALE_ACTIVE', 2); // enable language and show language button in header line |
|
| 21 | +define('OC_LOCALE_HIDDEN', 1); // enable language but hide language button in header line |
|
| 22 | +define('OC_LOCALE_DISABLED', 0); // disable language |
|
| 23 | 23 | |
| 24 | 24 | $opt['template']['locales']['DE']['status'] = OC_LOCALE_ACTIVE; |
| 25 | 25 | $opt['template']['locales']['DE']['flag'] = 'images/flag/DE.png'; |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | $opt['locale']['DE']['page']['license'] = '<a rel="license" href="%1"><img alt="Creative Commons Lizenzvertrag" style="border-width:0" src="resource2/ocstyle/images/media/cc-by-nc-nd-small.png" /></a><div style="text-align:center; margin:8px 0 0 6px;">Die <a href="articles.php?page=impressum#datalicense">Inhalte</a> von {site} stehen unter der Creative-Commons-Lizenz <a rel="license" href="%1">BY-NC-ND 3.0 DE</a>.</div>'; |
| 132 | 132 | $opt['locale']['DE']['helpwiki'] = 'http://wiki.opencaching.de/index.php/'; |
| 133 | 133 | $opt['locale']['DE']['mostly_translated'] = true; |
| 134 | -$opt['locale']['DE']['what3words'] = true; // "beta" |
|
| 134 | +$opt['locale']['DE']['what3words'] = true; // "beta" |
|
| 135 | 135 | |
| 136 | 136 | $opt['locale']['IT']['format']['dateshort'] = '%d/%m/%y'; |
| 137 | 137 | $opt['locale']['IT']['format']['dm'] = '%d/%m'; |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | $opt['locale']['SV']['page']['subtitle1'] = 'Geocaching med Opencaching'; |
| 234 | 234 | $opt['locale']['SV']['page']['subtitle2'] = ''; |
| 235 | 235 | $opt['locale']['SV']['mostly_translated'] = false; |
| 236 | -$opt['locale']['SV']['what3words'] = true; // "beta" |
|
| 236 | +$opt['locale']['SV']['what3words'] = true; // "beta" |
|
| 237 | 237 | |
| 238 | 238 | $opt['locale']['NO']['format']['dateshort'] = '%d.%m.%y'; |
| 239 | 239 | $opt['locale']['NO']['format']['dm'] = '%d.%m.'; |
@@ -283,7 +283,7 @@ discard block |
||
| 283 | 283 | $opt['locale']['RU']['country'] = 'RU'; |
| 284 | 284 | $opt['locale']['RU']['primary_lang_of'] = ['RU']; |
| 285 | 285 | $opt['locale']['RU']['mostly_translated'] = false; |
| 286 | -$opt['locale']['RU']['what3words'] = true; // "beta" |
|
| 286 | +$opt['locale']['RU']['what3words'] = true; // "beta" |
|
| 287 | 287 | |
| 288 | 288 | $opt['locale']['DA']['format']['dateshort'] = '%d.%m.%y'; |
| 289 | 289 | $opt['locale']['DA']['format']['dm'] = '%d.%m.'; |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | $process = new Process($cmd, $this->rootPath, null, null, 9600); |
| 46 | - $process->run(function ($type, $buffer) { |
|
| 46 | + $process->run(function($type, $buffer) { |
|
| 47 | 47 | echo $buffer; |
| 48 | 48 | }); |
| 49 | 49 | |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | ] |
| 55 | 55 | ); |
| 56 | 56 | |
| 57 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) { |
|
| 57 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) { |
|
| 58 | 58 | $data = $event->getData(); |
| 59 | 59 | $form = $event->getForm(); |
| 60 | 60 | |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | 'DATA_LICENSE_URL' => $opt['page']['absolute_url'] . $opt['logic']['license']['terms'], |
| 34 | 34 | 'DEBUG' => ($opt['debug'] & DEBUG_DEVELOPER != 0), |
| 35 | 35 | 'DEBUG_PREVENT_SEMAPHORES' |
| 36 | - => !$opt['php']['semaphores'], # not available on old developer system |
|
| 36 | + => !$opt['php']['semaphores'], # not available on old developer system |
|
| 37 | 37 | 'DB_SERVER' => $opt['db']['servername'], |
| 38 | 38 | 'DB_NAME' => $opt['db']['placeholder']['db'], |
| 39 | 39 | 'DB_USERNAME' => $opt['db']['username'], |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | 'OC_NODE_ID' => $opt['logic']['node']['id'], |
| 55 | 55 | 'OC_COOKIE_NAME' => $opt['session']['cookiename'] . 'data', |
| 56 | 56 | 'OCDE_HTML_PURIFIER_SETTINGS' |
| 57 | - => $opt['html_purifier'], |
|
| 57 | + => $opt['html_purifier'], |
|
| 58 | 58 | 'GITHUB_ACCESS_TOKEN' => $opt['okapi']['github_access_token'], |
| 59 | 59 | ); |
| 60 | 60 | } |
@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | $str = ''; |
| 200 | 200 | |
| 201 | 201 | ftsearch_load_ignores(); |
| 202 | - for ($i = count($astr) - 1; $i >= 0; $i --) { |
|
| 202 | + for ($i = count($astr) - 1; $i >= 0; $i--) { |
|
| 203 | 203 | // ignore? |
| 204 | 204 | if (array_search(mb_strtolower($astr[$i]), $ftsearch_ignores) !== false) { |
| 205 | 205 | unset($astr[$i]); |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | |
| 255 | 255 | // doppelte chars ersetzen |
| 256 | 256 | $ordZ = ord('z'); |
| 257 | - for ($c = ord('a'); $c <= $ordZ; $c ++) { |
|
| 257 | + for ($c = ord('a'); $c <= $ordZ; $c++) { |
|
| 258 | 258 | $old_str = ''; |
| 259 | 259 | while ($old_str !== $str) { |
| 260 | 260 | $old_str = $str; |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | 'parent' => MNU_MAP |
| 81 | 81 | ]; |
| 82 | 82 | $menuitem[MNU_MAP]['subitems'][] = $menu_map; |
| 83 | - ++ $menu_map; |
|
| 83 | + ++$menu_map; |
|
| 84 | 84 | } |
| 85 | 85 | } |
| 86 | 86 | } |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | $rsSubmenu = sqlf("SELECT `id` FROM `sys_menu` WHERE `parent`=0 ORDER BY `parent` ASC, `position` ASC"); |
| 108 | 108 | while ($rSubmenu = sql_fetch_assoc($rsSubmenu)) { |
| 109 | 109 | $aMenu[MNU_ROOT]['subitems'][$nPos] = $rSubmenu['id']; |
| 110 | - $nPos ++; |
|
| 110 | + $nPos++; |
|
| 111 | 111 | } |
| 112 | 112 | sql_free_result($rsSubmenu); |
| 113 | 113 | fwrite($f, "\n"); |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | ); |
| 145 | 145 | while ($rSubmenu = sql_fetch_assoc($rsSubmenu)) { |
| 146 | 146 | $aMenu[$r['id']]['subitems'][$nPos] = $rSubmenu['id']; |
| 147 | - $nPos ++; |
|
| 147 | + $nPos++; |
|
| 148 | 148 | } |
| 149 | 149 | sql_free_result($rsSubmenu); |
| 150 | 150 | } |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | // TODO fix the following if statement, seems corrupted |
| 51 | 51 | if (strtolower( |
| 52 | 52 | substr( |
| 53 | - 'http' + strstr($_SERVER['REFERER'], '://'), |
|
| 53 | + 'http' +strstr($_SERVER['REFERER'], '://'), |
|
| 54 | 54 | 0, |
| 55 | 55 | strlen($opt['page']['absolute_http_url']) |
| 56 | 56 | ) |
@@ -464,9 +464,9 @@ |
||
| 464 | 464 | return false; |
| 465 | 465 | } else { |
| 466 | 466 | // restore picture file |
| 467 | - $this->setUrl($original_url); // set the url, so that we can |
|
| 467 | + $this->setUrl($original_url); // set the url, so that we can |
|
| 468 | 468 | $filename = $this->getFilename(); // .. retrieve the file path+name |
| 469 | - $this->setFilenames($filename); // now set url(s) from the new uuid |
|
| 469 | + $this->setFilenames($filename); // now set url(s) from the new uuid |
|
| 470 | 470 | try { |
| 471 | 471 | rename($this->deletedFilename($filename), $this->getFilename()); |
| 472 | 472 | } catch (Exception $e) { |
@@ -692,7 +692,7 @@ discard block |
||
| 692 | 692 | } |
| 693 | 693 | |
| 694 | 694 | /** |
| 695 | - * @return bool|string |
|
| 695 | + * @return string|false |
|
| 696 | 696 | */ |
| 697 | 697 | public function getPageLink() |
| 698 | 698 | { |
@@ -724,7 +724,7 @@ discard block |
||
| 724 | 724 | /** |
| 725 | 725 | * @param $tmpFile |
| 726 | 726 | * @param $longSideSize |
| 727 | - * @return bool |
|
| 727 | + * @return null|boolean |
|
| 728 | 728 | */ |
| 729 | 729 | public function rotate_and_shrink($tmpFile, $longSideSize) |
| 730 | 730 | { |