Completed
Push — master ( 598c1e...182b8c )
by Thomas
15:55 queued 08:34
created
htdocs/lib2/login.class.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -20,13 +20,13 @@
 block discarded – undo
20 20
  *
21 21
  ***************************************************************************/
22 22
 
23
-define('LOGIN_UNKNOWN_ERROR', - 1);     // unkown error occured
24
-define('LOGIN_OK', 0);                 // login succeeded
25
-define('LOGIN_BADUSERPW', 1);          // bad username or password
26
-define('LOGIN_TOOMUCHLOGINS', 2);      // too many logins in short time
27
-define('LOGIN_USERNOTACTIVE', 3);      // the useraccount locked
23
+define('LOGIN_UNKNOWN_ERROR', - 1); // unkown error occured
24
+define('LOGIN_OK', 0); // login succeeded
25
+define('LOGIN_BADUSERPW', 1); // bad username or password
26
+define('LOGIN_TOOMUCHLOGINS', 2); // too many logins in short time
27
+define('LOGIN_USERNOTACTIVE', 3); // the useraccount locked
28 28
 define('LOGIN_EMPTY_USERPASSWORD', 4); // given username/password was empty
29
-define('LOGIN_LOGOUT_OK', 5);          // logout was successfull
29
+define('LOGIN_LOGOUT_OK', 5); // logout was successfull
30 30
 
31 31
 // login times in seconds
32 32
 define('LOGIN_TIME', 60 * 60);
Please login to merge, or discard this patch.
htdocs/templates2/ocstyle/search.tpl.inc.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,8 @@
 block discarded – undo
8 8
  ****************************************************************************/
9 9
 
10 10
     // search.php -> $tpl->error
11
-     $outputformat_notexist = _('The selected output format is unknown!');
12
-     $error_query_not_found = _('The search operation could not be executed, please reenter the search data.');
11
+        $outputformat_notexist = _('The selected output format is unknown!');
12
+        $error_query_not_found = _('The search operation could not be executed, please reenter the search data.');
13 13
     $unknown_searchoption = _('unknown search option');
14 14
     $unknown_searchtype = _('unknown search type');
15 15
 
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -14,14 +14,14 @@  discard block
 block discarded – undo
14 14
     $unknown_searchtype = _('unknown search type');
15 15
 
16 16
     // search.php -> search.tpl
17
-    $error_plz = '<tr><td colspan="3"><span class="errormsg">' . _('The postal code could not be found') . '</span></td></tr>';
18
-    $error_ort = '<tr><td colspan="3"><span class="errormsg">' . _('There does no city exist with this name') . '</span></td></tr>';
19
-    $error_locidnocoords = '<tr><td colspan="3"><span class="errormsg">' . _('There are no Koordinates available for the selected city') . '</span></td></tr>';
20
-    $error_noort = '<tr><td colspan="3"><span class="errormsg">' . _('The entered city is not valid.') . '</span></td></tr>';
21
-    $error_nowaypointfound = '<tr><td colspan="3"><span class="errormsg">' . _('There does no cache exist with this waypoint') . '</span></td></tr>';
22
-    $error_nocoords = '<tr><td colspan="3"><span class="errormsg">' . _('The entered coordinates are no valid.') . '</span></td></tr>';
23
-    $error_nofulltext = '<tr><td colspan="3"><span class="errormsg">' . _('The entered text is invalid.') . '</span></td></tr>';
24
-    $error_fulltexttoolong = '<tr><td colspan="3"><span class="errormsg">' . _('The entered text contains more than 50 words.') . '</span></td></tr>';
17
+    $error_plz = '<tr><td colspan="3"><span class="errormsg">'._('The postal code could not be found').'</span></td></tr>';
18
+    $error_ort = '<tr><td colspan="3"><span class="errormsg">'._('There does no city exist with this name').'</span></td></tr>';
19
+    $error_locidnocoords = '<tr><td colspan="3"><span class="errormsg">'._('There are no Koordinates available for the selected city').'</span></td></tr>';
20
+    $error_noort = '<tr><td colspan="3"><span class="errormsg">'._('The entered city is not valid.').'</span></td></tr>';
21
+    $error_nowaypointfound = '<tr><td colspan="3"><span class="errormsg">'._('There does no cache exist with this waypoint').'</span></td></tr>';
22
+    $error_nocoords = '<tr><td colspan="3"><span class="errormsg">'._('The entered coordinates are no valid.').'</span></td></tr>';
23
+    $error_nofulltext = '<tr><td colspan="3"><span class="errormsg">'._('The entered text is invalid.').'</span></td></tr>';
24
+    $error_fulltexttoolong = '<tr><td colspan="3"><span class="errormsg">'._('The entered text contains more than 50 words.').'</span></td></tr>';
25 25
 
