Completed
Pull Request — master (#314)
by Thomas
07:14
created
htdocs/src/Oc/Console/Command/AbstractCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,6 +27,6 @@
 block discarded – undo
27 27
     {
28 28
         parent::__construct($name);
29 29
 
30
-        $this->rootPath = realpath(__DIR__ . '/../../../../');
30
+        $this->rootPath = realpath(__DIR__.'/../../../../');
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
htdocs/map2.php 1 patch
Spacing   +60 added lines, -60 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
htdocs/lang/de/ocstyle/editlog.inc.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,13 +18,13 @@
 block discarded – undo
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 = '&nbsp; <input type="checkbox" name="teamcomment" value="1" class="checkbox" {chk_sel} id="teamcomment" /> <label for="teamcomment">' . t('OC team comment') . "</label>";
28
+$teamcomment_field = '&nbsp; <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"';
Please login to merge, or discard this patch.
htdocs/lang/de/ocstyle/rating.inc.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,16 +17,16 @@
 block discarded – undo
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}/>&nbsp;' . 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}/>&nbsp;'.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.');
Please login to merge, or discard this patch.
htdocs/lang/de/ocstyle/editdesc.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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 = '&nbsp;<input type="submit" name="show_all_langs" value="' . t('Show all') . '" class="formbutton" onclick="submitbutton(\'show_all_langs\')" />';
19
+$show_all_langs_submit = '&nbsp;<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.');
Please login to merge, or discard this patch.
htdocs/lang/de/ocstyle/newcache.inc.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -22,23 +22,23 @@
 block discarded – undo
22 22
  $show_all = t('Show all');
23 23
  $default_NS = 'N';
24 24
  $default_EW = 'E';
