@@ -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); |
@@ -84,7 +84,7 @@ |
||
84 | 84 | return false; |
85 | 85 | } |
86 | 86 | |
87 | - for ($i = 0; $i < count($parts); $i ++) { |
|
87 | + for ($i = 0; $i < count($parts); $i++) { |
|
88 | 88 | if (($parts[$i] == '..') || ($parts[$i] == '.')) { |
89 | 89 | return false; |
90 | 90 | } |
@@ -27,7 +27,7 @@ |
||
27 | 27 | |
28 | 28 | // Sessions verwenden? |
29 | 29 | $opt['session'] = 1; |
30 | -$opt['zip'] = 'gzip'; // 0; zip; bzip2; gzip |
|
30 | +$opt['zip'] = 'gzip'; // 0; zip; bzip2; gzip |
|
31 | 31 | |
32 | 32 | // Gebietsauswahl nach Land |
33 | 33 | $opt['bycountry'] = 0; |
@@ -203,6 +203,9 @@ |
||
203 | 203 | return $str; |
204 | 204 | } |
205 | 205 | |
206 | +/** |
|
207 | + * @param string $str |
|
208 | + */ |
|
206 | 209 | function lf2crlf($str) |
207 | 210 | { |
208 | 211 | return str_replace("\r\r\n", "\r\n", str_replace("\n", "\r\n", $str)); |
@@ -35,6 +35,9 @@ discard block |
||
35 | 35 | $this->init(0, 0); |
36 | 36 | } |
37 | 37 | |
38 | + /** |
|
39 | + * @param boolean $request |
|
40 | + */ |
|
38 | 41 | private function initRequest($request) |
39 | 42 | { |
40 | 43 | if ($request) { |
@@ -44,6 +47,9 @@ discard block |
||
44 | 47 | return new RequestHttp(); |
45 | 48 | } |
46 | 49 | |
50 | + /** |
|
51 | + * @param boolean $translator |
|
52 | + */ |
|
47 | 53 | private function initTranslator($translator) |
48 | 54 | { |
49 | 55 | if ($translator) { |
@@ -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 |
@@ -18,7 +18,7 @@ |
||
18 | 18 | |
19 | 19 | // database names |
20 | 20 | $dbname = 'opencaching'; |
21 | -$tmpdbname = 'octmp'; // empty db with CREATE and DROP privileges |
|
21 | +$tmpdbname = 'octmp'; // empty db with CREATE and DROP privileges |
|
22 | 22 | |
23 | 23 | // common developer system settings |
24 | 24 | require 'settings-dev.inc.php'; |
@@ -277,7 +277,7 @@ |
||
277 | 277 | ) { |
278 | 278 | return 'https' . strstr($url, '://'); |
279 | 279 | } elseif (strtolower(substr($url, 0, strlen($opt['page']['absolute_https_url']))) |
280 | - == $opt['page']['absolute_https_url'] |
|
280 | + == $opt['page']['absolute_https_url'] |
|
281 | 281 | && !$opt['page']['https']['active'] |
282 | 282 | ) { |
283 | 283 | return 'http' . strstr($url, '://'); |
@@ -175,7 +175,7 @@ |
||
175 | 175 | } |
176 | 176 | $nLastGroup = $tpl_usercountries[$i]['group']; |
177 | 177 | |
178 | - echo '<option value="' . htmlspecialchars($tpl_usercountries[$i]['country'], ENT_COMPAT, 'UTF-8') . '"' . (($sUserCountry==$tpl_usercountries[$i]['country']) ? ' selected="selected"' : '') . '>' . htmlspecialchars($tpl_usercountries[$i]['name'], ENT_COMPAT, 'UTF-8') . '</option>'; |
|
178 | + echo '<option value="' . htmlspecialchars($tpl_usercountries[$i]['country'], ENT_COMPAT, 'UTF-8') . '"' . (($sUserCountry == $tpl_usercountries[$i]['country']) ? ' selected="selected"' : '') . '>' . htmlspecialchars($tpl_usercountries[$i]['name'], ENT_COMPAT, 'UTF-8') . '</option>'; |
|
179 | 179 | } |
180 | 180 | ?> |
181 | 181 | </select> |
@@ -145,10 +145,11 @@ discard block |
||
145 | 145 | <td><strong>{t}Language:{/t} </strong></td> |
146 | 146 | <td> |
147 | 147 | <?php |
148 | - foreach ($opt['template']['locales'] AS $k => $lang) |
|
149 | - if ($lang['status'] == OC_LOCALE_ACTIVE) |
|
148 | + foreach ($opt['template']['locales'] AS $k => $lang) { |
|
149 | + if ($lang['status'] == OC_LOCALE_ACTIVE) |
|
150 | 150 | echo '<a style="text-decoration: none;" href="index.php?locale=' . $k . '"><img src="' . $lang['flag'] . '" alt="' . $lang['name'] . '" title="' . $lang['name'] . '" width="24px" height="18px" /></a> '; |
151 | -?> |
|
151 | + } |
|
152 | + ?> |
|
152 | 153 | </td> |
153 | 154 | <td> <strong>{t}Country:{/t} </strong></td> |
154 | 155 | <td> |
@@ -205,11 +206,12 @@ discard block |
||
205 | 206 | <ul> |
206 | 207 | <?php |
207 | 208 | // $pageidx is -1 e.g. when calling newcache.php as logged-off-user (-> login.tpl.php) |
208 | - if ($pageidx >= 0) |
|
209 | - mnu_EchoMainMenu($menu[$pageidx]['siteid']); |
|
210 | - else |
|
211 | - mnu_EchoMainMenu(-1); |
|
212 | -?> |
|
209 | + if ($pageidx >= 0) { |
|
210 | + mnu_EchoMainMenu($menu[$pageidx]['siteid']); |
|
211 | + } else { |
|
212 | + mnu_EchoMainMenu(-1); |
|
213 | + } |
|
214 | + ?> |
|
213 | 215 | </ul> |
214 | 216 | </div> |
215 | 217 |