26 26
     // search.php -> selectlocid.tpl
27 27
     $locline = '<tr><td width="50px"><p>{nr}.&nbsp;</p></td><td><p><b><a href="search.php?{urlparams}">{locationname}</a>{secondlocationname}</b></p></td></tr>
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     $no_location_coords = _('no coordinates available');
33 33
 
34 34
     // search.html.inc.php -> search.result.caches.tpl
35
-    $caches_newstring = '<b class="newsymbol">&nbsp;' . _('NEW') . '&nbsp;</b>&nbsp;';
35
+    $caches_newstring = '<b class="newsymbol">&nbsp;'._('NEW').'&nbsp;</b>&nbsp;';
36 36
     $caches_oconlystring = '<img src="resource2/ocstyle/images/misc/is_oconly.png" alt="OConly" title="OConly" style="margin:0px; padding:0px" width="64" height="35" />';
37 37
 
38 38
     $cache_attrib_group =
Please login to merge, or discard this patch.
htdocs/ignore.php 2 patches
Switch Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -29,12 +29,12 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,11 +5,11 @@  discard block
 block discarded – undo
5 5
  *  Unicode Reminder メモ
6 6
  ***************************************************************************/
7 7
 
8
-require __DIR__ . '/lib2/web.inc.php';
8
+require __DIR__.'/lib2/web.inc.php';
9 9
 
10 10
 $cache_id = isset($_GET['cacheid']) ? $_GET['cacheid'] + 0 : 0;
11 11
 $action = isset($_GET['action']) ? $_GET['action'] : '';
12
-$target = isset($_GET['target']) ? $_GET['target'] : 'viewcache.php?cacheid=' . $cache_id;
12
+$target = isset($_GET['target']) ? $_GET['target'] : 'viewcache.php?cacheid='.$cache_id;
13 13
 
14 14
 $login->verify();
