Completed
Push — master ( c2d7ad...3f78da )
by Thomas
07:29
created
htdocs/addtolist.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  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
 $tpl->name = 'addtolist';
11 11
 $tpl->menuitem = MNU_CACHES_ADDTOLIST;
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 $tpl->assign('cacheid', $cacheid);
23 23
 
24 24
 if (isset($_REQUEST['cancel'])) {
25
-    $tpl->redirect('viewcache.php?cacheid=' . $cacheid);
25
+    $tpl->redirect('viewcache.php?cacheid='.$cacheid);
26 26
 }
27 27
 
28 28
 $newlist_name = isset($_REQUEST['newlist_name']) ? trim($_REQUEST['newlist_name']) : false;
@@ -44,14 +44,14 @@  discard block
 block discarded – undo
44 44
                     $cachelist->watch(true);
45 45
                 }
46 46
             }
47
-            $tpl->redirect('viewcache.php?cacheid=' . $cacheid);
47
+            $tpl->redirect('viewcache.php?cacheid='.$cacheid);
48 48
         }
49 49
     } else {
50 50
         $cachelist = new cachelist($listid);
51 51
         if ($cachelist->exist()) {
52 52
             $cachelist->addCacheByID($cacheid);
53 53
         }
54
-        $tpl->redirect('viewcache.php?cacheid=' . $cacheid);
54
+        $tpl->redirect('viewcache.php?cacheid='.$cacheid);
55 55
     }
56 56
 }
57 57
 
Please login to merge, or discard this patch.
htdocs/newlogs.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  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
 $add_where = '';
11 11
 $newLogsPerCountry = $opt['logic']['new_logs_per_country'];
@@ -30,9 +30,9 @@  discard block
 block discarded – undo
30 30
     $country = false;
31 31
     $exclude_country = '*';
32 32
     $include_country = '%';
33
-    $add_where = "AND `caches`.`user_id`='" . sql_escape($ownerid) . "' ";
33
+    $add_where = "AND `caches`.`user_id`='".sql_escape($ownerid)."' ";
34 34
     if (!$show_own_logs) {
35
-        $add_where .= "AND `cache_logs`.`user_id`<>'" . sql_escape($login->userid) . "' ";
35
+        $add_where .= "AND `cache_logs`.`user_id`<>'".sql_escape($login->userid)."' ";
36 36
     }
37 37
     $tpl->caching = false;
38 38
     $logcount = 100;
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     $country = false;
50 50
     $exclude_country = '*';
51 51
     $include_country = '%';
52
-    $add_where = "AND `cache_logs`.`user_id`='" . sql_escape($userid) . "' ";
52
+    $add_where = "AND `cache_logs`.`user_id`='".sql_escape($userid)."' ";
53 53
     $tpl->caching = false;
54 54
     $logcount = 100;
55 55
     $paging = true;
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     $tpl->cache_lifetime = 900;
70 70
     $tpl->cache_id = $exclude_country;
71 71
     $logcount = 250;
72
-    $paging = false;  // paging would have poor performance for all logs
72
+    $paging = false; // paging would have poor performance for all logs
73 73
     $orderByDate = $logselection == 3 ? "{fromtable}.`order_date` DESC, " : "";
74 74
 } else {
75 75
     // latest logs for all countries or for one country
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     $tpl->cache_lifetime = 300;
89 89
     $tpl->cache_id = $country;
90 90
     $logcount = 250;
91
-    $paging = false;  // paging would have poor performance for all logs
91
+    $paging = false; // paging would have poor performance for all logs
92 92
     $orderByDate = $logselection == 3 ? "{fromtable}.`order_date` DESC, " : "";
93 93
     $optimize_for_latest_logs = ($country == '' || $country == $opt['page']['main_country']);
94 94
 }
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 if ($logselection == 1) {
102 102
     $add_where .= "AND DATEDIFF(NOW(), {fromtable}.`date`) < 30 ";
103 103
 }
104
-$tpl->cache_id .= "|" . $logselection;
104
+$tpl->cache_id .= "|".$logselection;
105 105
 
106 106
 $tpl->change_country_inpage = true;
107 107
 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                 `needs_maintenance`, `listing_outdated`, `order_date`
122 122
              FROM `cache_logs`
123 123
              ORDER BY `date_created` DESC