25
- $date_time_format_message = '&nbsp;' . t('Format:&nbsp;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 = '&nbsp;<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 = '&nbsp;<span class="errormsg">' . t('No cache-type is chosen.') . '</span>';
37
- $size_not_ok_message = '&nbsp;<span class="errormsg">' . t('No cache-size is chosen.') . '</span>';
38
- $diff_not_ok_message = '&nbsp;<span class="errormsg">' . t('Choose both valuations!') . '</span>';
39
- $sizemismatch_message = '&nbsp;<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>';
25
+ $date_time_format_message = '&nbsp;'.t('Format:&nbsp;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 = '&nbsp;<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 = '&nbsp;<span class="errormsg">'.t('No cache-type is chosen.').'</span>';
37
+ $size_not_ok_message = '&nbsp;<span class="errormsg">'.t('No cache-size is chosen.').'</span>';
38
+ $diff_not_ok_message = '&nbsp;<span class="errormsg">'.t('Choose both valuations!').'</span>';
39
+ $sizemismatch_message = '&nbsp;<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 42
 
43 43
  $cache_submitted = t('Your cache is successfully added to the database. You will be redirected to the cache page, now.');
44 44
 
Please login to merge, or discard this patch.
htdocs/lang/de/ocstyle/removelog.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,5 +28,5 @@
 block discarded – undo
28 28
 function removed_message_title($lang)
29 29
 {
30 30
     global $translate;
31
-    return $translate->t('The owner of the cache has written the following comment to you:', '', basename(__FILE__), __LINE__, '', 1, $lang) . "\n---";
31
+    return $translate->t('The owner of the cache has written the following comment to you:', '', basename(__FILE__), __LINE__, '', 1, $lang)."\n---";
32 32
 }
Please login to merge, or discard this patch.
htdocs/lang/de/ocstyle/main.tpl.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -29,12 +29,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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>&nbsp;&nbsp;&nbsp;&nbsp;<strong>{t}Country:{/t}&nbsp;</strong></td>
@@ -163,11 +163,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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>&nbsp;
Please login to merge, or discard this patch.
htdocs/lang/de/ocstyle/varset.inc.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -22,33 +22,33 @@  discard block
 block discarded – undo
22 22
 tpl_set_var('loginbox', '&nbsp;');
23 23
 tpl_set_var(
24 24
     'functionsbox',
25
-    '<a href="index.php?page=suche">' . t('Search') . '</a> | <a href="index.php?page=sitemap">' . t('Sitemap') . '</a>'
25
+    '<a href="index.php?page=suche">'.t('Search').'</a> | <a href="index.php?page=sitemap">'.t('Sitemap').'</a>'
26 26
 );
27 27
 tpl_set_var('runtime', '');
28 28
 
29 29
 //set up main template specific string
30
-$sLoggedOut = '<form action="' . ($opt['page']['https']['force_login'] ? $opt['page']['absolute_https_url'] : '') . 'login.php" method="post" enctype="application/x-www-form-urlencoded" name="login" dir="ltr" style="display: inline;"><b>' . t(
30
+$sLoggedOut = '<form action="'.($opt['page']['https']['force_login'] ? $opt['page']['absolute_https_url'] : '').'login.php" method="post" enctype="application/x-www-form-urlencoded" name="login" dir="ltr" style="display: inline;"><b>'.t(
31 31
         'User:'
32
-    ) . '</b>&nbsp;&nbsp;<input name="email" size="10" type="text" class="textboxes" value="" />&nbsp;&nbsp;&nbsp;<b>' . t(
32
+    ).'</b>&nbsp;&nbsp;<input name="email" size="10" type="text" class="textboxes" value="" />&nbsp;&nbsp;&nbsp;<b>'.t(
33 33
         'Password:'
34
-    ) . '</b>&nbsp;&nbsp;<input name="password" size="10" type="password" class="textboxes" value="" />&nbsp;<input type="hidden" name="action" value="login" /><input type="hidden" name="target" value="{target}" /><input type="hidden" name="source" value="titlebar" />&nbsp;<input type="submit" name="LogMeIn" value="' . t(
34
+    ).'</b>&nbsp;&nbsp;<input name="password" size="10" type="password" class="textboxes" value="" />&nbsp;<input type="hidden" name="action" value="login" /><input type="hidden" name="target" value="{target}" /><input type="hidden" name="source" value="titlebar" />&nbsp;<input type="submit" name="LogMeIn" value="'.t(
35 35
         'Login'
36
-    ) . '" class="formbutton" style="width: 74px;" onclick="submitbutton(\'LogMeIn\')" /></form>';
37
-$sLoggedIn = "<b>" . t(
36
+    ).'" class="formbutton" style="width: 74px;" onclick="submitbutton(\'LogMeIn\')" /></form>';
37
+$sLoggedIn = "<b>".t(
38 38
         'Logged in as'
39
-    ) . ' <a href="myhome.php" class="testing-top-left-corner-username">{username}</a></b> - <a href="login.php?action=logout">' . t(
39
+    ).' <a href="myhome.php" class="testing-top-left-corner-username">{username}</a></b> - <a href="login.php?action=logout">'.t(
40 40
         'Logout'
41
-    ) . '</a>';
41
+    ).'</a>';
42 42
 
43 43
 // target in Loginbox setzen
44
-$target = basename($_SERVER['PHP_SELF']) . '?';
44
+$target = basename($_SERVER['PHP_SELF']).'?';
45 45
 
46 46
 // REQUEST-Variablen durchlaufen und an target anhaengen
47 47
 $allowed = ['cacheid', 'userid', 'logid', 'desclang', 'descid'];
48 48
 reset($_REQUEST);
49 49
 while (list ($varname, $varvalue) = each($_REQUEST)) {
50 50
     if (in_array($varname, $allowed)) {
51
-        $target .= $varname . '=' . $varvalue . '&';
51
+        $target .= $varname.'='.$varvalue.'&';
52 52
     }
53 53
 }
54 54
 if (mb_substr($target, - 1) == '?' || mb_substr($target, - 1) == '&') {
@@ -74,10 +74,10 @@  discard block
 block discarded – undo
74 74
  '<tr><td class="spacer" colspan="2"></td></tr>
75 75
     <tr>
76 76
         <td class="help" colspan="2">
77
-            <img src="lang/de/ocstyle/images/misc/hint.gif" border="0" width="15" height="11" alt="' . t('Notice') . '" title="' . t('Notice') . '" />
77
+            <img src="lang/de/ocstyle/images/misc/hint.gif" border="0" width="15" height="11" alt="' . t('Notice').'" title="'.t('Notice').'" />
78 78
             ' . t('Your HTML code will be changed again by a special filter. This is necessary to avoid dangerous HTML-tags,
79 79
                  such as &lt;script&gt;. A list of allowed HTML tags, you can find
80
-                 <a href="articles.php?page=htmltags">here</a>') . '
80
+                 <a href="articles.php?page=htmltags">here</a>').'
81 81
         </td>
82 82
     </tr>
83 83
     ';
Please login to merge, or discard this patch.