15 15
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 $map_result_id = sql_value(
42 42
     "SELECT `result_id`
43 43
      FROM `map2_result`
44
-     WHERE INSTR(sqlquery,\"`user_id`='" . sql_escape($login->userid) . "'\")
44
+     WHERE INSTR(sqlquery,\"`user_id`='" . sql_escape($login->userid)."'\")
45 45
      LIMIT 1",
46 46
     0
47 47
 );
Please login to merge, or discard this patch.
htdocs/editcache.php 3 patches
Braces   +15 added lines, -5 removed lines patch added patch discarded remove patch
@@ -76,10 +76,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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}',
Please login to merge, or discard this patch.
Spacing   +63 added lines, -63 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@  discard block
 block discarded – undo
13 13
 use Oc\Libse\ChildWp\HandlerChildWp;
14 14
 use Oc\Libse\Coordinate\FormatterCoordinate;
15 15
 
16
-require_once __DIR__ . '/lib/consts.inc.php';
16
+require_once __DIR__.'/lib/consts.inc.php';
17 17
 $opt['gui'] = GUI_HTML;
18
-require_once __DIR__ . '/lib/common.inc.php';
18
+require_once __DIR__.'/lib/common.inc.php';
19 19
 
20 20
 function getWaypoints($cacheid)
21 21
 {
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
         $tplname = 'login';
86 86
 
87 87
         tpl_set_var('username', '');
88
-        tpl_set_var('target', 'editcache.php?cacheid=' . urlencode($cache_id));
88
+        tpl_set_var('target', 'editcache.php?cacheid='.urlencode($cache_id));
89 89
         tpl_set_var('message_start', "");
90 90
         tpl_set_var('message_end', "");
91 91
         tpl_set_var('message', $login_required);
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
             if ($cache_record['user_id'] == $usr['userid'] || $login->listingAdmin()) {
132 132
                 $tplname = 'editcache';
133 133
 
134
-                require $stylepath . '/editcache.inc.php';
134
+                require $stylepath.'/editcache.inc.php';
135 135
 
136 136
                 if ($cache_record['node'] != $oc_nodeid) {
137 137
                     tpl_errorMsg('editcache', $error_wrong_node);
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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'];
@@ -457,7 +457,7 @@  discard block
 block discarded – undo
457 457
                             $activation_date = 'NULL';
458 458
                         } elseif ($publish == 'later') {
459 459
                             $status = 5;
460
-                            $activation_date = "'" . sql_escape(
460
+                            $activation_date = "'".sql_escape(
461 461
                                     date(
462 462
                                         'Y-m-d H:i:s',
463 463
                                         mktime(
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
                                             $cache_activate_year
470 470
                                         )
471 471
                                     )
472
-                                ) . "'";
472
+                                )."'";
473 473
                         } elseif ($publish == 'notnow') {
474 474
                             $status = 5;
475 475
                             $activation_date = 'NULL';
@@ -564,7 +564,7 @@  discard block
 block discarded – undo
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,25 +585,25 @@  discard block
 block discarded – undo
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')",
592 592
                                     $cache_id,
593 593
                                     $cache_attribs[$i] + 0
594 594
                                 );
595
-                                $attriblist .= "," . ($cache_attribs[$i] + 0);
595
+                                $attriblist .= ",".($cache_attribs[$i] + 0);
596 596
                             }
597 597
                         }
598 598
 
599 599
                         sql(
600
-                            "DELETE FROM `caches_attributes` WHERE `cache_id`='&1' AND `attrib_id` NOT IN (" . $attriblist . ")",
600
+                            "DELETE FROM `caches_attributes` WHERE `cache_id`='&1' AND `attrib_id` NOT IN (".$attriblist.")",
601 601
                             // SQL injections in $attriblist prevented by adding 0 above
602 602
                             $cache_id
603 603
                         );
604 604
 
605 605
                         //call eventhandler
606
-                        require_once $opt['rootpath'] . 'lib/eventhandler.inc.php';
606
+                        require_once $opt['rootpath'].'lib/eventhandler.inc.php';
607 607
                         event_edit_cache($cache_id, $usr['userid'] + 0);
608 608
 
609 609
                         // if old status is not yet published and new status is published => notify-event
@@ -612,7 +612,7 @@  discard block
 block discarded – undo
612 612
                         }
613 613
 
614 614
                         //display cache-page
615
-                        tpl_redirect('viewcache.php?cacheid=' . urlencode($cache_id));
615
+                        tpl_redirect('viewcache.php?cacheid='.urlencode($cache_id));
616 616
                         // Ocprop: Location:\s*$viewcacheUrl\?cacheid=([0-9]+)
617 617
                         // (s.a. tpl_redirect() in common.inc.php
618 618
                         exit;
@@ -654,15 +654,15 @@  discard block
 block discarded – undo
654 654
 
655 655
                 while ($record = sql_fetch_assoc($rs)) {
656 656
                     $sSelected = ($record['short'] == $cache_country) ? ' selected="selected"' : '';
657
-                    $countriesoptions .= '<option value="' . htmlspecialchars(
657
+                    $countriesoptions .= '<option value="'.htmlspecialchars(
658 658
                             $record['short'],
659 659
                             ENT_COMPAT,
660 660
                             'UTF-8'
661
-                        ) . '"' . $sSelected . '>' . htmlspecialchars(
661
+                        ).'"'.$sSelected.'>'.htmlspecialchars(
662 662
                             $record['name'],
663 663
                             ENT_COMPAT,
664 664
                             'UTF-8'
665
-                        ) . '</option>' . "\n";
665
+                        ).'</option>'."\n";
666 666
                 }
