@@ -29,12 +29,12 @@ |
||
29 | 29 | } |
30 | 30 | |
31 | 31 | switch ($action) { |
32 | - case 'addignore': |
|
33 | - sql("INSERT IGNORE INTO `cache_ignore` (`cache_id`, `user_id`) VALUES ('&1', '&2')", $cache_id, $login->userid); |
|
34 | - break; |
|
35 | - case 'removeignore': |
|
36 | - sql("DELETE FROM `cache_ignore` WHERE `cache_id`='&1' AND `user_id`='&2'", $cache_id, $login->userid); |
|
37 | - break; |
|
32 | + case 'addignore': |
|
33 | + sql("INSERT IGNORE INTO `cache_ignore` (`cache_id`, `user_id`) VALUES ('&1', '&2')", $cache_id, $login->userid); |
|
34 | + break; |
|
35 | + case 'removeignore': |
|
36 | + sql("DELETE FROM `cache_ignore` WHERE `cache_id`='&1' AND `user_id`='&2'", $cache_id, $login->userid); |
|
37 | + break; |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | // clear cached map result, so that the change directly appears on the map |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | } |
140 | 140 | |
141 | 141 | //here we read all used information from the form if submitted, otherwise from DB |
142 | - $cache_name = trim(isset($_POST['name']) ? $_POST['name'] : $cache_record['name']); // Ocprop |
|
142 | + $cache_name = trim(isset($_POST['name']) ? $_POST['name'] : $cache_record['name']); // Ocprop |
|
143 | 143 | $cache_type = isset($_POST['type']) ? $_POST['type'] : $cache_record['type']; |
144 | 144 | if (!isset($_POST['size'])) { |
145 | 145 | if ($cache_type == 4 || $cache_type == 5) { |
@@ -153,15 +153,15 @@ discard block |
||
153 | 153 | $cache_hidden_day = isset($_POST['hidden_day']) ? $_POST['hidden_day'] : date( |
154 | 154 | 'd', |
155 | 155 | strtotime($cache_record['date_hidden']) |
156 | - ); // Ocprop |
|
156 | + ); // Ocprop |
|
157 | 157 | $cache_hidden_month = isset($_POST['hidden_month']) ? $_POST['hidden_month'] : date( |
158 | 158 | 'm', |
159 | 159 | strtotime($cache_record['date_hidden']) |
160 | - ); // Ocprop |
|
160 | + ); // Ocprop |
|
161 | 161 | $cache_hidden_year = isset($_POST['hidden_year']) ? $_POST['hidden_year'] : date( |
162 | 162 | 'Y', |
163 | 163 | strtotime($cache_record['date_hidden']) |
164 | - ); // Ocprop |
|
164 | + ); // Ocprop |
|
165 | 165 | |
166 | 166 | if (is_null($cache_record['date_activate'])) { |
167 | 167 | $cache_activate_day = isset($_POST['activate_day']) ? $_POST['activate_day'] : date('d'); |
@@ -187,11 +187,11 @@ discard block |
||
187 | 187 | ); |
188 | 188 | } |
189 | 189 | |
190 | - $cache_difficulty = isset($_POST['difficulty']) ? $_POST['difficulty'] : $cache_record['difficulty']; // Ocprop |
|
191 | - $cache_terrain = isset($_POST['terrain']) ? $_POST['terrain'] : $cache_record['terrain']; // Ocprop |
|
192 | - $cache_country = isset($_POST['country']) ? $_POST['country'] : $cache_record['country']; // Ocprop |
|
190 | + $cache_difficulty = isset($_POST['difficulty']) ? $_POST['difficulty'] : $cache_record['difficulty']; // Ocprop |
|
191 | + $cache_terrain = isset($_POST['terrain']) ? $_POST['terrain'] : $cache_record['terrain']; // Ocprop |
|
192 | + $cache_country = isset($_POST['country']) ? $_POST['country'] : $cache_record['country']; // Ocprop |
|
193 | 193 | $show_all_countries = isset($_POST['show_all_countries']) ? $_POST['show_all_countries'] : 0; |
194 | - $status = isset($_POST['status']) ? $_POST['status'] : $cache_record['status']; // Ocprop |
|
194 | + $status = isset($_POST['status']) ? $_POST['status'] : $cache_record['status']; // Ocprop |
|
195 | 195 | $status_old = $cache_record['status']; |
196 | 196 | $search_time = isset($_POST['search_time']) ? $_POST['search_time'] : $cache_record['search_time']; |
197 | 197 | $way_length = isset($_POST['way_length']) ? $_POST['way_length'] : $cache_record['way_length']; |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | |
254 | 254 | $log_pw = isset($_POST['log_pw']) ? mb_substr($_POST['log_pw'], 0, 20) : $cache_record['logpw']; |
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'])) : $cache_record['wp_gc']; // Ocprop |
|
256 | + $wp_gc = isset($_POST['wp_gc']) ? strtoupper(trim($_POST['wp_gc'])) : $cache_record['wp_gc']; // Ocprop |
|
257 | 257 | $showlists = isset($_POST['showlists']) ? 1 : $cache_record['show_cachelists'] + 0; |
258 | 258 | $protect_old_coords = isset($_POST['protect_old_coords']) ? 1 : $cache_record['protect_old_coords'] + 0; |
259 | 259 | |
@@ -265,12 +265,12 @@ discard block |
||
265 | 265 | |
266 | 266 | if (isset($_POST['latNS'])) { |
267 | 267 | //get coords from post-form |
268 | - $coords_latNS = $_POST['latNS']; // Ocprop |
|
269 | - $coords_lonEW = $_POST['lonEW']; // Ocprop |
|
270 | - $coords_lat_h = $_POST['lat_h']; // Ocprop |
|
271 | - $coords_lon_h = $_POST['lon_h']; // Ocprop |
|
272 | - $coords_lat_min = $_POST['lat_min']; // Ocprop |
|
273 | - $coords_lon_min = $_POST['lon_min']; // Ocprop |
|
268 | + $coords_latNS = $_POST['latNS']; // Ocprop |
|
269 | + $coords_lonEW = $_POST['lonEW']; // Ocprop |
|
270 | + $coords_lat_h = $_POST['lat_h']; // Ocprop |
|
271 | + $coords_lon_h = $_POST['lon_h']; // Ocprop |
|
272 | + $coords_lat_min = $_POST['lat_min']; // Ocprop |
|
273 | + $coords_lon_min = $_POST['lon_min']; // Ocprop |
|
274 | 274 | } else { |
275 | 275 | //get coords from DB |
276 | 276 | $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( |
@@ -585,7 +585,7 @@ discard block |
||
585 | 585 | |
586 | 586 | // update cache attributes |
587 | 587 | $attriblist = "999"; |
588 | - for ($i = 0; $i < count($cache_attribs); $i ++) { |
|
588 | + for ($i = 0; $i < count($cache_attribs); $i++) { |
|
589 | 589 | if ($cache_attribs[$i] + 0 > 0) { |
590 | 590 | sql( |
591 | 591 | "INSERT IGNORE INTO `caches_attributes` (`cache_id`, `attrib_id`) VALUES('&1', '&2')", |
@@ -719,7 +719,7 @@ discard block |
||
719 | 719 | $line = mb_ereg_replace('{name}', escape_javascript($record['name']), $line); |
720 | 720 | $line = mb_ereg_replace('{color}', $rAttrGroup['color'], $line); |
721 | 721 | $group_line .= $line; |
722 | - $nLineAttrCount ++; |
|
722 | + $nLineAttrCount++; |
|
723 | 723 | |
724 | 724 | $line = $cache_attrib_js; |
725 | 725 | $line = mb_ereg_replace('{id}', $record['id'], $line); |
@@ -776,7 +776,7 @@ discard block |
||
776 | 776 | |
777 | 777 | //difficulty |
778 | 778 | $difficulty_options = ''; |
779 | - for ($i = 2; $i <= 10; $i ++) { |
|
779 | + for ($i = 2; $i <= 10; $i++) { |
|
780 | 780 | if ($cache_difficulty == $i) { |
781 | 781 | $difficulty_options .= '<option value="' . $i . '" selected="selected">' . $i / 2 . '</option>'; |
782 | 782 | } else { |
@@ -788,7 +788,7 @@ discard block |
||
788 | 788 | |
789 | 789 | //build terrain options |
790 | 790 | $terrain_options = ''; |
791 | - for ($i = 2; $i <= 10; $i ++) { |
|
791 | + for ($i = 2; $i <= 10; $i++) { |
|
792 | 792 | if ($cache_terrain == $i) { |
793 | 793 | $terrain_options .= '<option value="' . $i . '" selected="selected">' . $i / 2 . '</option>'; |
794 | 794 | } else { |
@@ -955,7 +955,7 @@ discard block |
||
955 | 955 | $tmp = mb_ereg_replace('{publish_notnow_checked}', ($publish == 'notnow') ? 'checked' : '', $tmp); |
956 | 956 | |
957 | 957 | $activation_hours = ''; |
958 | - for ($i = 0; $i <= 23; $i ++) { |
|
958 | + for ($i = 0; $i <= 23; $i++) { |
|
959 | 959 | if ($cache_activate_hour == $i) { |
960 | 960 | $activation_hours .= '<option value="' . $i . '" selected="selected">' . $i . '</option>'; |
961 | 961 | } else { |
@@ -983,7 +983,7 @@ discard block |
||
983 | 983 | $cache_id |
984 | 984 | ); |
985 | 985 | |
986 | - for ($i = 0; $i < mysql_num_rows($rspictures); $i ++) { |
|
986 | + for ($i = 0; $i < mysql_num_rows($rspictures); $i++) { |
|
987 | 987 | $tmpline = ($i == 0 ? $pictureline0 : $pictureline); |
988 | 988 | $pic_record = sql_fetch_array($rspictures); |
989 | 989 | |
@@ -1066,7 +1066,7 @@ discard block |
||
1066 | 1066 | tpl_set_var('showlists_checked', $showlists ? 'checked="checked"' : ''); |
1067 | 1067 | tpl_set_var('protectcoords_checked', $protect_old_coords ? 'checked="checked"' : ''); |
1068 | 1068 | |
1069 | - tpl_set_var('reset', $reset); // obsolete |
|
1069 | + tpl_set_var('reset', $reset); // obsolete |
|
1070 | 1070 | tpl_set_var('submit', $submit); |
1071 | 1071 | } else { |
1072 | 1072 | //TODO: not the owner |
@@ -76,10 +76,12 @@ discard block |
||
76 | 76 | if ($error == false) { |
77 | 77 | //cacheid |
78 | 78 | $cache_id = 0; |
79 | - if (isset($_REQUEST['cacheid'])) // Ocprop |
|
79 | + if (isset($_REQUEST['cacheid'])) { |
|
80 | + // Ocprop |
|
80 | 81 | { |
81 | 82 | $cache_id = $_REQUEST['cacheid']; |
82 | 83 | } |
84 | + } |
|
83 | 85 | |
84 | 86 | if ($usr === false) { |
85 | 87 | $tplname = 'login'; |
@@ -197,9 +199,11 @@ discard block |
||
197 | 199 | $way_length = isset($_POST['way_length']) ? $_POST['way_length'] : $cache_record['way_length']; |
198 | 200 | |
199 | 201 | if ($status_old == 5 && $status == 5) { |
200 | - if (isset($_POST['publish'])) // Ocprop |
|
202 | + if (isset($_POST['publish'])) { |
|
203 | + // Ocprop |
|
201 | 204 | { |
202 | 205 | $publish = $_POST['publish']; |
206 | + } |
|
203 | 207 | if (!($publish == 'now' || $publish == 'later' || $publish == 'notnow')) { |
204 | 208 | // somebody messed up the POST-data, so we do not publish the cache, since he isn't published right now (status=5) |
205 | 209 | $publish = 'notnow'; |
@@ -228,12 +232,14 @@ discard block |
||
228 | 232 | $status = $status_old; |
229 | 233 | } |
230 | 234 | |
231 | - if ($status_old == 7) // cache is locked |
|
235 | + if ($status_old == 7) { |
|
236 | + // cache is locked |
|
232 | 237 | { |
233 | 238 | // only admins can change status of locked caches |
234 | 239 | if (($bAdmin & ADMIN_USER) != ADMIN_USER) { |
235 | 240 | // no status change allowed for normal user |
236 | 241 | $status = $status_old; |
242 | + } |
|
237 | 243 | } |
238 | 244 | } |
239 | 245 | |
@@ -439,11 +445,13 @@ discard block |
||
439 | 445 | } |
440 | 446 | |
441 | 447 | //try to save to DB? |
442 | - if (isset($_POST['submit'])) // Ocprop |
|
448 | + if (isset($_POST['submit'])) { |
|
449 | + // Ocprop |
|
443 | 450 | { |
444 | 451 | //all validations ok? |
445 | 452 | if (!($hidden_date_not_ok || $lat_not_ok || $lon_not_ok || $name_not_ok || $time_not_ok || $way_length_not_ok || $size_not_ok || $activate_date_not_ok || $status_not_ok || $diff_not_ok || $attribs_not_ok || $wpgc_not_ok)) { |
446 | 453 | $cache_lat = $coords_lat_h + $coords_lat_min / 60; |
454 | + } |
|
447 | 455 | if ($coords_latNS == 'S') { |
448 | 456 | $cache_lat = - $cache_lat; |
449 | 457 | } |
@@ -931,9 +939,11 @@ discard block |
||
931 | 939 | tpl_set_var('statuschange', $status_old == 5 ? '' : mb_ereg_replace('%1', $cache_id, $status_change)); |
932 | 940 | |
933 | 941 | // show activation form? |
934 | - if ($status_old == 5) // status = not yet published |
|
942 | + if ($status_old == 5) { |
|
943 | + // status = not yet published |
|
935 | 944 | { |
936 | 945 | $tmp = $activation_form; |
946 | + } |
|
937 | 947 | |
938 | 948 | $tmp = mb_ereg_replace( |
939 | 949 | '{activate_day}', |
@@ -14,10 +14,8 @@ |
||
14 | 14 | // We use short param codes 'u' and 'c' to generate short-enough activation |
15 | 15 | // url that will not be wrapped in plain-text emails. |
16 | 16 | |
17 | -$code = isset($_REQUEST['code']) ? trim($_REQUEST['code']) : |
|
18 | - (isset($_REQUEST['c']) ? trim($_REQUEST['c']) : ''); |
|
19 | -$email = isset($_REQUEST['email']) ? trim($_REQUEST['email']) : |
|
20 | - (isset($_REQUEST['e']) ? trim($_REQUEST['e']) : ''); |
|
17 | +$code = isset($_REQUEST['code']) ? trim($_REQUEST['code']) : (isset($_REQUEST['c']) ? trim($_REQUEST['c']) : ''); |
|
18 | +$email = isset($_REQUEST['email']) ? trim($_REQUEST['email']) : (isset($_REQUEST['e']) ? trim($_REQUEST['e']) : ''); |
|
21 | 19 | |
22 | 20 | $tpl->assign('errorEMail', false); |
23 | 21 | $tpl->assign('errorCode', false); |
@@ -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> |
@@ -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) |
@@ -17,7 +17,7 @@ |
||
17 | 17 | |
18 | 18 | ****************************************************************************/ |
19 | 19 | |
20 | -$rating_tpl = '<tr> |
|
20 | +$rating_tpl = '<tr> |
|
21 | 21 | <td valign="top">' . t('Recommendations:') . '</td> |
22 | 22 | <td valign="top"> |
23 | 23 | {rating_msg} |
@@ -15,7 +15,7 @@ |
||
15 | 15 | |
16 | 16 | ****************************************************************************/ |
17 | 17 | |
18 | - $error_wrong_node = t('this description was created on another Opencaching-webserver and can only be deleted there.'); |
|
18 | + $error_wrong_node = t('this description was created on another Opencaching-webserver and can only be deleted there.'); |
|
19 | 19 | |
20 | - $commit = t('the cache description has been deleted'); |
|
21 | - $commit_title = t('delete this cache-description'); |
|
20 | + $commit = t('the cache description has been deleted'); |
|
21 | + $commit_title = t('delete this cache-description'); |
@@ -71,7 +71,7 @@ |
||
71 | 71 | $error_suffix = '</span>'; |
72 | 72 | |
73 | 73 | $htmlnotice = |
74 | - '<tr><td class="spacer" colspan="2"></td></tr> |
|
74 | + '<tr><td class="spacer" colspan="2"></td></tr> |
|
75 | 75 | <tr> |
76 | 76 | <td class="help" colspan="2"> |
77 | 77 | <img src="lang/de/ocstyle/images/misc/hint.gif" border="0" width="15" height="11" alt="' . t('Notice') . '" title="' . t('Notice') . '" /> |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | /* selmenuitem contains the selected (bold) menu item */ |
286 | 286 | global $mnu_selmenuitem; |
287 | 287 | |
288 | - for ($i = 0, $ret = - 1; ($i < count($menustructure)) && ($ret == - 1); $i ++) { |
|
288 | + for ($i = 0, $ret = - 1; ($i < count($menustructure)) && ($ret == - 1); $i++) { |
|
289 | 289 | if ($menustructure[$i]['siteid'] == $pageid) { |
290 | 290 | $mnu_selmenuitem = $menustructure[$i]; |
291 | 291 | |
@@ -313,7 +313,7 @@ discard block |
||
313 | 313 | global $menu; |
314 | 314 | $c = 0; |
315 | 315 | $max = count($menu); |
316 | - for ($i = 0; $i < $max; $i ++) { |
|
316 | + for ($i = 0; $i < $max; $i++) { |
|
317 | 317 | if ($menu[$i]['visible'] == true) { |
318 | 318 | $sTarget = isset($menu[$i]['target']) ? $menu[$i]['target'] : ''; |
319 | 319 | $sItem = '<a href="' . $menu[$i]['filename'] . '" ' . $sTarget . '>' . htmlspecialchars(t($menu[$i]['menustring']), ENT_COMPAT, 'UTF-8') . '</a>'; |
@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | |
329 | 329 | echo $sItem . "\n"; |
330 | 330 | |
331 | - $c ++; |
|
331 | + $c++; |
|
332 | 332 | } |
333 | 333 | } |
334 | 334 | } |
@@ -348,7 +348,7 @@ discard block |
||
348 | 348 | |
349 | 349 | if (!$bHasSubmenu) { |
350 | 350 | /* prüfen, ob ein Submenü vorhanden ist */ |
351 | - for ($i = 0, $bSubmenu = false; ($i < count($menustructure)) && ($bSubmenu == false); $i ++) { |
|
351 | + for ($i = 0, $bSubmenu = false; ($i < count($menustructure)) && ($bSubmenu == false); $i++) { |
|
352 | 352 | if (isset($menustructure[$i]['submenu'])) { |
353 | 353 | $bSubmenu = true; |
354 | 354 | } |
@@ -365,7 +365,7 @@ discard block |
||
365 | 365 | } |
366 | 366 | } |
367 | 367 | $maxMenuStructure = count($menustructure); |
368 | - for ($i = 0; $i < $maxMenuStructure; $i ++) { |
|
368 | + for ($i = 0; $i < $maxMenuStructure; $i++) { |
|
369 | 369 | if ($menustructure[$i]['visible'] == true) { |
370 | 370 | if ($menustructure[$i]['siteid'] == $pageid) { |
371 | 371 | echo '<li class="' . $cssclass . ' group_active"><a href="' . $menustructure[$i]['filename'] . '">' . htmlspecialchars(t($menustructure[$i]['menustring']), ENT_COMPAT, 'UTF-8') . '</a></li>' . "\n"; |
@@ -397,7 +397,7 @@ discard block |
||
397 | 397 | */ |
398 | 398 | function mnu_IsMenuParentOf($parentmenuitems, $menuitemid) |
399 | 399 | { |
400 | - for ($i = 0; $i < count($parentmenuitems); $i ++) { |
|
400 | + for ($i = 0; $i < count($parentmenuitems); $i++) { |
|
401 | 401 | if ($parentmenuitems[$i]['siteid'] == $menuitemid) { |
402 | 402 | return true; |
403 | 403 | } |
@@ -439,7 +439,7 @@ discard block |
||
439 | 439 | function mnu_prv_EchoBreadCrumbSubItem($pageid, $menustructure) |
440 | 440 | { |
441 | 441 | $maxMenuStructure = count($menustructure); |
442 | - for ($i = 0; $i < $maxMenuStructure; $i ++) { |
|
442 | + for ($i = 0; $i < $maxMenuStructure; $i++) { |
|
443 | 443 | if ($menustructure[$i]['siteid'] == $pageid) { |
444 | 444 | echo ' > ' . htmlspecialchars(t($menustructure[$i]['menustring']), ENT_COMPAT, 'UTF-8'); |
445 | 445 |