124
-             LIMIT " . (4 * $logcount) . ")"
124
+             LIMIT " . (4 * $logcount).")"
125 125
         );
126 126
         $fromtable = '`&loglist0`';
127 127
     } else {
@@ -132,16 +132,16 @@  discard block
 block discarded – undo
132 132
     sql_temp_table_slave('loglist');
133 133
     sql_slave(
134 134
         "CREATE TEMPORARY TABLE &loglist (`id` INT(11) PRIMARY KEY)
135
-        SELECT " . ($paging ? "SQL_CALC_FOUND_ROWS" : "") . " " . $fromtable . ".`id`
136
-        FROM " . $fromtable . "
137
-        INNER JOIN `caches` ON " . $fromtable . ".`cache_id`=`caches`.`cache_id`
135
+        SELECT " . ($paging ? "SQL_CALC_FOUND_ROWS" : "")." ".$fromtable.".`id`
136
+        FROM " . $fromtable."
137
+        INNER JOIN `caches` ON " . $fromtable.".`cache_id`=`caches`.`cache_id`
138 138
         INNER JOIN `cache_status` ON `caches`.`status`=`cache_status`.`id`
139
-        INNER JOIN `user` ON " . $fromtable . ".`user_id`=`user`.`user_id`
139
+        INNER JOIN `user` ON " . $fromtable.".`user_id`=`user`.`user_id`
140 140
         WHERE `cache_status`.`allow_user_view`=1
141 141
         AND `caches`.`country` LIKE '&1'
142 142
         AND `caches`.`country`<>'&2'
143
-        " . $add_where . "
144
-        ORDER BY " . str_replace("{fromtable}", $fromtable, $orderByDate) . $fromtable . ".`date_created` DESC
143
+        " . $add_where."
144
+        ORDER BY " . str_replace("{fromtable}", $fromtable, $orderByDate).$fromtable.".`date_created` DESC
145 145
         LIMIT &3, &4",
146 146
         $include_country,
147 147
         $exclude_country,
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
             ON `caches_attributes`.`cache_id`=`caches`.`cache_id`
203 203
             AND `caches_attributes`.`attrib_id`=6
204 204
         WHERE IFNULL(`cache_logs_restored`.`restored_by`,0)=0
205
-        ORDER BY " . $orderByCountry . str_replace("{fromtable}", "`cache_logs`", $orderByDate) . "`cache_logs`.`date_created` DESC",
205
+        ORDER BY " . $orderByCountry.str_replace("{fromtable}", "`cache_logs`", $orderByDate)."`cache_logs`.`date_created` DESC",
206 206
         $opt['template']['locale']
207 207
     );
208 208
 
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
             }
248 248
             sql_free_result($rsPic);
249 249
         }
250
-        $pics --;
250
+        $pics--;
251 251
 
252 252
         $rLog['first'] = false;
253 253
         if (isset($caches_logged)) {
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
 
302 302
     $tpl->assign('paging', $paging);
303 303
     if ($paging) {
304
-        $pager = new pager($_SERVER["SCRIPT_NAME"] . '?startat={offset}' . $urlparams);
304
+        $pager = new pager($_SERVER["SCRIPT_NAME"].'?startat={offset}'.$urlparams);
305 305
         $pager->make_from_offset($startat, $total_logs, $logcount);
306 306
     }
307 307
 }
Please login to merge, or discard this patch.
htdocs/util/stats/rank.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,4 +8,4 @@
 block discarded – undo
8 8
  *  downward compatibility
9 9
  ***************************************************************************/
10 10
 
11
-require_once __DIR__ . '/../../util2/stats/rank.php';
11
+require_once __DIR__.'/../../util2/stats/rank.php';
Please login to merge, or discard this patch.
htdocs/util/attributes/top.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -7,8 +7,8 @@  discard block
 block discarded – undo
7 7
 
8 8
 header('Content-type: text/html; charset=utf-8');
9 9
 
10
-$rootpath = __DIR__ . '/../../';
11
-require_once $rootpath . 'lib/common.inc.php';
10
+$rootpath = __DIR__.'/../../';
11
+require_once $rootpath.'lib/common.inc.php';
12 12
 
13 13
 $wp = isset($_REQUEST['wp']) ? $_REQUEST['wp'] : '';
14 14
 
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     $attrs_set = isset($_REQUEST['cache_attribs']) ? $_REQUEST['cache_attribs'] : '';
17 17
     $attrs = mb_split(';', $attrs_set);