667 667
                 tpl_set_var('countryoptions', $countriesoptions);
668 668
                 sql_free_result($rs);
@@ -719,7 +719,7 @@  discard block
 block discarded – undo
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,11 +776,11 @@  discard block
 block discarded – undo
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
-                        $difficulty_options .= '<option value="' . $i . '" selected="selected">' . $i / 2 . '</option>';
781
+                        $difficulty_options .= '<option value="'.$i.'" selected="selected">'.$i / 2.'</option>';
782 782
                     } else {
783
-                        $difficulty_options .= '<option value="' . $i . '">' . $i / 2 . '</option>';
783
+                        $difficulty_options .= '<option value="'.$i.'">'.$i / 2.'</option>';
784 784
                     }
785 785
                     $difficulty_options .= "\n";
786 786
                 }
@@ -788,11 +788,11 @@  discard block
 block discarded – undo
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
-                        $terrain_options .= '<option value="' . $i . '" selected="selected">' . $i / 2 . '</option>';
793
+                        $terrain_options .= '<option value="'.$i.'" selected="selected">'.$i / 2.'</option>';
794 794
                     } else {
795
-                        $terrain_options .= '<option value="' . $i . '">' . $i / 2 . '</option>';
795
+                        $terrain_options .= '<option value="'.$i.'">'.$i / 2.'</option>';
796 796
                     }
797 797
                     $terrain_options .= "\n";
798 798
                 }
@@ -805,16 +805,16 @@  discard block
 block discarded – undo
805 805
                                                         FROM `cache_type`
806 806
                                              LEFT JOIN `sys_trans` ON `cache_type`.`trans_id`=`sys_trans`.`id`
807 807
                                              LEFT JOIN `sys_trans_text` ON `sys_trans`.`id`=`sys_trans_text`.`trans_id` AND
808
-                                                                 `sys_trans_text`.`lang`='" . sql_escape($locale) . "'
808
+                                                                 `sys_trans_text`.`lang`='" . sql_escape($locale)."'
809 809
                                                 ORDER BY `cache_type`.`ordinal` ASC"
810 810
                 );
811 811
                 while ($rType = sql_fetch_assoc($rsTypes)) {
812 812
                     $sSelected = ($rType['id'] == $cache_type) ? ' selected="selected"' : '';
813
-                    $types .= '<option value="' . $rType['id'] . '"' . $sSelected . '>' . htmlspecialchars(
813
+                    $types .= '<option value="'.$rType['id'].'"'.$sSelected.'>'.htmlspecialchars(
814 814
                             $rType['name'],
815 815
                             ENT_COMPAT,
816 816
                             'UTF-8'
817
-                        ) . '</option>';
817
+                        ).'</option>';
818 818
                 }
819 819
                 sql_free_result($rsTypes);
820 820
                 tpl_set_var('typeoptions', $types);
@@ -826,16 +826,16 @@  discard block
 block discarded – undo
826 826
                                                         FROM `cache_size`
827 827
                                              LEFT JOIN `sys_trans` ON `cache_size`.`trans_id`=`sys_trans`.`id`
828 828
                                              LEFT JOIN `sys_trans_text` ON `sys_trans`.`id`=`sys_trans_text`.`trans_id` AND
829
-                                                                 `sys_trans_text`.`lang`='" . sql_escape($locale) . "'
829
+                                                                 `sys_trans_text`.`lang`='" . sql_escape($locale)."'
830 830
                                                 ORDER BY `cache_size`.`ordinal` ASC"
831 831
                 );
832 832
                 while ($rSize = sql_fetch_assoc($rsSizes)) {
833 833
                     $sSelected = ($rSize['id'] == $sel_size) ? ' selected="selected"' : '';
834
-                    $sizes .= '<option value="' . $rSize['id'] . '"' . $sSelected . '>' . htmlspecialchars(
834
+                    $sizes .= '<option value="'.$rSize['id'].'"'.$sSelected.'>'.htmlspecialchars(
835 835
                             $rSize['name'],
836 836
                             ENT_COMPAT,
837 837
                             'UTF-8'
838
-                        ) . '</option>';
838
+                        ).'</option>';
839 839
                 }
