@@ -14,7 +14,7 @@ |
||
14 | 14 | |
15 | 15 | public $name = 'autoarchive'; |
16 | 16 | |
17 | - public $interval = 43200; // twice per day |
|
17 | + public $interval = 43200; // twice per day |
|
18 | 18 | |
19 | 19 | |
20 | 20 | public function run() |
@@ -27,7 +27,7 @@ |
||
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); |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | } |
139 | 139 | |
140 | 140 | //here we read all used information from the form if submitted, otherwise from DB |
141 | - $cache_name = trim(isset($_POST['name']) ? $_POST['name'] : $cache_record['name']); // Ocprop |
|
141 | + $cache_name = trim(isset($_POST['name']) ? $_POST['name'] : $cache_record['name']); // Ocprop |
|
142 | 142 | $cache_type = isset($_POST['type']) ? $_POST['type'] : $cache_record['type']; |
143 | 143 | if (!isset($_POST['size'])) { |
144 | 144 | if ($cache_type == 4 || $cache_type == 5) { |
@@ -152,15 +152,15 @@ discard block |
||
152 | 152 | $cache_hidden_day = isset($_POST['hidden_day']) ? $_POST['hidden_day'] : date( |
153 | 153 | 'd', |
154 | 154 | strtotime($cache_record['date_hidden']) |
155 | - ); // Ocprop |
|
155 | + ); // Ocprop |
|
156 | 156 | $cache_hidden_month = isset($_POST['hidden_month']) ? $_POST['hidden_month'] : date( |
157 | 157 | 'm', |
158 | 158 | strtotime($cache_record['date_hidden']) |
159 | - ); // Ocprop |
|
159 | + ); // Ocprop |
|
160 | 160 | $cache_hidden_year = isset($_POST['hidden_year']) ? $_POST['hidden_year'] : date( |
161 | 161 | 'Y', |
162 | 162 | strtotime($cache_record['date_hidden']) |
163 | - ); // Ocprop |
|
163 | + ); // Ocprop |
|
164 | 164 | |
165 | 165 | if (($cache_record['date_activate'] === null)) { |
166 | 166 | $cache_activate_day = isset($_POST['activate_day']) ? $_POST['activate_day'] : date('d'); |
@@ -186,11 +186,11 @@ discard block |
||
186 | 186 | ); |
187 | 187 | } |
188 | 188 | |
189 | - $cache_difficulty = isset($_POST['difficulty']) ? $_POST['difficulty'] : $cache_record['difficulty']; // Ocprop |
|
190 | - $cache_terrain = isset($_POST['terrain']) ? $_POST['terrain'] : $cache_record['terrain']; // Ocprop |
|
191 | - $cache_country = isset($_POST['country']) ? $_POST['country'] : $cache_record['country']; // Ocprop |
|
189 | + $cache_difficulty = isset($_POST['difficulty']) ? $_POST['difficulty'] : $cache_record['difficulty']; // Ocprop |
|
190 | + $cache_terrain = isset($_POST['terrain']) ? $_POST['terrain'] : $cache_record['terrain']; // Ocprop |
|
191 | + $cache_country = isset($_POST['country']) ? $_POST['country'] : $cache_record['country']; // Ocprop |
|
192 | 192 | $show_all_countries = isset($_POST['show_all_countries']) ? $_POST['show_all_countries'] : 0; |
193 | - $status = isset($_POST['status']) ? $_POST['status'] : $cache_record['status']; // Ocprop |
|
193 | + $status = isset($_POST['status']) ? $_POST['status'] : $cache_record['status']; // Ocprop |
|
194 | 194 | $status_old = $cache_record['status']; |
195 | 195 | $search_time = isset($_POST['search_time']) ? $_POST['search_time'] : $cache_record['search_time']; |
196 | 196 | $way_length = isset($_POST['way_length']) ? $_POST['way_length'] : $cache_record['way_length']; |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | |
251 | 251 | $log_pw = isset($_POST['log_pw']) ? mb_substr($_POST['log_pw'], 0, 20) : $cache_record['logpw']; |
252 | 252 | // fix #4356: gc waypoints are frequently copy&pasted with leading spaces |
253 | - $wp_gc = isset($_POST['wp_gc']) ? strtoupper(trim($_POST['wp_gc'])) : $cache_record['wp_gc']; // Ocprop |
|
253 | + $wp_gc = isset($_POST['wp_gc']) ? strtoupper(trim($_POST['wp_gc'])) : $cache_record['wp_gc']; // Ocprop |
|
254 | 254 | $showlists = isset($_POST['showlists']) ? 1 : $cache_record['show_cachelists'] + 0; |
255 | 255 | $protect_old_coords = isset($_POST['protect_old_coords']) ? 1 : $cache_record['protect_old_coords'] + 0; |
256 | 256 | |
@@ -262,12 +262,12 @@ discard block |
||
262 | 262 | |
263 | 263 | if (isset($_POST['latNS'])) { |
264 | 264 | //get coords from post-form |
265 | - $coords_latNS = $_POST['latNS']; // Ocprop |
|
266 | - $coords_lonEW = $_POST['lonEW']; // Ocprop |
|
267 | - $coords_lat_h = $_POST['lat_h']; // Ocprop |
|
268 | - $coords_lon_h = $_POST['lon_h']; // Ocprop |
|
269 | - $coords_lat_min = $_POST['lat_min']; // Ocprop |
|
270 | - $coords_lon_min = $_POST['lon_min']; // Ocprop |
|
265 | + $coords_latNS = $_POST['latNS']; // Ocprop |
|
266 | + $coords_lonEW = $_POST['lonEW']; // Ocprop |
|
267 | + $coords_lat_h = $_POST['lat_h']; // Ocprop |
|
268 | + $coords_lon_h = $_POST['lon_h']; // Ocprop |
|
269 | + $coords_lat_min = $_POST['lat_min']; // Ocprop |
|
270 | + $coords_lon_min = $_POST['lon_min']; // Ocprop |
|
271 | 271 | } else { |
272 | 272 | //get coords from DB |
273 | 273 | $coords_lon = $cache_record['longitude']; |
@@ -564,7 +564,7 @@ discard block |
||
564 | 564 | $logtype = 13; |
565 | 565 | break; |
566 | 566 | default: |
567 | - $logtype = 0; // ??? |
|
567 | + $logtype = 0; // ??? |
|
568 | 568 | } |
569 | 569 | if ($logtype > 0) { |
570 | 570 | sql( |
@@ -1051,7 +1051,7 @@ discard block |
||
1051 | 1051 | tpl_set_var('showlists_checked', $showlists ? 'checked="checked"' : ''); |
1052 | 1052 | tpl_set_var('protectcoords_checked', $protect_old_coords ? 'checked="checked"' : ''); |
1053 | 1053 | |
1054 | - tpl_set_var('reset', $reset); // obsolete |
|
1054 | + tpl_set_var('reset', $reset); // obsolete |
|
1055 | 1055 | tpl_set_var('submit', $submit); |
1056 | 1056 | } else { |
1057 | 1057 | //TODO: not the owner |
@@ -18,13 +18,13 @@ |
||
18 | 18 | * |
19 | 19 | ***************************************************************************/ |
20 | 20 | |
21 | -define('LOGIN_UNKNOWN_ERROR', -1); // unkown error occured |
|
22 | -define('LOGIN_OK', 0); // login succeeded |
|
23 | -define('LOGIN_BADUSERPW', 1); // bad username or password |
|
21 | +define('LOGIN_UNKNOWN_ERROR', -1); // unkown error occured |
|
22 | +define('LOGIN_OK', 0); // login succeeded |
|
23 | +define('LOGIN_BADUSERPW', 1); // bad username or password |
|
24 | 24 | define('LOGIN_TOOMUCHLOGINS', 2); // too many logins in short time |
25 | 25 | define('LOGIN_USERNOTACTIVE', 3); // the useraccount locked |
26 | 26 | define('LOGIN_EMPTY_USERPASSWORD', 4); // given username/password was empty |
27 | -define('LOGIN_LOGOUT_OK', 5); // logout was successfull |
|
27 | +define('LOGIN_LOGOUT_OK', 5); // logout was successfull |
|
28 | 28 | |
29 | 29 | // login times in seconds |
30 | 30 | define('LOGIN_TIME', 60 * 60); |
@@ -14,40 +14,40 @@ |
||
14 | 14 | * set template specific language variables |
15 | 15 | ****************************************************************************/ |
16 | 16 | |
17 | - $firstcache_note = t('If this is your first cache on %1, be sure to check out the <a href="articles.php?page=cacheinfo">description</a> of the individual fields.'); |
|
18 | - |
|
19 | - $submit = t('Submit cache'); |
|
20 | - $default_country = t('EN'); |
|
21 | - $default_lang = t('EN'); |
|
22 | - $show_all = t('Show all'); |
|
23 | - $default_NS = 'N'; |
|
24 | - $default_EW = 'E'; |
|
25 | - $date_time_format_message = ' ' . t('Format: DD-MM-YYYY'); |
|
26 | - |
|
27 | - $error_general = "<tr><td class='error' colspan='2'><b>" . t('Some errors occured, please check the marked fields.') . '</b></td></tr>'; |
|
28 | - $error_long_not_ok = '<span class="errormsg">' . t('Your chosen coordinated are invalid') . '</span>'; |
|
29 | - $error_lat_not_ok = $error_long_not_ok . '<br />'; |
|
30 | - $error_duplicate_coords = '<span class="errormsg">' . t('Another cache (<a href="viewcache.php?wp=%1">%1</a>) exists at these coords. Maybe you pressed "submit cache" twice. To publish a cache with identical coords, enter other coords first, then edit the listing and change coords.') . '</span>'; |
|
31 | - $time_not_ok_message = '<span class="errormsg">' . t('The entered time is invalid.') . '</span>'; |
|
32 | - $way_length_not_ok_message = '<span class="errormsg">' . t('The entered distance is invalid, Format: aa.aaa') . '</span>'; |
|
33 | - $date_not_ok_message = '<span class="errormsg">' . t('Invalid date, format:DD-MM-JJJJ') . '</span>'; |
|
34 | - $name_not_ok_message = ' <span class="errormsg">' . t('Cachename is invalid') . '</span>'; |
|
35 | - $tos_not_ok_message = '<br/><span class="errormsg">' . t('The cache can only be adopted if you agree our terms of use.') . '</span>'; |
|
36 | - $type_not_ok_message = ' <span class="errormsg">' . t('No cache-type is chosen.') . '</span>'; |
|
37 | - $size_not_ok_message = ' <span class="errormsg">' . t('No cache-size is chosen.') . '</span>'; |
|
38 | - $diff_not_ok_message = ' <span class="errormsg">' . t('Choose both valuations!') . '</span>'; |
|
39 | - $sizemismatch_message = ' <span class="errormsg">' . t('For virtual and webcam caches, the cache size has to be -no container-!') . '</span>'; |
|
40 | - $safari_not_allowed_message = '<span class="errormsg">' . t('Only virtual caches can be safari caches.') . '</span>'; |
|
41 | - $bad_wpgc_message = '<span class="errormsg">' . t('GC waypoint is invalid, must be GCxxxxx') . '</span>'; |
|
42 | - |
|
43 | - $cache_submitted = t('Your cache is successfully added to the database. You will be redirected to the cache page, now.'); |
|
44 | - |
|
45 | - $sel_message = t('Select'); |
|
46 | - |
|
47 | - $cache_attrib_js = "new Array({id}, {selected}, '{img_undef}', '{img_large}')"; |
|
48 | - $cache_attrib_pic = '<img id="attr{attrib_id}" src="{attrib_pic}" border="0" onmousedown="toggleAttr({attrib_id})" onmouseover="Tip(\'{html_desc}\', TITLE, \'{name}\', TITLEBGCOLOR, \'{color}\', TITLEFONTCOLOR, \'#000000\', BGCOLOR, \'#FFFFFF\', BORDERCOLOR, \'{color}\', CLICKCLOSE, true, DELAY, 0, FADEIN, false, FADEOUT, false, FONTCOLOR, \'#000080\', WIDTH, 500)" onmouseout="UnTip()" /> '; |
|
49 | - |
|
50 | - $cache_attrib_group = |
|
17 | + $firstcache_note = t('If this is your first cache on %1, be sure to check out the <a href="articles.php?page=cacheinfo">description</a> of the individual fields.'); |
|
18 | + |
|
19 | + $submit = t('Submit cache'); |
|
20 | + $default_country = t('EN'); |
|
21 | + $default_lang = t('EN'); |
|
22 | + $show_all = t('Show all'); |
|
23 | + $default_NS = 'N'; |
|
24 | + $default_EW = 'E'; |
|
25 | + $date_time_format_message = ' ' . t('Format: DD-MM-YYYY'); |
|
26 | + |
|
27 | + $error_general = "<tr><td class='error' colspan='2'><b>" . t('Some errors occured, please check the marked fields.') . '</b></td></tr>'; |
|
28 | + $error_long_not_ok = '<span class="errormsg">' . t('Your chosen coordinated are invalid') . '</span>'; |
|
29 | + $error_lat_not_ok = $error_long_not_ok . '<br />'; |
|
30 | + $error_duplicate_coords = '<span class="errormsg">' . t('Another cache (<a href="viewcache.php?wp=%1">%1</a>) exists at these coords. Maybe you pressed "submit cache" twice. To publish a cache with identical coords, enter other coords first, then edit the listing and change coords.') . '</span>'; |
|
31 | + $time_not_ok_message = '<span class="errormsg">' . t('The entered time is invalid.') . '</span>'; |
|
32 | + $way_length_not_ok_message = '<span class="errormsg">' . t('The entered distance is invalid, Format: aa.aaa') . '</span>'; |
|
33 | + $date_not_ok_message = '<span class="errormsg">' . t('Invalid date, format:DD-MM-JJJJ') . '</span>'; |
|
34 | + $name_not_ok_message = ' <span class="errormsg">' . t('Cachename is invalid') . '</span>'; |
|
35 | + $tos_not_ok_message = '<br/><span class="errormsg">' . t('The cache can only be adopted if you agree our terms of use.') . '</span>'; |
|
36 | + $type_not_ok_message = ' <span class="errormsg">' . t('No cache-type is chosen.') . '</span>'; |
|
37 | + $size_not_ok_message = ' <span class="errormsg">' . t('No cache-size is chosen.') . '</span>'; |
|
38 | + $diff_not_ok_message = ' <span class="errormsg">' . t('Choose both valuations!') . '</span>'; |
|
39 | + $sizemismatch_message = ' <span class="errormsg">' . t('For virtual and webcam caches, the cache size has to be -no container-!') . '</span>'; |
|
40 | + $safari_not_allowed_message = '<span class="errormsg">' . t('Only virtual caches can be safari caches.') . '</span>'; |
|
41 | + $bad_wpgc_message = '<span class="errormsg">' . t('GC waypoint is invalid, must be GCxxxxx') . '</span>'; |
|
42 | + |
|
43 | + $cache_submitted = t('Your cache is successfully added to the database. You will be redirected to the cache page, now.'); |
|
44 | + |
|
45 | + $sel_message = t('Select'); |
|
46 | + |
|
47 | + $cache_attrib_js = "new Array({id}, {selected}, '{img_undef}', '{img_large}')"; |
|
48 | + $cache_attrib_pic = '<img id="attr{attrib_id}" src="{attrib_pic}" border="0" onmousedown="toggleAttr({attrib_id})" onmouseover="Tip(\'{html_desc}\', TITLE, \'{name}\', TITLEBGCOLOR, \'{color}\', TITLEFONTCOLOR, \'#000000\', BGCOLOR, \'#FFFFFF\', BORDERCOLOR, \'{color}\', CLICKCLOSE, true, DELAY, 0, FADEIN, false, FADEOUT, false, FONTCOLOR, \'#000080\', WIDTH, 500)" onmouseout="UnTip()" /> '; |
|
49 | + |
|
50 | + $cache_attrib_group = |
|
51 | 51 | '<div class="attribgroup"><table cellspacing="0" style="display:inline;border-spacing:0px;"> |
52 | 52 | <tr><td bgcolor="{color}" style="line-height:9px;padding-top:2px;margin:0 0 0 0;border-left:1px solid gray;border-right:1px solid gray;border-top:1px solid gray;"><font size="1">{name}</font></td></tr> |
53 | 53 | <tr><td bgcolor="#F8F8F8" style="margin:0 0 0 0;border-left:1px solid gray;border-right:1px solid gray;border-bottom:1px solid gray;">{attribs}</td></tr> |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | } |
129 | 129 | } |
130 | 130 | |
131 | -$queryid += 0; // safety measure: force $queryid to be numeric |
|
131 | +$queryid += 0; // safety measure: force $queryid to be numeric |
|
132 | 132 | |
133 | 133 | |
134 | 134 | //========================================================= |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | if (sql_num_rows($query_rs) == 0) { |
150 | 150 | // can happen if logged out after query was created (fix for RT #3915) |
151 | 151 | $queryid = 0; |
152 | - goto newquery; // goto needs PHP 5.3 |
|
152 | + goto newquery; // goto needs PHP 5.3 |
|
153 | 153 | /* |
154 | 154 | $tpl->error($error_query_not_found); |
155 | 155 | */ |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | } |
186 | 186 | |
187 | 187 | // get findername from finderid |
188 | - $options['finderid'] = isset($options['finderid']) ? $options['finderid'] + 0 : 0; // Ocprop |
|
188 | + $options['finderid'] = isset($options['finderid']) ? $options['finderid'] + 0 : 0; // Ocprop |
|
189 | 189 | if (isset($options['finder']) && $options['finderid'] > 0) { |
190 | 190 | $rs_name = sql("SELECT `username` FROM `user` WHERE `user_id`='&1'", $options['finderid']); |
191 | 191 | if (sql_num_rows($rs_name) == 1) { |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | } |
198 | 198 | |
199 | 199 | // get ownername from ownerid |
200 | - $options['ownerid'] = isset($options['ownerid']) ? $options['ownerid'] + 0 : 0; // Ocprop |
|
200 | + $options['ownerid'] = isset($options['ownerid']) ? $options['ownerid'] + 0 : 0; // Ocprop |
|
201 | 201 | if (isset($options['owner']) && $options['ownerid'] > 0) { |
202 | 202 | $rs_name = sql("SELECT `username` FROM `user` WHERE `user_id`='&1'", $options['ownerid']); |
203 | 203 | if (sql_num_rows($rs_name) == 1) { |
@@ -226,10 +226,10 @@ discard block |
||
226 | 226 | } |
227 | 227 | |
228 | 228 | // get the search options parameters and store them in the queries table (to view "the next page") |
229 | - $options['f_userowner'] = isset($_REQUEST['f_userowner']) ? $_REQUEST['f_userowner'] : 0; // Ocprop |
|
230 | - $options['f_userfound'] = isset($_REQUEST['f_userfound']) ? $_REQUEST['f_userfound'] : 0; // Ocprop |
|
229 | + $options['f_userowner'] = isset($_REQUEST['f_userowner']) ? $_REQUEST['f_userowner'] : 0; // Ocprop |
|
230 | + $options['f_userfound'] = isset($_REQUEST['f_userfound']) ? $_REQUEST['f_userfound'] : 0; // Ocprop |
|
231 | 231 | $options['f_disabled'] = isset($_REQUEST['f_disabled']) ? $_REQUEST['f_disabled'] : 0; |
232 | - $options['f_inactive'] = isset($_REQUEST['f_inactive']) ? $_REQUEST['f_inactive'] : 1; // Ocprop |
|
232 | + $options['f_inactive'] = isset($_REQUEST['f_inactive']) ? $_REQUEST['f_inactive'] : 1; // Ocprop |
|
233 | 233 | // f_inactive formerly was used for both, archived and disabled caches. |
234 | 234 | // After adding the separate f_disabled option, it is used only for archived |
235 | 235 | // caches, but keeps its name for compatibility with existing stored or |
@@ -237,9 +237,9 @@ discard block |
||
237 | 237 | $options['f_ignored'] = isset($_REQUEST['f_ignored']) ? $_REQUEST['f_ignored'] : 1; |
238 | 238 | $options['f_otherPlatforms'] = isset($_REQUEST['f_otherPlatforms']) ? $_REQUEST['f_otherPlatforms'] : 0; |
239 | 239 | $options['f_geokrets'] = isset($_REQUEST['f_geokrets']) ? $_REQUEST['f_geokrets'] : 0; |
240 | - $options['expert'] = isset($_REQUEST['expert']) ? $_REQUEST['expert'] : 0; // Ocprop: 0 |
|
240 | + $options['expert'] = isset($_REQUEST['expert']) ? $_REQUEST['expert'] : 0; // Ocprop: 0 |
|
241 | 241 | $options['showresult'] = isset($_REQUEST['showresult']) ? $_REQUEST['showresult'] : 0; |
242 | - $options['output'] = isset($_REQUEST['output']) ? $_REQUEST['output'] : 'HTML'; // Ocprop: HTML |
|
242 | + $options['output'] = isset($_REQUEST['output']) ? $_REQUEST['output'] : 'HTML'; // Ocprop: HTML |
|
243 | 243 | $options['bbox'] = isset($_REQUEST['bbox']) ? $_REQUEST['bbox'] : false; |
244 | 244 | |
245 | 245 | if (isset($_REQUEST['cache_attribs'])) { |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | |
298 | 298 | $options['finderid'] = isset($_REQUEST['finderid']) ? $_REQUEST['finderid'] : 0; |
299 | 299 | $options['finder'] = isset($_REQUEST['finder']) ? stripslashes($_REQUEST['finder']) : ''; |
300 | - $options['logtype'] = isset($_REQUEST['logtype']) ? $_REQUEST['logtype'] : '1,7'; // Ocprop |
|
300 | + $options['logtype'] = isset($_REQUEST['logtype']) ? $_REQUEST['logtype'] : '1,7'; // Ocprop |
|
301 | 301 | } elseif (isset($_REQUEST['searchbyortplz'])) { |
302 | 302 | $onlydigits = is_numeric($_REQUEST['ortplz']); |
303 | 303 | if ($onlydigits == true) { |
@@ -363,7 +363,7 @@ discard block |
||
363 | 363 | if (!$list->allowView($password)) { |
364 | 364 | $tpl->redirect('cachelists.php'); |
365 | 365 | } |
366 | - $options['cachelist'] = cachelist::getListById($options['listid']); // null for invalid ID |
|
366 | + $options['cachelist'] = cachelist::getListById($options['listid']); // null for invalid ID |
|
367 | 367 | $options['cachelist_pw'] = $password; |
368 | 368 | } elseif (isset($_REQUEST['searchall'])) { |
369 | 369 | if (!$login->logged_in() && |
@@ -1243,7 +1243,7 @@ discard block |
||
1243 | 1243 | // X6. load output module and output-dependent options |
1244 | 1244 | //================================================================= |
1245 | 1245 | |
1246 | - $output_module = mb_strtolower($options['output']); // Ocprop: HTML, gpx |
|
1246 | + $output_module = mb_strtolower($options['output']); // Ocprop: HTML, gpx |
|
1247 | 1247 | |
1248 | 1248 | $map2_bounds = ($output_module == 'map2bounds'); |
1249 | 1249 | if ($map2_bounds) { |
@@ -1785,9 +1785,9 @@ discard block |
||
1785 | 1785 | } |
1786 | 1786 | $tpl->assign('ortplz', $ortplz); |
1787 | 1787 | if ($options['searchtype'] == 'byplz') { |
1788 | - $dByOrtPlzChecked = ($options['searchtype'] == 'byplz'); // Ocprop |
|
1788 | + $dByOrtPlzChecked = ($options['searchtype'] == 'byplz'); // Ocprop |
|
1789 | 1789 | } elseif ($options['searchtype'] == 'byort') { |
1790 | - $dByOrtPlzChecked = ($options['searchtype'] == 'byort'); // Ocprop |
|
1790 | + $dByOrtPlzChecked = ($options['searchtype'] == 'byort'); // Ocprop |
|
1791 | 1791 | } else { |
1792 | 1792 | $dByOrtPlzChecked = false; |
1793 | 1793 | } |
@@ -2278,7 +2278,7 @@ discard block |
||
2278 | 2278 | |
2279 | 2279 | function outputUniidSelectionForm($uniSql, $options) |
2280 | 2280 | { |
2281 | - global $tpl; // settings |
|
2281 | + global $tpl; // settings |
|
2282 | 2282 | global $locline, $secondlocationname; |
2283 | 2283 | |
2284 | 2284 | $urlparamString = prepareLocSelectionForm($options); |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | # [3] http://code.google.com/p/opencaching-api/issues/detail?id=132 |
17 | 17 | |
18 | 18 | $opt['rootpath'] = $GLOBALS['rootpath']; |
19 | - require $opt['rootpath'] . 'lib2/const.inc.php'; # (into the *local* scope!) |
|
19 | + require $opt['rootpath'] . 'lib2/const.inc.php'; # (into the *local* scope!) |
|
20 | 20 | require $opt['rootpath'] . 'config2/settings-dist.inc.php'; |
21 | 21 | require $opt['rootpath'] . 'config2/settings.inc.php'; |
22 | 22 | |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | |
25 | 25 | # Settings which ARE NOT present in settings.inc.php: |
26 | 26 | |
27 | - 'OC_BRANCH' => 'oc.de', # Tell OKAPI to work in "OCDE mode". |
|
27 | + 'OC_BRANCH' => 'oc.de', # Tell OKAPI to work in "OCDE mode". |
|
28 | 28 | |
29 | 29 | # Settings which ARE present in settings.inc.php: |
30 | 30 | |
@@ -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'], |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | 'IMAGES_DIR' => rtrim($opt['logic']['pictures']['dir'], '/'), |
50 | 50 | 'IMAGES_URL' => rtrim($opt['logic']['pictures']['url'], '/') . '/', |
51 | 51 | 'IMAGE_MAX_UPLOAD_SIZE' => 2 * $opt['logic']['pictures']['maxsize'], |
52 | - 'IMAGE_MAX_PIXEL_COUNT' => 786432, # 1024 x 768; TODO: move PICTURE_MAX_LONG_SIDE to settings |
|
52 | + 'IMAGE_MAX_PIXEL_COUNT' => 786432, # 1024 x 768; TODO: move PICTURE_MAX_LONG_SIDE to settings |
|
53 | 53 | 'SITE_LOGO' => $opt['page']['absolute_url'] . 'resource2/' . $opt['template']['default']['style'] . '/images/oclogo/oc_logo_alpha3.png', |
54 | 54 | 'OC_NODE_ID' => $opt['logic']['node']['id'], |
55 | 55 | 'OC_COOKIE_NAME' => $opt['session']['cookiename'] . 'data', |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | require_once $stylepath . '/' . $tplname . '.inc.php'; |
37 | 37 | |
38 | 38 | //set template replacements |
39 | - tpl_set_var('reset', $reset); // obsolete |
|
39 | + tpl_set_var('reset', $reset); // obsolete |
|
40 | 40 | tpl_set_var('submit', $submit); |
41 | 41 | tpl_set_var('general_message', ''); |
42 | 42 | tpl_set_var('hidden_since_message', ''); |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | tpl_set_var('diff_message', ''); |
54 | 54 | tpl_set_var('safari_message', ''); |
55 | 55 | |
56 | - $sel_type = isset($_POST['type']) ? $_POST['type'] : 0; // Ocprop |
|
56 | + $sel_type = isset($_POST['type']) ? $_POST['type'] : 0; // Ocprop |
|
57 | 57 | if (!isset($_POST['size'])) { |
58 | 58 | if ($sel_type == 4 || $sel_type == 5) { |
59 | 59 | $sel_size = 7; |
@@ -61,15 +61,15 @@ discard block |
||
61 | 61 | $sel_size = -1; |
62 | 62 | } |
63 | 63 | } else { |
64 | - $sel_size = isset($_POST['size']) ? $_POST['size'] : -1; // Ocprop |
|
64 | + $sel_size = isset($_POST['size']) ? $_POST['size'] : -1; // Ocprop |
|
65 | 65 | } |
66 | 66 | $sel_lang = isset($_POST['desc_lang']) ? $_POST['desc_lang'] : $default_lang; |
67 | - $sel_country = isset($_POST['country']) ? $_POST['country'] : getUserCountry(); // Ocprop |
|
67 | + $sel_country = isset($_POST['country']) ? $_POST['country'] : getUserCountry(); // Ocprop |
|
68 | 68 | $show_all_countries = isset($_POST['show_all_countries']) ? $_POST['show_all_countries'] : 0; |
69 | 69 | $show_all_langs = isset($_POST['show_all_langs']) ? $_POST['show_all_langs'] : 0; |
70 | 70 | |
71 | 71 | //coords |
72 | - $lonEW = isset($_POST['lonEW']) ? $_POST['lonEW'] : $default_EW; // Ocprop |
|
72 | + $lonEW = isset($_POST['lonEW']) ? $_POST['lonEW'] : $default_EW; // Ocprop |
|
73 | 73 | if ($lonEW == 'E') { |
74 | 74 | tpl_set_var('lonEsel', ' selected="selected"'); |
75 | 75 | tpl_set_var('lonWsel', ''); |
@@ -77,13 +77,13 @@ discard block |
||
77 | 77 | tpl_set_var('lonEsel', ''); |
78 | 78 | tpl_set_var('lonWsel', ' selected="selected"'); |
79 | 79 | } |
80 | - $lon_h = isset($_POST['lon_h']) ? $_POST['lon_h'] : '0'; // Ocprop |
|
80 | + $lon_h = isset($_POST['lon_h']) ? $_POST['lon_h'] : '0'; // Ocprop |
|
81 | 81 | tpl_set_var('lon_h', htmlspecialchars($lon_h, ENT_COMPAT, 'UTF-8')); |
82 | 82 | |
83 | - $lon_min = isset($_POST['lon_min']) ? $_POST['lon_min'] : '00.000'; // Ocprop |
|
83 | + $lon_min = isset($_POST['lon_min']) ? $_POST['lon_min'] : '00.000'; // Ocprop |
|
84 | 84 | tpl_set_var('lon_min', htmlspecialchars($lon_min, ENT_COMPAT, 'UTF-8')); |
85 | 85 | |
86 | - $latNS = isset($_POST['latNS']) ? $_POST['latNS'] : $default_NS; // Ocprop |
|
86 | + $latNS = isset($_POST['latNS']) ? $_POST['latNS'] : $default_NS; // Ocprop |
|
87 | 87 | if ($latNS == 'N') { |
88 | 88 | tpl_set_var('latNsel', ' selected="selected"'); |
89 | 89 | tpl_set_var('latSsel', ''); |
@@ -91,14 +91,14 @@ discard block |
||
91 | 91 | tpl_set_var('latNsel', ''); |
92 | 92 | tpl_set_var('latSsel', ' selected="selected"'); |
93 | 93 | } |
94 | - $lat_h = isset($_POST['lat_h']) ? $_POST['lat_h'] : '0'; // Ocprop |
|
94 | + $lat_h = isset($_POST['lat_h']) ? $_POST['lat_h'] : '0'; // Ocprop |
|
95 | 95 | tpl_set_var('lat_h', htmlspecialchars($lat_h, ENT_COMPAT, 'UTF-8')); |
96 | 96 | |
97 | - $lat_min = isset($_POST['lat_min']) ? $_POST['lat_min'] : '00.000'; // Ocprop |
|
97 | + $lat_min = isset($_POST['lat_min']) ? $_POST['lat_min'] : '00.000'; // Ocprop |
|
98 | 98 | tpl_set_var('lat_min', htmlspecialchars($lat_min, ENT_COMPAT, 'UTF-8')); |
99 | 99 | |
100 | 100 | //name |
101 | - $name = isset($_POST['name']) ? trim($_POST['name']) : ''; // Ocprop |
|
101 | + $name = isset($_POST['name']) ? trim($_POST['name']) : ''; // Ocprop |
|
102 | 102 | tpl_set_var('name', htmlspecialchars($name, ENT_COMPAT, 'UTF-8')); |
103 | 103 | |
104 | 104 | //shortdesc |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | |
131 | 131 | // fuer alte Versionen von OCProp |
132 | 132 | if (isset($_POST['submit']) && !isset($_POST['version2'])) { |
133 | - $descMode = (isset($_POST['desc_html']) && ($_POST['desc_html'] == 1)) ? 2 : 1; // Ocprop |
|
133 | + $descMode = (isset($_POST['desc_html']) && ($_POST['desc_html'] == 1)) ? 2 : 1; // Ocprop |
|
134 | 134 | $_POST['submitform'] = $_POST['submit']; |
135 | 135 | |
136 | 136 | $short_desc = iconv('ISO-8859-1', 'UTF-8', $short_desc); |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | } |
197 | 197 | |
198 | 198 | //tos |
199 | - $tos = isset($_POST['TOS']) ? 1 : 0; // Ocprop |
|
199 | + $tos = isset($_POST['TOS']) ? 1 : 0; // Ocprop |
|
200 | 200 | if ($tos == 1) { |
201 | 201 | tpl_set_var('toschecked', ' checked="checked"'); |
202 | 202 | } else { |
@@ -204,9 +204,9 @@ discard block |
||
204 | 204 | } |
205 | 205 | |
206 | 206 | //hidden_since |
207 | - $hidden_day = isset($_POST['hidden_day']) ? $_POST['hidden_day'] : date('d'); // Ocprop |
|
208 | - $hidden_month = isset($_POST['hidden_month']) ? $_POST['hidden_month'] : date('m'); // Ocprop |
|
209 | - $hidden_year = isset($_POST['hidden_year']) ? $_POST['hidden_year'] : date('Y'); // Ocprop |
|
207 | + $hidden_day = isset($_POST['hidden_day']) ? $_POST['hidden_day'] : date('d'); // Ocprop |
|
208 | + $hidden_month = isset($_POST['hidden_month']) ? $_POST['hidden_month'] : date('m'); // Ocprop |
|
209 | + $hidden_year = isset($_POST['hidden_year']) ? $_POST['hidden_year'] : date('Y'); // Ocprop |
|
210 | 210 | tpl_set_var('hidden_day', htmlspecialchars($hidden_day, ENT_COMPAT, 'UTF-8')); |
211 | 211 | tpl_set_var('hidden_month', htmlspecialchars($hidden_month, ENT_COMPAT, 'UTF-8')); |
212 | 212 | tpl_set_var('hidden_year', htmlspecialchars($hidden_year, ENT_COMPAT, 'UTF-8')); |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | tpl_set_var('publish_later_checked', ''); |
224 | 224 | tpl_set_var('publish_notnow_checked', ''); |
225 | 225 | |
226 | - $publish = isset($_POST['publish']) ? $_POST['publish'] : 'now2'; // Ocprop |
|
226 | + $publish = isset($_POST['publish']) ? $_POST['publish'] : 'now2'; // Ocprop |
|
227 | 227 | if ($publish == 'now2') { |
228 | 228 | tpl_set_var('publish_now_checked', 'checked'); |
229 | 229 | } elseif ($publish == 'later') { |
@@ -253,11 +253,11 @@ discard block |
||
253 | 253 | |
254 | 254 | // gc- and nc-waypoints |
255 | 255 | // fix #4356: gc waypoints are frequently copy&pasted with leading spaces |
256 | - $wp_gc = isset($_POST['wp_gc']) ? strtoupper(trim($_POST['wp_gc'])) : ''; // Ocprop |
|
256 | + $wp_gc = isset($_POST['wp_gc']) ? strtoupper(trim($_POST['wp_gc'])) : ''; // Ocprop |
|
257 | 257 | tpl_set_var('wp_gc', htmlspecialchars($wp_gc, ENT_COMPAT, 'UTF-8')); |
258 | 258 | |
259 | 259 | //difficulty |
260 | - $difficulty = isset($_POST['difficulty']) ? $_POST['difficulty'] : 1; // Ocprop |
|
260 | + $difficulty = isset($_POST['difficulty']) ? $_POST['difficulty'] : 1; // Ocprop |
|
261 | 261 | $difficulty_options = '<option value="1">' . $sel_message . '</option>'; |
262 | 262 | for ($i = 2; $i <= 10; $i++) { |
263 | 263 | if ($difficulty == $i) { |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | tpl_set_var('difficulty_options', $difficulty_options); |
271 | 271 | |
272 | 272 | //terrain |
273 | - $terrain = isset($_POST['terrain']) ? $_POST['terrain'] : 1; // Ocprop |
|
273 | + $terrain = isset($_POST['terrain']) ? $_POST['terrain'] : 1; // Ocprop |
|
274 | 274 | $terrain_options = '<option value="1">' . $sel_message . '</option>'; |
275 | 275 | for ($i = 2; $i <= 10; $i++) { |
276 | 276 | if ($terrain == $i) { |
@@ -367,7 +367,7 @@ discard block |
||
367 | 367 | $rs = sql('SELECT * FROM `caches` WHERE `cache_id` IN ' . $cachelist); |
368 | 368 | while ($r = sql_fetch_assoc($rs)) { |
369 | 369 | $nextcd[$r['wp_oc']] = $r; |
370 | - $user_id = $r['user_id']; // is used later for logs |
|
370 | + $user_id = $r['user_id']; // is used later for logs |
|
371 | 371 | } |
372 | 372 | sql_free_result($rs); |
373 | 373 | |
@@ -467,7 +467,7 @@ discard block |
||
467 | 467 | "SELECT * FROM `caches_attributes_modified` |
468 | 468 | WHERE `cache_id` IN " . $cachelist . " /* OConly attrib is shown, but not restorable */ |
469 | 469 | ORDER BY `date_modified` ASC" |
470 | - ); // order doesn't matter as long it is date only |
|
470 | + ); // order doesn't matter as long it is date only |
|
471 | 471 | while ($r = sql_fetch_assoc($rs)) { |
472 | 472 | append_data( |
473 | 473 | $data, |
@@ -623,7 +623,7 @@ discard block |
||
623 | 623 | 'SELECT *, ' . $piccacheid . "AS `cache_id` FROM `pictures_modified` |
624 | 624 | WHERE " . $piccacheid . ' IN ' . $cachelist . " |
625 | 625 | ORDER BY `date_modified` ASC" |
626 | - ); // order is relevant for the case of restore-reverts |
|
626 | + ); // order is relevant for the case of restore-reverts |
|
627 | 627 | while ($r = sql_fetch_assoc($rs)) { |
628 | 628 | $r['date_modified'] = substr($r['date_modified'], 0, 10); |
629 | 629 | switch ($r['operation']) { |
@@ -727,7 +727,7 @@ discard block |
||
727 | 727 | { |
728 | 728 | global $opt, $login; |
729 | 729 | |
730 | - sql("SET @restoredby='&1'", $login->userid); // is evaluated by trigger functions |
|
730 | + sql("SET @restoredby='&1'", $login->userid); // is evaluated by trigger functions |
|
731 | 731 | sql_slave("SET @restoredby='&1'", $login->userid); |
732 | 732 | |
733 | 733 | $restored = []; |
@@ -1019,7 +1019,7 @@ discard block |
||
1019 | 1019 | // id, uuid, date_created and last_modified are set automatically; |
1020 | 1020 | // picture will be updated automatically on picture-restore |
1021 | 1021 | $log = new cachelog(); |
1022 | - $log->setNode($r['node']); // cachelog class currently does not initialize node field |
|
1022 | + $log->setNode($r['node']); // cachelog class currently does not initialize node field |
|
1023 | 1023 | $log->setCacheId($r['cache_id']); |
1024 | 1024 | $log->setUserId($r['user_id']); |
1025 | 1025 | $log->setType($r['type'], true); |
@@ -1071,7 +1071,7 @@ discard block |
||
1071 | 1071 | } // not already processed |
1072 | 1072 | |
1073 | 1073 | if ($error != '') { |
1074 | - $restored[$wp]['internal error - could not $error log ' + $r['id'] + '/' + $logid]; |
|
1074 | + $restored[$wp]['internal error - could not $error log ' +$r['id'] + '/' +$logid]; |
|
1075 | 1075 | } |
1076 | 1076 | if ($logs_restored) { |
1077 | 1077 | $restored[$wp]['logs'] = true; |
@@ -1203,7 +1203,7 @@ discard block |
||
1203 | 1203 | } // not already processed |
1204 | 1204 | |
1205 | 1205 | if ($error != '') { |
1206 | - $restored[$wp]['internal error - could not $error picture ' . $r['id'] + '/' + $picid] = true; |
|
1206 | + $restored[$wp]['internal error - could not $error picture ' . $r['id'] + '/' +$picid] = true; |
|
1207 | 1207 | } |
1208 | 1208 | if ($pics_restored) { |
1209 | 1209 | $restored[$wp]['pictures'] = true; |