18 18
 
19
-    $cache_id = sqlValue("SELECT `cache_id` FROM `caches` WHERE `wp_oc`='" . sql_escape($wp) . "'", 0);
19
+    $cache_id = sqlValue("SELECT `cache_id` FROM `caches` WHERE `wp_oc`='".sql_escape($wp)."'", 0);
20 20
     if ($cache_id == 0) {
21 21
         die('cache_id unknown');
22 22
     }
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     if ($attr_js != '') {
47 47
         $attr_js .= ',';
48 48
     }
49
-    $attr_js .= "new Array(" . $r['id'] . ", " . (isset($attrs[$r['id']]) ? 1 : 0) . ", '../../" . $r['icon_undef'] . "', '../../" . $r['icon_large'] . "')";
49
+    $attr_js .= "new Array(".$r['id'].", ".(isset($attrs[$r['id']]) ? 1 : 0).", '../../".$r['icon_undef']."', '../../".$r['icon_large']."')";
50 50
 }
51 51
 mysql_free_result($rs);
52 52
 ?>
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     <?php
100 100
     $rs = sql("SELECT `id`, `icon_large`, `icon_undef` FROM `cache_attrib`");
101 101
     while ($r = sql_fetch_assoc($rs)) {
102
-        echo '<img id="attr' . $r['id'] . '" onmousedown="toggleAttr(' . $r['id'] . ')" src="../../';
102
+        echo '<img id="attr'.$r['id'].'" onmousedown="toggleAttr('.$r['id'].')" src="../../';
103 103
 
104 104
         if (isset($attrs[$r['id']])) {
105 105
             echo $r['icon_large'];
Please login to merge, or discard this patch.
htdocs/util/attributes/list.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,8 +7,8 @@  discard block
 block discarded – undo
7 7
 
8 8
 header('Content-type: text/html; charset=utf-8');
9 9
 
10
-$rootpath = __DIR__ . '/../../';
11
-require_once $rootpath . 'lib/common.inc.php';
10
+$rootpath = __DIR__.'/../../';
11
+require_once $rootpath.'lib/common.inc.php';
12 12
 
13 13
 ?>
14 14
 <html>
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     AND ISNULL(`caches_attributes`.`cache_id`) ORDER BY `caches`.`wp_oc`'
42 42
 );
43 43
 while ($rCache = sql_fetch_assoc($rsCaches)) {
44
-    echo '<a href="javascript:select(\'' . $rCache['wp_oc'] . '\')">' . $rCache['wp_oc'] . '<br />';
44
+    echo '<a href="javascript:select(\''.$rCache['wp_oc'].'\')">'.$rCache['wp_oc'].'<br />';
45 45
 }
46 46
 mysql_free_result($rsCaches);
47 47
 ?>
Please login to merge, or discard this patch.
htdocs/util/google-earth/caches.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,4 +5,4 @@
 block discarded – undo
5 5
  *  Unicode Reminder メモ
6 6
  ***************************************************************************/
7 7
 
8
-require_once __DIR__ . '/../../util2/google-earth/caches.php';
8
+require_once __DIR__.'/../../util2/google-earth/caches.php';
Please login to merge, or discard this patch.
htdocs/util/notification/settings-dist.inc.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,9 +9,9 @@
 block discarded – undo
9 9
     $maildomain = 'opencaching.de';
10 10
 }
11 11
 
12
-$mailfrom = 'noreply@' . $maildomain;
12
+$mailfrom = 'noreply@'.$maildomain;
13 13
 
14 14
 $debug = false;
15 15
 $debug_mailto = '[email protected]';
16 16
 
17
-$notifypid = $rootpath . 'cache/notify.pid';
17
+$notifypid = $rootpath.'cache/notify.pid';
Please login to merge, or discard this patch.
htdocs/util/notification/run_notify.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -10,15 +10,15 @@  discard block
 block discarded – undo
10 10
  ***************************************************************************/
11 11
 
12 12
 // needs absolute rootpath because called as cronjob
13
-$rootpath = __DIR__ . '/../../';
13
+$rootpath = __DIR__.'/../../';
14 14
 
