@@ -27,6 +27,6 @@ |
||
27 | 27 | { |
28 | 28 | parent::__construct($name); |
29 | 29 | |
30 | - $this->rootPath = realpath(__DIR__ . '/../../../../'); |
|
30 | + $this->rootPath = realpath(__DIR__.'/../../../../'); |
|
31 | 31 | } |
32 | 32 | } |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | |
10 | 10 | $build_map_towns_menu = true; |
11 | 11 | |
12 | -require __DIR__ . '/lib2/web.inc.php'; |
|
12 | +require __DIR__.'/lib2/web.inc.php'; |
|
13 | 13 | |
14 | 14 | /* because the map does access some private info like |
15 | 15 | * ignored caches, we need to verify the login data |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | WHERE option_id=6 AND user_id='&1'", true, $login->userid)) |
68 | 68 | ) { |
69 | 69 | $fullscreen = true; |
70 | - $tpl->popup = true; // disables page header and -frame |
|
70 | + $tpl->popup = true; // disables page header and -frame |
|
71 | 71 | $tpl->popupmargin = false; |
72 | 72 | } else { |
73 | 73 | $fullscreen = false; |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | $tpl->error($translate->t('There is no google maps key registered for this domain.', '', '', 0)); |
134 | 134 | } |
135 | 135 | |
136 | -$tpl->add_header_javascript($opt['page']['protocol'] . '://maps.googleapis.com/maps/api/js?sensor=false&key=' . urlencode($sGMKey) . '&language=' . strtolower($opt['template']['locale'])); |
|
136 | +$tpl->add_header_javascript($opt['page']['protocol'].'://maps.googleapis.com/maps/api/js?sensor=false&key='.urlencode($sGMKey).'&language='.strtolower($opt['template']['locale'])); |
|
137 | 137 | // https is supported by google, but may make problems in some environments, |
138 | 138 | // e.g. does not work with MSIE 7 on WinXP |
139 | 139 | $tpl->add_header_javascript('resource2/misc/map/dragzoom_packed.js'); |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | global $login; |
280 | 280 | |
281 | 281 | $rsCache = sql_slave( |
282 | - "SELECT " . geomath::getSqlDistanceFormula($nLon, $nLat, $nDistance) . " AS `distance`, |
|
282 | + "SELECT ".geomath::getSqlDistanceFormula($nLon, $nLat, $nDistance)." AS `distance`, |
|
283 | 283 | `caches`.`wp_oc` |
284 | 284 | FROM `caches` |
285 | 285 | INNER JOIN `cache_status` ON `caches`.`status`=`cache_status`.`id` |
@@ -389,42 +389,42 @@ discard block |
||
389 | 389 | $wphandler = new HandlerChildWp(); |
390 | 390 | $waypoints = $wphandler->getChildWps($rCache['cache_id'], true); |
391 | 391 | |
392 | - echo '<caches>' . "\n"; |
|
392 | + echo '<caches>'."\n"; |
|
393 | 393 | echo ' <cache '; |
394 | - echo 'name="' . xmlentities($rCache['name']) . '" '; |
|
395 | - echo 'wpoc="' . xmlentities($rCache['wp_oc']) . '" '; |
|
396 | - echo 'coords="' . $rCache['longitude'] . ',' . $rCache['latitude'] . '" '; |
|
397 | - echo 'inactive="' . xmlentities($rCache['inactive']) . '" '; |
|
398 | - echo 'status_text="' . xmlentities($rCache['statustext']) . '" '; |
|
399 | - echo 'type_id="' . xmlentities($rCache['type_id']) . '" '; |
|
400 | - echo 'type_text="' . xmlentities($rCache['type_text']) . '" '; |
|
401 | - echo 'size="' . xmlentities($rCache['size']) . '" '; |
|
402 | - echo 'difficulty="' . xmlentities($rCache['difficulty'] / 2) . '" '; |
|
403 | - echo 'terrain="' . xmlentities($rCache['terrain'] / 2) . '" '; |
|
404 | - echo 'listed_since="' . xmlentities(strftime($opt['locale'][$opt['template']['locale']]['format']['date'], strtotime($rCache['date_created']))) . '" '; |
|
405 | - echo 'is_publishdate="' . xmlentities($rCache['is_publishdate']) . '" '; |
|
406 | - echo 'toprating="' . xmlentities($rCache['toprating']) . '" '; |
|
407 | - echo 'geokreties="' . xmlentities($nGeokretyCount) . '" '; |
|
408 | - echo 'found="' . xmlentities(($nFoundCount > 0) ? 1 : 0) . '" '; |
|
409 | - echo 'notfound="' . xmlentities(($nNotFoundCount > 0) ? 1 : 0) . '" '; |
|
410 | - echo 'attended="' . xmlentities(($nAttendedCount > 0) ? 1 : 0) . '" '; |
|
411 | - echo 'oconly="' . xmlentities($rCache['oconly']) . '" '; |
|
412 | - echo 'owner="' . xmlentities($rCache['owner']) . '" '; |
|
413 | - echo 'username="' . xmlentities($rCache['username']) . '" '; |
|
414 | - echo 'userid="' . xmlentities($rCache['user_id']) . '" '; |
|
415 | - echo 'picurl="' . xmlentities($rCache['picurl']) . '" '; |
|
416 | - echo 'pictitle="' . xmlentities(trim($rCache['pictitle'])) . '" >\n'; |
|
394 | + echo 'name="'.xmlentities($rCache['name']).'" '; |
|
395 | + echo 'wpoc="'.xmlentities($rCache['wp_oc']).'" '; |
|
396 | + echo 'coords="'.$rCache['longitude'].','.$rCache['latitude'].'" '; |
|
397 | + echo 'inactive="'.xmlentities($rCache['inactive']).'" '; |
|
398 | + echo 'status_text="'.xmlentities($rCache['statustext']).'" '; |
|
399 | + echo 'type_id="'.xmlentities($rCache['type_id']).'" '; |
|
400 | + echo 'type_text="'.xmlentities($rCache['type_text']).'" '; |
|
401 | + echo 'size="'.xmlentities($rCache['size']).'" '; |
|
402 | + echo 'difficulty="'.xmlentities($rCache['difficulty'] / 2).'" '; |
|
403 | + echo 'terrain="'.xmlentities($rCache['terrain'] / 2).'" '; |
|
404 | + echo 'listed_since="'.xmlentities(strftime($opt['locale'][$opt['template']['locale']]['format']['date'], strtotime($rCache['date_created']))).'" '; |
|
405 | + echo 'is_publishdate="'.xmlentities($rCache['is_publishdate']).'" '; |
|
406 | + echo 'toprating="'.xmlentities($rCache['toprating']).'" '; |
|
407 | + echo 'geokreties="'.xmlentities($nGeokretyCount).'" '; |
|
408 | + echo 'found="'.xmlentities(($nFoundCount > 0) ? 1 : 0).'" '; |
|
409 | + echo 'notfound="'.xmlentities(($nNotFoundCount > 0) ? 1 : 0).'" '; |
|
410 | + echo 'attended="'.xmlentities(($nAttendedCount > 0) ? 1 : 0).'" '; |
|
411 | + echo 'oconly="'.xmlentities($rCache['oconly']).'" '; |
|
412 | + echo 'owner="'.xmlentities($rCache['owner']).'" '; |
|
413 | + echo 'username="'.xmlentities($rCache['username']).'" '; |
|
414 | + echo 'userid="'.xmlentities($rCache['user_id']).'" '; |
|
415 | + echo 'picurl="'.xmlentities($rCache['picurl']).'" '; |
|
416 | + echo 'pictitle="'.xmlentities(trim($rCache['pictitle'])).'" >\n'; |
|
417 | 417 | |
418 | 418 | foreach ($waypoints as $waypoint) { |
419 | 419 | echo ' <wpt '; |
420 | - echo 'typeid="' . xmlentities($waypoint['type']) . '" '; |
|
421 | - echo 'typename="' . xmlentities($waypoint['name']) . '" '; |
|
422 | - echo 'typepreposition="' . xmlentities($waypoint['preposition']) . '" '; |
|
423 | - echo 'image="' . xmlentities($waypoint['image']) . '" '; |
|
420 | + echo 'typeid="'.xmlentities($waypoint['type']).'" '; |
|
421 | + echo 'typename="'.xmlentities($waypoint['name']).'" '; |
|
422 | + echo 'typepreposition="'.xmlentities($waypoint['preposition']).'" '; |
|
423 | + echo 'image="'.xmlentities($waypoint['image']).'" '; |
|
424 | 424 | echo 'imagewidth="38" imageheight="38" '; |
425 | - echo 'latitude="' . xmlentities($waypoint['latitude']) . '" '; |
|
426 | - echo 'longitude="' . xmlentities($waypoint['longitude']) . '" '; |
|
427 | - echo 'description="' . xmlentities(mb_ereg_replace('\r\n', '<br />', htmlentities(trim($waypoint['description']), ENT_NOQUOTES, 'UTF-8'))) . '" />\n'; |
|
425 | + echo 'latitude="'.xmlentities($waypoint['latitude']).'" '; |
|
426 | + echo 'longitude="'.xmlentities($waypoint['longitude']).'" '; |
|
427 | + echo 'description="'.xmlentities(mb_ereg_replace('\r\n', '<br />', htmlentities(trim($waypoint['description']), ENT_NOQUOTES, 'UTF-8'))).'" />\n'; |
|
428 | 428 | } |
429 | 429 | |
430 | 430 | echo ' </cache>\n'; |
@@ -438,9 +438,9 @@ discard block |
||
438 | 438 | { |
439 | 439 | global $login, $opt; |
440 | 440 | |
441 | - echo '<caches>' . "\n"; |
|
441 | + echo '<caches>'."\n"; |
|
442 | 442 | $rs = sql_slave( |
443 | - "SELECT " . geomath::getSqlDistanceFormula($nLon, $nLat, 0) . " AS `distance`, |
|
443 | + "SELECT ".geomath::getSqlDistanceFormula($nLon, $nLat, 0)." AS `distance`, |
|
444 | 444 | `caches`.`name`, `caches`.`wp_oc` |
445 | 445 | FROM `map2_data` |
446 | 446 | INNER JOIN `caches` ON `map2_data`.`cache_id`=`caches`.`cache_id` |
@@ -449,30 +449,30 @@ discard block |
||
449 | 449 | AND (`cache_status`.`allow_user_view`=1 OR `caches`.`user_id`='&3') |
450 | 450 | AND `map2_data`.`result_id`='&2' |
451 | 451 | ORDER BY `distance` ASC LIMIT 30", |
452 | - '%' . $sName . '%', |
|
452 | + '%'.$sName.'%', |
|
453 | 453 | $nResultId, |
454 | 454 | $login->userid |
455 | 455 | ); |
456 | 456 | $caches_found = 0; |
457 | 457 | while ($r = sql_fetch_assoc($rs)) { |
458 | - echo '<cache name="' . xmlentities($r['name']) . '" wpoc="' . xmlentities($r['wp_oc']) . '" />' . "\n"; |
|
459 | - ++ $caches_found; |
|
458 | + echo '<cache name="'.xmlentities($r['name']).'" wpoc="'.xmlentities($r['wp_oc']).'" />'."\n"; |
|
459 | + ++$caches_found; |
|
460 | 460 | } |
461 | 461 | sql_free_result($rs); |
462 | 462 | |
463 | 463 | if (!$caches_found && preg_match('/^[^\s[:punct:]]{2,}\.[^\s[:punct:]]{2,}\.[^\s[:punct:]]{2,}$/', $sName)) { |
464 | - $result = @file_get_contents('http://api.what3words.com/w3w?key=' . $opt['lib']['w3w']['apikey'] |
|
465 | - . '&string=' . urlencode($sName)); |
|
464 | + $result = @file_get_contents('http://api.what3words.com/w3w?key='.$opt['lib']['w3w']['apikey'] |
|
465 | + . '&string='.urlencode($sName)); |
|
466 | 466 | if ($result) { |
467 | 467 | $json = json_decode($result, true); |
468 | 468 | if (!is_null($json['words']) && !is_null($json['position']) && count($json['position']) == 2) { |
469 | - echo '<coord name="' . xmlentities(implode('.', $json['words'])) . |
|
470 | - '" latitude="' . xmlentities($json["position"][0]) . |
|
471 | - '" longitude="' . xmlentities($json["position"][1]) . '" />' . "\n"; |
|
469 | + echo '<coord name="'.xmlentities(implode('.', $json['words'])). |
|
470 | + '" latitude="'.xmlentities($json["position"][0]). |
|
471 | + '" longitude="'.xmlentities($json["position"][1]).'" />'."\n"; |
|
472 | 472 | } |
473 | 473 | } |
474 | 474 | } |
475 | - echo '</caches>' . "\n"; |
|
475 | + echo '</caches>'."\n"; |
|
476 | 476 | |
477 | 477 | exit; |
478 | 478 | } |
@@ -496,7 +496,7 @@ discard block |
||
496 | 496 | "SELECT `slave_id` |
497 | 497 | FROM `map2_result` |
498 | 498 | WHERE `result_id`='&1' AND DATE_ADD(`date_created`, INTERVAL '&2' SECOND)>NOW()", |
499 | - - 2, |
|
499 | + -2, |
|
500 | 500 | $nResultId, |
501 | 501 | $opt['map']['maxcacheage'] |
502 | 502 | ); |
@@ -562,8 +562,8 @@ discard block |
||
562 | 562 | $bMaxRecordReached = ($nRecordCount > $maxrecords); |
563 | 563 | |
564 | 564 | // output data |
565 | - echo '<searchresult count="' . xmlentities($nRecordCount) . '" available="1"' . |
|
566 | - ' maxrecordreached="' . ($bMaxRecordReached ? '1' : '0') . '">' . "\n"; |
|
565 | + echo '<searchresult count="'.xmlentities($nRecordCount).'" available="1"'. |
|
566 | + ' maxrecordreached="'.($bMaxRecordReached ? '1' : '0').'">'."\n"; |
|
567 | 567 | |
568 | 568 | if (!$bMaxRecordReached) { |
569 | 569 | $namequery = ($cachenames ? ", `caches`.`name` AS `cachename`" : ""); |
@@ -578,7 +578,7 @@ discard block |
||
578 | 578 | IF(`found_logs`.`id` IS NULL, 0, 1) AS `found`, |
579 | 579 | IF(`found_logs`.`id` IS NULL AND `notfound_logs`.`id` IS NOT NULL, 1, 0) AS `notfound`, |
580 | 580 | IF(`caches_attributes`.`attrib_id` IS NULL, 0, 1) AS `oconly`" . |
581 | - $namequery . " |
|
581 | + $namequery." |
|
582 | 582 | FROM `map2_data` |
583 | 583 | INNER JOIN `caches` ON `map2_data`.`cache_id`=`caches`.`cache_id` |
584 | 584 | INNER JOIN `user` ON `user`.`user_id`=`caches`.`user_id` |
@@ -622,19 +622,19 @@ discard block |
||
622 | 622 | $flags |= 16; |
623 | 623 | } |
624 | 624 | if ($compact) { |
625 | - echo '<c d="' . |
|
625 | + echo '<c d="'. |
|
626 | 626 | xmlentities( |
627 | - $r['wp_oc'] . '/' . round($r['longitude'], 5) . '/' . |
|
628 | - round($r['latitude'], 5) . '/' . $r['type'] . '/' . $flags) . '"' . |
|
629 | - (isset($r['cachename']) ? ' n="' . xmlentities($r['cachename']) . '"' : '') . |
|
627 | + $r['wp_oc'].'/'.round($r['longitude'], 5).'/'. |
|
628 | + round($r['latitude'], 5).'/'.$r['type'].'/'.$flags).'"'. |
|
629 | + (isset($r['cachename']) ? ' n="'.xmlentities($r['cachename']).'"' : ''). |
|
630 | 630 | ' />'; |
631 | 631 | } else { |
632 | - echo '<cache wp="' . xmlentities($r['wp_oc']) . '"' . |
|
633 | - ' lon="' . xmlentities(round($r['longitude'], 5)) . '"' . |
|
634 | - ' lat="' . xmlentities(round($r['latitude'], 5)) . '"' . |
|
635 | - ' type="' . xmlentities($r['type']) . '"' . |
|
636 | - (isset($r['cachename']) ? ' n="' . xmlentities($r['cachename']) . '"' : '') . |
|
637 | - ' f="' . xmlentities($flags) . '" />' . "\n"; |
|
632 | + echo '<cache wp="'.xmlentities($r['wp_oc']).'"'. |
|
633 | + ' lon="'.xmlentities(round($r['longitude'], 5)).'"'. |
|
634 | + ' lat="'.xmlentities(round($r['latitude'], 5)).'"'. |
|
635 | + ' type="'.xmlentities($r['type']).'"'. |
|
636 | + (isset($r['cachename']) ? ' n="'.xmlentities($r['cachename']).'"' : ''). |
|
637 | + ' f="'.xmlentities($flags).'" />'."\n"; |
|
638 | 638 | } |
639 | 639 | } |
640 | 640 | sql_free_result($rs); |
@@ -18,13 +18,13 @@ |
||
18 | 18 | |
19 | 19 | $error_wrong_node = t('This log entry has been created on another Opencaching website. The cache can only be edited there.'); |
20 | 20 | |
21 | -$date_message = '<span class="errormsg">' . t('date or time is invalid') . '</span>'; |
|
21 | +$date_message = '<span class="errormsg">'.t('date or time is invalid').'</span>'; |
|
22 | 22 | $smiley_link = '<a href="javascript:insertSmiley(\'{smiley_symbol}\',\'{smiley_file}\')">{smiley_image}</a>'; |
23 | 23 | |
24 | -$log_pw_field = '<tr><td colspan="2">' . t('passwort to log:') . ' <input class="input100" type="text" name="log_pw" maxlength="20" value="" /> (' . t('only for found logs') . ')</td></tr> |
|
24 | +$log_pw_field = '<tr><td colspan="2">'.t('passwort to log:').' <input class="input100" type="text" name="log_pw" maxlength="20" value="" /> ('.t('only for found logs').')</td></tr> |
|
25 | 25 | <tr><td class="spacer" colspan="2"></td></tr>'; |
26 | -$log_pw_field_pw_not_ok = '<tr><td colspan="2">' . t('passwort to log:') . ' <input type="text" name="log_pw" maxlength="20" size="20" value=""/><span class="errormsg"> ' . t('Invalid password!') . '</span></td></tr><tr><td class="spacer" colspan="2"></td></tr>'; |
|
26 | +$log_pw_field_pw_not_ok = '<tr><td colspan="2">'.t('passwort to log:').' <input type="text" name="log_pw" maxlength="20" size="20" value=""/><span class="errormsg"> '.t('Invalid password!').'</span></td></tr><tr><td class="spacer" colspan="2"></td></tr>'; |
|
27 | 27 | |
28 | -$teamcomment_field = ' <input type="checkbox" name="teamcomment" value="1" class="checkbox" {chk_sel} id="teamcomment" /> <label for="teamcomment">' . t('OC team comment') . "</label>"; |
|
28 | +$teamcomment_field = ' <input type="checkbox" name="teamcomment" value="1" class="checkbox" {chk_sel} id="teamcomment" /> <label for="teamcomment">'.t('OC team comment')."</label>"; |
|
29 | 29 | |
30 | 30 | $type_edit_disabled = 'disabled class="disabled"'; |
@@ -17,16 +17,16 @@ |
||
17 | 17 | |
18 | 18 | ****************************************************************************/ |
19 | 19 | |
20 | -$rating_tpl = '<tr> |
|
21 | - <td valign="top">' . t('Recommendations:') . '</td> |
|
20 | +$rating_tpl = '<tr> |
|
21 | + <td valign="top">' . t('Recommendations:').'</td> |
|
22 | 22 | <td valign="top"> |
23 | 23 | {rating_msg} |
24 | - <noscript><br />' . t('A recommendation can only be made within a "found"-log!') . '</noscript> |
|
24 | + <noscript><br />' . t('A recommendation can only be made within a "found"-log!').'</noscript> |
|
25 | 25 | </td> |
26 | 26 | </tr> |
27 | 27 | <tr><td class="spacer" colspan="2"></td></tr>'; |
28 | 28 | |
29 | -$rating_allowed = '<input type="hidden" name="ratingoption" value="1"><input type="checkbox" name="rating" value="1" class="checkbox" {chk_sel}/> ' . t('This cache is one of my recommendations.'); |
|
29 | +$rating_allowed = '<input type="hidden" name="ratingoption" value="1"><input type="checkbox" name="rating" value="1" class="checkbox" {chk_sel}/> '.t('This cache is one of my recommendations.'); |
|
30 | 30 | $rating_too_few_founds = t('You need additional {anzahl} finds, to make another recommandation.'); |
31 | 31 | $rating_maywithdraw = t('Alternatively, you can withdraw a <a href="mytop5.php">existing recommendation</a>.'); |
32 | 32 | $rating_stat = t('You have given {curr} of {max} possible recommendations.'); |
@@ -16,7 +16,7 @@ |
||
16 | 16 | |
17 | 17 | $error_wrong_node = t('This description has been created on another Opencaching website. The cache can only be edited there.'); |
18 | 18 | |
19 | -$show_all_langs_submit = ' <input type="submit" name="show_all_langs" value="' . t('Show all') . '" class="formbutton" onclick="submitbutton(\'show_all_langs\')" />'; |
|
19 | +$show_all_langs_submit = ' <input type="submit" name="show_all_langs" value="'.t('Show all').'" class="formbutton" onclick="submitbutton(\'show_all_langs\')" />'; |
|
20 | 20 | |
21 | 21 | $error_desc_not_found = t('(internal error) The description is not available.'); |
22 | 22 | $error_desc_exists = t('(internal error) It already exists a description for this language.'); |
@@ -29,12 +29,12 @@ discard block |
||
29 | 29 | //Menü laden |
30 | 30 | global $mnu_bgcolor, $mnu_selmenuitem, $develwarning, $tpl_subtitle, $opt, $rootpath, $usr; |
31 | 31 | |
32 | - require_once $stylepath . '/lib/menu.php'; |
|
32 | + require_once $stylepath.'/lib/menu.php'; |
|
33 | 33 | if (function_exists('post_config')) { |
34 | 34 | post_config(); |
35 | 35 | } |
36 | 36 | |
37 | - require_once $rootpath . 'lib2/smarty/ocplugins/function.season.php'; |
|
37 | + require_once $rootpath.'lib2/smarty/ocplugins/function.season.php'; |
|
38 | 38 | |
39 | 39 | $sUserCountry = getUserCountry(); |
40 | 40 | $pageidx = mnu_MainMenuIndexFromPageId($menu, $tplname); |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | if ($tplname != 'start') { |
48 | 48 | $tpl_subtitle .= htmlspecialchars($mnu_selmenuitem['title'], ENT_COMPAT, 'UTF-8'); |
49 | 49 | } |
50 | - $tpl_subtitle .= ' - ' . htmlspecialchars($opt['locale'][$locale]['page']['subtitle1'], ENT_COMPAT, 'UTF-8'); |
|
50 | + $tpl_subtitle .= ' - '.htmlspecialchars($opt['locale'][$locale]['page']['subtitle1'], ENT_COMPAT, 'UTF-8'); |
|
51 | 51 | $meta_keywords = htmlspecialchars($opt['page']['meta']['keywords'], ENT_COMPAT, 'UTF-8'); |
52 | 52 | $meta_description = htmlspecialchars($opt['page']['meta']['description'], ENT_COMPAT, 'UTF-8'); |
53 | 53 | ?> |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | <?php |
148 | 148 | foreach ($opt['template']['locales'] AS $k => $lang) |
149 | 149 | if ($lang['show'] == true) |
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> '; |
|
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 | </td> |
153 | 153 | <td> <strong>{t}Country:{/t} </strong></td> |
@@ -163,11 +163,11 @@ discard block |
||
163 | 163 | { |
164 | 164 | echo '<option disabled="disabled">'; |
165 | 165 | if ($tpl_usercountries[$i]['group'] == 1) { |
166 | - echo '- ' . t('This OC node') . ' -'; |
|
166 | + echo '- '.t('This OC node').' -'; |
|
167 | 167 | } elseif ($tpl_usercountries[$i]['group'] == 2) { |
168 | - echo '- ' . t('Other OC nodes') . ' -'; |
|
168 | + echo '- '.t('Other OC nodes').' -'; |
|
169 | 169 | } elseif ($tpl_usercountries[$i]['group'] == 3) { |
170 | - echo '- ' . t('Others') . ' -'; |
|
170 | + echo '- '.t('Others').' -'; |
|
171 | 171 | } else { |
172 | 172 | echo '-'; |
173 | 173 | } |
@@ -175,7 +175,7 @@ discard block |
||
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['show'] == true) |
|
148 | + foreach ($opt['template']['locales'] AS $k => $lang) { |
|
149 | + if ($lang['show'] == true) |
|
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> |
@@ -157,10 +158,8 @@ discard block |
||
157 | 158 | global $tpl_usercountries; |
158 | 159 | $nLastGroup = 0; |
159 | 160 | $maxUserCountries = count($tpl_usercountries); |
160 | - for ($i = 0; $i < $maxUserCountries; $i++) |
|
161 | - { |
|
162 | - if ($nLastGroup != $tpl_usercountries[$i]['group']) |
|
163 | - { |
|
161 | + for ($i = 0; $i < $maxUserCountries; $i++) { |
|
162 | + if ($nLastGroup != $tpl_usercountries[$i]['group']) { |
|
164 | 163 | echo '<option disabled="disabled">'; |
165 | 164 | if ($tpl_usercountries[$i]['group'] == 1) { |
166 | 165 | echo '- ' . t('This OC node') . ' -'; |
@@ -205,11 +204,12 @@ discard block |
||
205 | 204 | <ul> |
206 | 205 | <?php |
207 | 206 | // $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 | -?> |
|
207 | + if ($pageidx >= 0) { |
|
208 | + mnu_EchoMainMenu($menu[$pageidx]['siteid']); |
|
209 | + } else { |
|
210 | + mnu_EchoMainMenu(-1); |
|
211 | + } |
|
212 | + ?> |
|
213 | 213 | </ul> |
214 | 214 | </div> |
215 | 215 | |
@@ -228,8 +228,7 @@ discard block |
||
228 | 228 | <div class="nav3"> |
229 | 229 | <?php |
230 | 230 | //SubNavigation |
231 | - if (isset($menu[$pageidx]['submenu'])) |
|
232 | - { |
|
231 | + if (isset($menu[$pageidx]['submenu'])) { |
|
233 | 232 | ?> |
234 | 233 | <ul> |
235 | 234 | <li class="title">{t}Main menu{/t}</li> |
@@ -257,8 +256,7 @@ discard block |
||
257 | 256 | |
258 | 257 | <!-- Paypalbutton --> |
259 | 258 | <?php |
260 | - if (isset($opt['page']['showdonations']) && $opt['page']['showdonations']) |
|
261 | - { |
|
259 | + if (isset($opt['page']['showdonations']) && $opt['page']['showdonations']) { |
|
262 | 260 | ?> |
263 | 261 | <p class="sidebar-maintitle">{t}Donations{/t}</p> |
264 | 262 | <div style="margin-top:16px;width:100%;text-align:center;"> |
@@ -273,8 +271,7 @@ discard block |
||
273 | 271 | |
274 | 272 | <!-- Social Media --> |
275 | 273 | <?php |
276 | - if (isset($opt['page']['showsocialmedia']) && $opt['page']['showsocialmedia']) |
|
277 | - { |
|
274 | + if (isset($opt['page']['showsocialmedia']) && $opt['page']['showsocialmedia']) { |
|
278 | 275 | ?> |
279 | 276 | <p class="sidebar-maintitle">{t}Social media{/t}</p> |
280 | 277 | <div style="margin-top: 10px; margin-bottom: 14px; margin-left: auto; margin-right: auto; text-align: center"> |
@@ -145,7 +145,7 @@ |
||
145 | 145 | <td><strong>{t}Language:{/t} </strong></td> |
146 | 146 | <td> |
147 | 147 | <?php |
148 | - foreach ($opt['template']['locales'] AS $k => $lang) |
|
148 | + foreach ($opt['template']['locales'] as $k => $lang) |
|
149 | 149 | if ($lang['show'] == true) |
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 | ?> |
@@ -20,28 +20,28 @@ discard block |
||
20 | 20 | |
21 | 21 | $error_wrong_node = t('This cache has been created on another Opencaching website. The cache can only be edited there.'); |
22 | 22 | |
23 | -$all_countries_submit = '<input type="submit" name="show_all_countries_submit" id="showallcountries" value="' . t('Show all') . '" class="formbutton" onclick="submitbutton(\'showallcountries\')" />'; |
|
24 | -$error_general = "<tr><td class='error' colspan='2'><b>" . t('Some errors occured, please check the marked fields.') . "</b></td></tr>"; |
|
25 | -$name_message = ' <span class="errormsg">' . t('Cachename is invalid') . '</span>'; |
|
26 | -$date_message = '<span class="errormsg">' . t('date is invalid') . '</span>'; |
|
27 | -$coords_message = '<span class="errormsg">' . t('The used coordinates are invalid.') . '</span>'; |
|
28 | -$time_not_ok_message = '<span class="errormsg">' . t('The entered time is invalid.') . '</span>'; |
|
29 | -$way_length_not_ok_message = '<span class="errormsg">' . t('The distance you have entered is invalid. Format aa.aaa') . '</span>'; |
|
30 | -$sizemismatch_message = ' <span class="errormsg">' . t('For virtual and webcam caches, the cache size has to be -no container-!') . '</span>'; |
|
31 | -$status_message = ' <span class="errormsg">' . t('The cache-status does not fit to your publishing options') . '</span>'; |
|
32 | -$status_change = '<br /><div style="margin-top:6px"><img src="lang/de/ocstyle/images/misc/hint.gif" border="0" width="15" height="11" >' . t('To change the state, you need to <a href="log.php?cacheid=%1">log</a> the new state.') . '</div>'; |
|
33 | -$diff_not_ok_message = ' <span class="errormsg">' . t('Choose both valuations!') . '</span>'; |
|
34 | -$safari_not_allowed_message = '<span class="errormsg">' . t('Only virtual caches can be safari caches.') . '</span>'; |
|
35 | -$bad_wpgc_message = '<span class="errormsg">' . t('GC waypoint is invalid, must be GCxxxxx') . '</span>'; |
|
36 | -$nopictures = '<tr><td colspan="2">' . t('No pictures available') . '</td></tr><tr><td colspan="2"> </td></tr>'; |
|
37 | -$pictureline0 = '<tr><td colspan="2"><a href="{link}">{title}</a> [<a href="picture.php?action=edit&uuid={uuid}">' . t('edit') . '</a>] [<a href="picture.php?action=delete&uuid={uuid}">' . t('delete') . '</a>]</td></tr>'; |
|
38 | -$pictureline = '<tr><td colspan="2"><a href="{link}">{title}</a> [<a href="picture.php?action=edit&uuid={uuid}">' . t('edit') . '</a>] [<a href="picture.php?action=delete&uuid={uuid}">' . t('delete') . '</a>] [<a href="picture.php?action=up&uuid={uuid}">' . t('move up') . '</a>]</td></tr>'; |
|
23 | +$all_countries_submit = '<input type="submit" name="show_all_countries_submit" id="showallcountries" value="'.t('Show all').'" class="formbutton" onclick="submitbutton(\'showallcountries\')" />'; |
|
24 | +$error_general = "<tr><td class='error' colspan='2'><b>".t('Some errors occured, please check the marked fields.')."</b></td></tr>"; |
|
25 | +$name_message = ' <span class="errormsg">'.t('Cachename is invalid').'</span>'; |
|
26 | +$date_message = '<span class="errormsg">'.t('date is invalid').'</span>'; |
|
27 | +$coords_message = '<span class="errormsg">'.t('The used coordinates are invalid.').'</span>'; |
|
28 | +$time_not_ok_message = '<span class="errormsg">'.t('The entered time is invalid.').'</span>'; |
|
29 | +$way_length_not_ok_message = '<span class="errormsg">'.t('The distance you have entered is invalid. Format aa.aaa').'</span>'; |
|
30 | +$sizemismatch_message = ' <span class="errormsg">'.t('For virtual and webcam caches, the cache size has to be -no container-!').'</span>'; |
|
31 | +$status_message = ' <span class="errormsg">'.t('The cache-status does not fit to your publishing options').'</span>'; |
|
32 | +$status_change = '<br /><div style="margin-top:6px"><img src="lang/de/ocstyle/images/misc/hint.gif" border="0" width="15" height="11" >'.t('To change the state, you need to <a href="log.php?cacheid=%1">log</a> the new state.').'</div>'; |
|
33 | +$diff_not_ok_message = ' <span class="errormsg">'.t('Choose both valuations!').'</span>'; |
|
34 | +$safari_not_allowed_message = '<span class="errormsg">'.t('Only virtual caches can be safari caches.').'</span>'; |
|
35 | +$bad_wpgc_message = '<span class="errormsg">'.t('GC waypoint is invalid, must be GCxxxxx').'</span>'; |
|
36 | +$nopictures = '<tr><td colspan="2">'.t('No pictures available').'</td></tr><tr><td colspan="2"> </td></tr>'; |
|
37 | +$pictureline0 = '<tr><td colspan="2"><a href="{link}">{title}</a> [<a href="picture.php?action=edit&uuid={uuid}">'.t('edit').'</a>] [<a href="picture.php?action=delete&uuid={uuid}">'.t('delete').'</a>]</td></tr>'; |
|
38 | +$pictureline = '<tr><td colspan="2"><a href="{link}">{title}</a> [<a href="picture.php?action=edit&uuid={uuid}">'.t('edit').'</a>] [<a href="picture.php?action=delete&uuid={uuid}">'.t('delete').'</a>] [<a href="picture.php?action=up&uuid={uuid}">'.t('move up').'</a>]</td></tr>'; |
|
39 | 39 | // Ocprop: <a href=\"http://.*?\.opencaching\.de/images/uploads/.*?\">(.*?)<\/a>.*?\[<a href=\"picture\.php\?action=[a-z]*?\&uuid=(.*?)\"> |
40 | 40 | $picturelines = '{lines}<tr><td colspan="2"> </td></tr>'; |
41 | 41 | $gc_com_msg2 = t('To prevent any problems with geocaching.com we want to please you to upload all linked pictures to %1 as well and link the pictures in the HTML code to these on %1'); |
42 | 42 | |
43 | -$nowaypoints = '<tr><td colspan="2">' . t('No waypoints available') . '</td></tr>'; |
|
44 | -$waypointline = '<tr bgcolor="#ffffff"><td><table class="narrowtable" cellspacing="0" cellpadding="0"><tr><td><img src="{wp_image}" /></td><td>{wp_type}</td></tr></table></td><td><table class="narrowtable"><tr><td style="white-space:nowrap">{wp_coordinate}</td></tr></table></tp><td>{wp_show_description}</td><td>[<a href="childwp.php?cacheid={cacheid}&childid={childid}">' . t('Edit') . '</a>] [<a href="childwp.php?cacheid={cacheid}&deleteid={childid}">' . t('Delete') . '</a>]</td></tr>'; |
|
43 | +$nowaypoints = '<tr><td colspan="2">'.t('No waypoints available').'</td></tr>'; |
|
44 | +$waypointline = '<tr bgcolor="#ffffff"><td><table class="narrowtable" cellspacing="0" cellpadding="0"><tr><td><img src="{wp_image}" /></td><td>{wp_type}</td></tr></table></td><td><table class="narrowtable"><tr><td style="white-space:nowrap">{wp_coordinate}</td></tr></table></tp><td>{wp_show_description}</td><td>[<a href="childwp.php?cacheid={cacheid}&childid={childid}">'.t('Edit').'</a>] [<a href="childwp.php?cacheid={cacheid}&deleteid={childid}">'.t('Delete').'</a>]</td></tr>'; |
|
45 | 45 | $waypointlines = '<tr><td colspan="2"><table class="edit_wptable">{lines}</table></td></tr><tr><td colspan="2"> </td></tr>'; |
46 | 46 | |
47 | 47 | $cache_attrib_js = "new Array({id}, {selected}, '{img_undef}', '{img_large}')"; |
@@ -58,17 +58,17 @@ discard block |
||
58 | 58 | $activation_form = ' |
59 | 59 | <tr><td class="spacer" colspan="2"></td></tr> |
60 | 60 | <tr> |
61 | - <td>' . t('Publication:') . '</td> |
|
61 | + <td>' . t('Publication:').'</td> |
|
62 | 62 | <td> |
63 | - <input type="radio" class="radio" name="publish" id="publish_now" value="now" {publish_now_checked} /> <label for="publish_now">' . t('Publish now') . '</label><br /> |
|
64 | - <input type="radio" class="radio" name="publish" id="publish_later" value="later" {publish_later_checked} /> <label for="publish_later">' . t('Publish on') . '</label> |
|
63 | + <input type="radio" class="radio" name="publish" id="publish_now" value="now" {publish_now_checked} /> <label for="publish_now">' . t('Publish now').'</label><br /> |
|
64 | + <input type="radio" class="radio" name="publish" id="publish_later" value="later" {publish_later_checked} /> <label for="publish_later">' . t('Publish on').'</label> |
|
65 | 65 | <input class="input20" type="text" name="activate_day" maxlength="2" value="{activate_day}"/>. |
66 | 66 | <input class="input20" type="text" name="activate_month" maxlength="2" value="{activate_month}"/>. |
67 | 67 | <input class="input40" type="text" name="activate_year" maxlength="4" value="{activate_year}"/> |
68 | 68 | <select name="activate_hour" class="input60"> |
69 | 69 | {activation_hours} |
70 | - </select> ' . t('#time_suffix_label#') . ' {activate_on_message}<br /> |
|
71 | - <input type="radio" class="radio" name="publish" id="publish_notnow" value="notnow" {publish_notnow_checked} /> <label for="publish_notnow">' . t('Do not publish now.') . '</label> |
|
70 | + </select> ' . t('#time_suffix_label#').' {activate_on_message}<br /> |
|
71 | + <input type="radio" class="radio" name="publish" id="publish_notnow" value="notnow" {publish_notnow_checked} /> <label for="publish_notnow">' . t('Do not publish now.').'</label> |
|
72 | 72 | </td> |
73 | 73 | </tr> |
74 | 74 | '; |
@@ -18,6 +18,6 @@ |
||
18 | 18 | $submit = t('Add'); |
19 | 19 | $default_lang = t('EN'); |
20 | 20 | |
21 | -$lang_message = '<br/><span class="errormsg">' . t('There already exists a description in this language') . '</span>'; |
|
22 | -$error_no_lang_selected = ' <span class="errormsg">' . t('Please select a language.') . "</span>"; |
|
23 | -$show_all_langs_submit = ' <input type="submit" name="show_all_langs_submit" value="' . t('Show all') . '" class="formbutton" onclick="submitbutton(\'show_all_langs_submit\')" />'; |
|
21 | +$lang_message = '<br/><span class="errormsg">'.t('There already exists a description in this language').'</span>'; |
|
22 | +$error_no_lang_selected = ' <span class="errormsg">'.t('Please select a language.')."</span>"; |
|
23 | +$show_all_langs_submit = ' <input type="submit" name="show_all_langs_submit" value="'.t('Show all').'" class="formbutton" onclick="submitbutton(\'show_all_langs_submit\')" />'; |
@@ -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,22 +313,22 @@ 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 | - $sItem = '<a href="' . $menu[$i]['filename'] . '" ' . $sTarget . '>' . htmlspecialchars(t($menu[$i]['menustring']), ENT_COMPAT, 'UTF-8') . '</a>'; |
|
320 | - $sItemSel = '<a href="' . $menu[$i]['filename'] . '" ' . $sTarget . ' class=\'selected bg-green06\'>' . htmlspecialchars(t($menu[$i]['menustring']), ENT_COMPAT, 'UTF-8') . '</a>'; |
|
319 | + $sItem = '<a href="'.$menu[$i]['filename'].'" '.$sTarget.'>'.htmlspecialchars(t($menu[$i]['menustring']), ENT_COMPAT, 'UTF-8').'</a>'; |
|
320 | + $sItemSel = '<a href="'.$menu[$i]['filename'].'" '.$sTarget.' class=\'selected bg-green06\'>'.htmlspecialchars(t($menu[$i]['menustring']), ENT_COMPAT, 'UTF-8').'</a>'; |
|
321 | 321 | |
322 | 322 | if ($menu[$i]['siteid'] == $selmenuid) { |
323 | 323 | /* $sItem = '<li>TODO:selected' . $sItem . '</li>'; */ |
324 | - $sItem = '<li>' . $sItemSel . '</li>'; |
|
324 | + $sItem = '<li>'.$sItemSel.'</li>'; |
|
325 | 325 | } else { |
326 | - $sItem = '<li>' . $sItem . '</li>'; |
|
326 | + $sItem = '<li>'.$sItem.'</li>'; |
|
327 | 327 | } |
328 | 328 | |
329 | - echo $sItem . "\n"; |
|
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,19 +365,19 @@ 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 | - echo '<li class="' . $cssclass . ' group_active"><a href="' . $menustructure[$i]['filename'] . '">' . htmlspecialchars(t($menustructure[$i]['menustring']), ENT_COMPAT, 'UTF-8') . '</a></li>' . "\n"; |
|
371 | + echo '<li class="'.$cssclass.' group_active"><a href="'.$menustructure[$i]['filename'].'">'.htmlspecialchars(t($menustructure[$i]['menustring']), ENT_COMPAT, 'UTF-8').'</a></li>'."\n"; |
|
372 | 372 | } else { |
373 | 373 | if (isset($menustructure[$i]['submenu'])) { |
374 | 374 | if (mnu_IsMenuParentOf($menustructure[$i]['submenu'], $pageid)) { |
375 | - echo '<li class="' . $cssclass . ' group_active"><a href="' . $menustructure[$i]['filename'] . '">' . htmlspecialchars(t($menustructure[$i]['menustring']), ENT_COMPAT, 'UTF-8') . '</a></li>' . "\n"; |
|
375 | + echo '<li class="'.$cssclass.' group_active"><a href="'.$menustructure[$i]['filename'].'">'.htmlspecialchars(t($menustructure[$i]['menustring']), ENT_COMPAT, 'UTF-8').'</a></li>'."\n"; |
|
376 | 376 | } else { |
377 | - echo '<li class="' . $cssclass . '"><a href="' . $menustructure[$i]['filename'] . '">' . htmlspecialchars(t($menustructure[$i]['menustring']), ENT_COMPAT, 'UTF-8') . '</a></li>' . "\n"; |
|
377 | + echo '<li class="'.$cssclass.'"><a href="'.$menustructure[$i]['filename'].'">'.htmlspecialchars(t($menustructure[$i]['menustring']), ENT_COMPAT, 'UTF-8').'</a></li>'."\n"; |
|
378 | 378 | } |
379 | 379 | } else { |
380 | - echo '<li class="' . $cssclass . '"><a href="' . $menustructure[$i]['filename'] . '">' . htmlspecialchars(t($menustructure[$i]['menustring']), ENT_COMPAT, 'UTF-8') . '</a></li>' . "\n"; |
|
380 | + echo '<li class="'.$cssclass.'"><a href="'.$menustructure[$i]['filename'].'">'.htmlspecialchars(t($menustructure[$i]['menustring']), ENT_COMPAT, 'UTF-8').'</a></li>'."\n"; |
|
381 | 381 | } |
382 | 382 | } |
383 | 383 | |
@@ -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,15 +439,15 @@ 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 | - echo ' > ' . htmlspecialchars(t($menustructure[$i]['menustring']), ENT_COMPAT, 'UTF-8'); |
|
444 | + echo ' > '.htmlspecialchars(t($menustructure[$i]['menustring']), ENT_COMPAT, 'UTF-8'); |
|
445 | 445 | |
446 | 446 | return; |
447 | 447 | } else { |
448 | 448 | if (isset($menustructure[$i]['submenu'])) { |
449 | 449 | if (mnu_IsMenuParentOf($menustructure[$i]['submenu'], $pageid)) { |
450 | - echo ' > ' . htmlspecialchars(t($menustructure[$i]['menustring']), ENT_COMPAT, 'UTF-8'); |
|
450 | + echo ' > '.htmlspecialchars(t($menustructure[$i]['menustring']), ENT_COMPAT, 'UTF-8'); |
|
451 | 451 | mnu_prv_EchoBreadCrumbSubItem($pageid, $menustructure[$i]['submenu']); |
452 | 452 | |
453 | 453 | return; |
@@ -465,6 +465,6 @@ discard block |
||
465 | 465 | { |
466 | 466 | $helplink = helppagelink($tplname); |
467 | 467 | if ($helplink != "") { |
468 | - echo $helplink . '<img src="resource2/ocstyle/images/misc/32x32-help.png" /></a>'; |
|
468 | + echo $helplink.'<img src="resource2/ocstyle/images/misc/32x32-help.png" /></a>'; |
|
469 | 469 | } |
470 | 470 | } |
@@ -423,7 +423,8 @@ |
||
423 | 423 | { |
424 | 424 | global $menu; |
425 | 425 | |
426 | - if ($mainmenuindex >= 0) { // is -1 e.g. when calling newcache.php as logged-off-user (-> login.tpl.php) |
|
426 | + if ($mainmenuindex >= 0) { |
|
427 | +// is -1 e.g. when calling newcache.php as logged-off-user (-> login.tpl.php) |
|
427 | 428 | echo htmlspecialchars(t($menu[$mainmenuindex]['menustring']), ENT_COMPAT, 'UTF-8'); |
428 | 429 | |
429 | 430 | if (isset($menu[$mainmenuindex]['submenu']) && ($menu[$mainmenuindex]['siteid'] != $pageid)) { |