840 840
                 sql_free_result($rsSizes);
841 841
                 tpl_set_var('sizeoptions', $sizes);
@@ -846,14 +846,14 @@  discard block
 block discarded – undo
846 846
                 $gc_com_refs = false;
847 847
                 foreach ($desclangs AS $desclang) {
848 848
                     if (count($desclangs) > 1) {
849
-                        $remove_url = 'removedesc.php?cacheid=' . urlencode($cache_id) . '&desclang=' . urlencode(
849
+                        $remove_url = 'removedesc.php?cacheid='.urlencode($cache_id).'&desclang='.urlencode(
850 850
                                 $desclang
851 851
                             );
852
-                        $removedesc = '&nbsp;[<a href="' . htmlspecialchars(
852
+                        $removedesc = '&nbsp;[<a href="'.htmlspecialchars(
853 853
                                 $remove_url,
854 854
                                 ENT_COMPAT,
855 855
                                 'UTF-8'
856
-                            ) . '">' . $remove . '</a>]';
856
+                            ).'">'.$remove.'</a>]';
857 857
                     } else {
858 858
                         $removedesc = '';
859 859
                     }
@@ -869,17 +869,17 @@  discard block
 block discarded – undo
869 869
                     }
870 870
                     sql_free_result($resp);
871 871
 
872
-                    $edit_url = 'editdesc.php?cacheid=' . urlencode($cache_id) . '&desclang=' . urlencode($desclang);
872
+                    $edit_url = 'editdesc.php?cacheid='.urlencode($cache_id).'&desclang='.urlencode($desclang);
873 873
 
874
-                    $cache_descs .= '<tr><td colspan="2">' . htmlspecialchars(
874
+                    $cache_descs .= '<tr><td colspan="2">'.htmlspecialchars(
875 875
                             db_LanguageFromShort($desclang),
876 876
                             ENT_COMPAT,
877 877
                             'UTF-8'
878
-                        ) . ' [<a href="' . htmlspecialchars(
878
+                        ).' [<a href="'.htmlspecialchars(
879 879
                             $edit_url,
880 880
                             ENT_COMPAT,
881 881
                             'UTF-8'
882
-                        ) . '">' . $edit . '</a>]' . $removedesc . '</td></tr>';
882
+                        ).'">'.$edit.'</a>]'.$removedesc.'</td></tr>';
883 883
                 }
884 884
                 tpl_set_var('cache_descs', $cache_descs);
885 885
 
@@ -899,33 +899,33 @@  discard block
 block discarded – undo
899 899
                                                              FROM `cache_status`
900 900
                                                   LEFT JOIN `sys_trans` ON `cache_status`.`trans_id`=`sys_trans`.`id`
901 901
                                                   LEFT JOIN `sys_trans_text` ON `sys_trans`.`id`=`sys_trans_text`.`trans_id` AND
902
-                                                                      `sys_trans_text`.`lang`='" . sql_escape($locale) . "'
902
+                                                                      `sys_trans_text`.`lang`='" . sql_escape($locale)."'
903 903
                                                           WHERE `cache_status`.`id` NOT IN (4, 5, 7) OR `cache_status`.`id`='" . sql_escape(
904 904
                             $status_old + 0
905
-                        ) . "'
905
+                        )."'
906 906
                                                      ORDER BY `cache_status`.`id` ASC"
907 907
                     );