15
-require_once $rootpath . 'lib/clicompatbase.inc.php';
16
-require_once $rootpath . 'lib2/translate.class.php';
17
-require_once __DIR__ . '/settings.inc.php';
18
-require_once $rootpath . 'lib/consts.inc.php';
19
-require_once $rootpath . 'lib2/ProcessSync.class.php';
20
-require_once $rootpath . 'lib/logic.inc.php';
21
-require_once $rootpath . 'lib2/logic/geomath.class.php';
15
+require_once $rootpath.'lib/clicompatbase.inc.php';
16
+require_once $rootpath.'lib2/translate.class.php';
17
+require_once __DIR__.'/settings.inc.php';
18
+require_once $rootpath.'lib/consts.inc.php';
19
+require_once $rootpath.'lib2/ProcessSync.class.php';
20
+require_once $rootpath.'lib/logic.inc.php';
21
+require_once $rootpath.'lib2/logic/geomath.class.php';
22 22
 
23 23
 if (!cronjobs_enabled()) {
24 24
     exit;
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     switch ($notify['type']) {
87 87
         case notify_new_cache: // Type: new cache
88 88
             $mailbody = fetch_email_template('notify_newcache', $notify['recp_lang'], $notify['recp_domain']);
89
-            $mailsubject = '[' . $maildomain . '] ' .
89
+            $mailsubject = '['.$maildomain.'] '.
90 90
                 $translate->t(
91 91
                     $notify['oconly'] ? 'New OConly cache:' : 'New cache:',
92 92
                     '',
@@ -95,13 +95,13 @@  discard block
 block discarded – undo
95 95
                     '',
96 96
                     1,
97 97
                     $notify['recp_lang']
98
-                ) .
99
-                ' ' . $notify['cachename'];
98
+                ).
99
+                ' '.$notify['cachename'];
100 100
             break;
101 101
 
102 102
         case notify_new_oconly: // Type: new OConly flag
103 103
             $mailbody = fetch_email_template('notify_newoconly', $notify['recp_lang'], $notify['recp_domain']);
104
-            $mailsubject = '[' . $maildomain . '] ' .
104
+            $mailsubject = '['.$maildomain.'] '.
105 105
                 $translate->t(
106 106
                     'Cache was marked as OConly:',
107 107
                     '',
@@ -110,8 +110,8 @@  discard block
 block discarded – undo
110 110
                     '',
111 111
                     1,
112 112
                     $notify['recp_lang']
113
-                ) .
114
-                ' ' . $notify['cachename'];
113
+                ).
114
+                ' '.$notify['cachename'];
115 115
             break;
116 116
 
117 117
         default:
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
         );
176 176
 
177 177
         /* begin send out everything that has to be sent */
178
-        $email_headers = 'From: "' . $mailfrom . '" <' . $mailfrom . '>';
178
+        $email_headers = 'From: "'.$mailfrom.'" <'.$mailfrom.'>';
179 179
 
180 180
         // send email
181 181
         if ($debug == true) {
@@ -188,11 +188,11 @@  discard block
 block discarded – undo
188 188
             mb_send_mail($mailadr, $mailsubject, $mailbody, $email_headers);
189 189
         }
190 190
     } else {
191
-        echo "Unknown notification type: " . $notify['type'] . "<br />";
191
+        echo "Unknown notification type: ".$notify['type']."<br />";
192 192
     }
193 193
 
194 194
     // logentry($module, $eventid, $userid, $objectid1, $objectid2, $logtext, $details)
195
-    logentry('notify_newcache', 8, $notify['recid'], $notify['cache_id'], 0, 'Sending mail to ' . $mailadr, []);
195
+    logentry('notify_newcache', 8, $notify['recid'], $notify['cache_id'], 0, 'Sending mail to '.$mailadr, []);
196 196
 
197 197
     return 0;
198 198
 }
Please login to merge, or discard this patch.
htdocs/util/watchlist/settings-dist.inc.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,9 +5,9 @@
 block discarded – undo
5 5
     $maildomain = 'opencaching.de';
6 6
 }
7 7
 
8
-$mailfrom = 'noreply@' . $maildomain;
8
+$mailfrom = 'noreply@'.$maildomain;
9 9
 
10 10
 $debug = false;
11 11
 $debug_mailto = '[email protected]';
12 12
 
13
-$watchpid = $rootpath . 'cache/watch.pid';
13
+$watchpid = $rootpath.'cache/watch.pid';
Please login to merge, or discard this patch.