908 908
                     while ($rStatus = sql_fetch_assoc($rsStatus)) {
909 909
                         $sSelected = ($rStatus['id'] == $status) ? ' selected="selected"' : '';
910 910
                         if ($sSelected != '' || $status_old == 5) {
911
-                            $statusoptions .= '<option value="' . htmlspecialchars(
911
+                            $statusoptions .= '<option value="'.htmlspecialchars(
912 912
                                     $rStatus['id'],
913 913
                                     ENT_COMPAT,
914 914
                                     'UTF-8'
915
-                                ) . '"' . $sSelected . '>' . htmlspecialchars(
915
+                                ).'"'.$sSelected.'>'.htmlspecialchars(
916 916
                                     $rStatus['name'],
917 917
                                     ENT_COMPAT,
918 918
                                     'UTF-8'
919
-                                ) . '</option>';
919
+                                ).'</option>';
920 920
                         }
921 921
                     }
922 922
                     sql_free_result($rsStatus);
923 923
                 } else {
924
-                    $statusoptions .= '<option value="7" selected="selected">' . htmlspecialchars(
924
+                    $statusoptions .= '<option value="7" selected="selected">'.htmlspecialchars(
925 925
                             t("Locked, invisible"),
926 926
                             ENT_COMPAT,
927 927
                             'UTF-8'
928
-                        ) . '</option>';
928
+                        ).'</option>';
929 929
                 }
930 930
                 tpl_set_var('statusoptions', $statusoptions);
931 931
                 tpl_set_var('statuschange', $status_old == 5 ? '' : mb_ereg_replace('%1', $cache_id, $status_change));
@@ -955,11 +955,11 @@  discard block
 block discarded – undo
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
-                            $activation_hours .= '<option value="' . $i . '" selected="selected">' . $i . '</option>';
960
+                            $activation_hours .= '<option value="'.$i.'" selected="selected">'.$i.'</option>';
961 961
                         } else {
962
-                            $activation_hours .= '<option value="' . $i . '">' . $i . '</option>';
962
+                            $activation_hours .= '<option value="'.$i.'">'.$i.'</option>';
963 963
                         }
964 964
                         $activation_hours .= "\n";
965 965
                     }
@@ -983,7 +983,7 @@  discard block
 block discarded – undo
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
 
@@ -1058,7 +1058,7 @@  discard block
 block discarded – undo
1058 1058
                 $st_hours = floor($search_time);
1059 1059
                 $st_minutes = sprintf('%02.0F', ($search_time - $st_hours) * 60);
1060 1060
 
1061
-                tpl_set_var('search_time', $st_hours . ':' . $st_minutes);
1061
+                tpl_set_var('search_time', $st_hours.':'.$st_minutes);
1062 1062
 
1063 1063
                 tpl_set_var('way_length', $way_length);
1064 1064
                 tpl_set_var('log_pw', htmlspecialchars($log_pw, ENT_COMPAT, 'UTF-8'));
@@ -1066,7 +1066,7 @@  discard block
 block discarded – undo
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
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -844,7 +844,7 @@
 block discarded – undo
844 844
                 $desclangs = mb_split(',', $cache_record['desc_languages']);
845 845
                 $cache_descs = '';
846 846
                 $gc_com_refs = false;
847
-                foreach ($desclangs AS $desclang) {
847
+                foreach ($desclangs as $desclang) {
848 848
                     if (count($desclangs) > 1) {
849 849
                         $remove_url = 'removedesc.php?cacheid=' . urlencode($cache_id) . '&desclang=' . urlencode(
850 850
                                 $desclang
Please login to merge, or discard this patch.
htdocs/lang/de/ocstyle/newcache.inc.php 2 patches
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -14,40 +14,40 @@
 block discarded – undo
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 = '&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
-
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()" />&nbsp;';
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 = '&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
+
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()" />&nbsp;';
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>
Please login to merge, or discard this 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 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@
 block discarded – undo
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)
Please login to merge, or discard this 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/removedesc.inc.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
htdocs/lang/de/ocstyle/varset.inc.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
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') . '" />
Please login to merge, or discard this 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.
htdocs/lang/de/expressions.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
 //common vars
23 23
 $dateformat = $opt['locale'][$locale]['format']['date'];
24
-$reset = t('Reset');  // obsolete
24
+$reset = t('Reset'); // obsolete
25 25
 $yes = t('Yes');
26 26
 $no = t('No');
27 27
 
Please login to merge, or discard this patch.