Completed
Pull Request — master (#314)
by Thomas
07:26
created
htdocs/myprofile.php 1 patch
Spacing   +2 added lines, -2 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 = 'myprofile';
11 11
 $tpl->menuitem = MNU_MYPROFILE_DATA;
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
 if ($login->userid == 0) {
21 21
     if ($action == 'change' || $action == 'changeemail') {
22
-        $tpl->redirect('login.php?target=' . urlencode('myprofile.php?action=change'));
22
+        $tpl->redirect('login.php?target='.urlencode('myprofile.php?action=change'));
23 23
     } else {
24 24
         $tpl->redirect('login.php?target=myprofile.php');
25 25
     }
Please login to merge, or discard this patch.
htdocs/ignore.php 1 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/mailto.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,14 +5,14 @@  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 = 'mailto';
11 11
 $tpl->menuitem = MNU_USER_MAILTO;
12 12
 
13 13
 $login->verify();
14 14
 if ($login->userid == 0) {
15
-    $tpl->redirect('login.php?target=' . urlencode($tpl->target));
15
+    $tpl->redirect('login.php?target='.urlencode($tpl->target));
16 16
 }
17 17
 
18 18
 $userid = isset($_REQUEST['userid']) ? $_REQUEST['userid'] + 0 : 0;
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     $wp = $_REQUEST['wp'];
37 37
     $cachename = trim(sql_value("SELECT `name` FROM `caches` WHERE `wp_oc`='&1'", '', $wp));
38 38
     if ($cachename) {
39
-        $subject = $translate->t('Your geocache', '', 0, 0) . ' "' . $cachename . '" (' . $wp . ')';
39
+        $subject = $translate->t('Your geocache', '', 0, 0).' "'.$cachename.'" ('.$wp.')';
40 40
     }
41 41
 } elseif (isset($_REQUEST['reportid']) && $login->admin) {
42 42
     $rs = sql(
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         $_REQUEST['reportid']
48 48
     );
49 49
     if ($r = sql_fetch_assoc($rs)) {
50
-        $subject = $translate->t('Your geocache report for', '', 0, 0) . ' ' . $r['wp_oc'] . ' (' . $r['name'] . ')';
50
+        $subject = $translate->t('Your geocache report for', '', 0, 0).' '.$r['wp_oc'].' ('.$r['name'].')';
51 51
     }
52 52
     sql_free_result($rs);
53 53
 }
Please login to merge, or discard this patch.
htdocs/config2/settings-dist.inc.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 // database placeholder
109 109
 
110 110
 // productive database with opencaching-tables
111
-$opt['db']['placeholder']['db'] = '';    // selected by default
111
+$opt['db']['placeholder']['db'] = ''; // selected by default
112 112
 
113 113
 // empty database for temporary table creation
114 114
 $opt['db']['placeholder']['tmpdb'] = '';
@@ -122,14 +122,14 @@  discard block
 block discarded – undo
122 122
 $opt['system']['maillog']['syslog_db_user'] = '';
123 123
 $opt['system']['maillog']['syslog_db_password'] = '';
124 124
 $opt['system']['maillog']['syslog_db_table'] = '';
125
-$opt['system']['maillog']['syslog_oc_host'] = '';  // 'host_name' column in syslog DB
126
-$opt['system']['maillog']['syslog_mta'] = 'postfix/smtp%';  // 'program' column in syslog DB
127
-$opt['system']['maillog']['column']['id'] = 'id';               // 'ID'
128
-$opt['system']['maillog']['column']['created'] = 'created';     // 'ReceivedAt'
125
+$opt['system']['maillog']['syslog_oc_host'] = ''; // 'host_name' column in syslog DB
126
+$opt['system']['maillog']['syslog_mta'] = 'postfix/smtp%'; // 'program' column in syslog DB
127
+$opt['system']['maillog']['column']['id'] = 'id'; // 'ID'
128
+$opt['system']['maillog']['column']['created'] = 'created'; // 'ReceivedAt'
129 129
 $opt['system']['maillog']['column']['host_name'] = 'host_name'; // 'FromHost'
130
-$opt['system']['maillog']['column']['message'] = 'message';     // 'Message'
131
-$opt['system']['maillog']['column']['program'] = 'program';     // 'SysLogTag'
132
-$opt['system']['maillog']['inactivity_warning'] = 30;   // warn after N days without new entries
130
+$opt['system']['maillog']['column']['message'] = 'message'; // 'Message'
131
+$opt['system']['maillog']['column']['program'] = 'program'; // 'SysLogTag'
132
+$opt['system']['maillog']['inactivity_warning'] = 30; // warn after N days without new entries
133 133
 
134 134
 /* cookie or session
135 135
  *
@@ -151,15 +151,15 @@  discard block
 block discarded – undo
151 151
  * 
152 152
  * other parameters may be customized
153 153
  */
154
-$opt['session']['mode'] = SAVE_COOKIE;     // don't change - other option "SAVE_SESSION" is not implemented properly
154
+$opt['session']['mode'] = SAVE_COOKIE; // don't change - other option "SAVE_SESSION" is not implemented properly
155 155
 $opt['session']['cookiename'] = 'oc_devel'; // only with SAVE_COOKIE
156 156
 $opt['session']['path'] = '/';
157
-$opt['session']['domain'] = '';    // may be overwritten by $opt['domain'][...]['cookiedomain']
157
+$opt['session']['domain'] = ''; // may be overwritten by $opt['domain'][...]['cookiedomain']
158 158
 
159 159
 /* maximum session lifetime
160 160
  */
161 161
 $opt['session']['expire']['cookie'] = 31536000; // when cookies used (default 1 year)
162
-$opt['session']['expire']['url'] = 1800;        // when no cookies used (default 30 min since last call), attention to session.js
162
+$opt['session']['expire']['url'] = 1800; // when no cookies used (default 30 min since last call), attention to session.js
163 163
 
164 164
 /* If the Referer was sent by the client and the substring was not found,
165 165
  * the embedded session id will be marked as invalid.
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 /* other template options
186 186
  *
187 187
  */
188
-$opt['page']['origin_url'] = 'http://www.opencaching.de/';  // production installation for this OC site
188
+$opt['page']['origin_url'] = 'http://www.opencaching.de/'; // production installation for this OC site
189 189
 $opt['page']['develsystem'] = false;
190 190
 $opt['page']['teampic_url'] = 'http://www.opencaching.de/images/team/';
191 191
 $opt['page']['teammember_url'] = 'http://www.opencaching.de/';
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
     'newcaches' => [
220 220
         'show' => true,
221 221
         'url' => 'http://www.opencaching.de',
222
-        'urlname' => '',  // optional: show other name than the url-domain
222
+        'urlname' => '', // optional: show other name than the url-domain
223 223
     ],
224 224
 ];
225 225
 
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
 $opt['logic']['pictures']['dummy']['bgcolor'] = [255, 255, 255];
278 278
 $opt['logic']['pictures']['dummy']['text'] = '';
279 279
 $opt['logic']['pictures']['dummy']['textcolor'] = [0, 0, 0];
280
-$opt['logic']['pictures']['dummy']['replacepic'] = $opt['rootpath'] . 'images/';
280
+$opt['logic']['pictures']['dummy']['replacepic'] = $opt['rootpath'].'images/';
281 281
 
282 282
 /* cachemaps (obsolete)
283 283
  */
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
 
380 380
 /* license-related functions
381 381
  */
382
-$opt['logic']['license']['newusers'] = 2;  // see license constants in lib2/logic/const.inc.php
382
+$opt['logic']['license']['newusers'] = 2; // see license constants in lib2/logic/const.inc.php
383 383
 $opt['logic']['license']['admin'] = true;
384 384
 $opt['logic']['license']['disclaimer'] = false;
385 385
 $opt['logic']['license']['terms'] = 'articles.php?page=impressum#datalicense';
@@ -387,18 +387,18 @@  discard block
 block discarded – undo
387 387
 
388 388
 /* optional APIs
389 389
  */
390
-$opt['logic']['api']['email_problems']['key'] = '';   // must be set to enable
391
-$opt['logic']['api']['user_inactivity']['key'] = '';  // must be set to enable
390
+$opt['logic']['api']['email_problems']['key'] = ''; // must be set to enable
391
+$opt['logic']['api']['user_inactivity']['key'] = ''; // must be set to enable
392 392
 
393 393
 /* cache report info settings
394 394
  */
395 395
 $opt['logic']['cache_reports']['delaydays'] = 2;
396
-$opt['logic']['cache_reports']['min_processperday'] = 5;   // set to 0 to disable
397
-$opt['logic']['cache_reports']['max_processperday'] = 20;  // set to 0 to disable
396
+$opt['logic']['cache_reports']['min_processperday'] = 5; // set to 0 to disable
397
+$opt['logic']['cache_reports']['max_processperday'] = 20; // set to 0 to disable
398 398
 
399 399
 /* cronjob
400 400
  */
401
-$opt['cron']['username'] = 'apache';   // system username for cronjobs
401
+$opt['cron']['username'] = 'apache'; // system username for cronjobs
402 402
 
403 403
 /* phpbb news integration (index.php, outdated)
404 404
  *
@@ -496,7 +496,7 @@  discard block
 block discarded – undo
496 496
 // a redirect to redirect-setting will be done
497 497
 // (use exact same url with slashes etc. as registered by garmin)
498 498
 $opt['lib']['garmin']['domain'] = 'www.site.org';
499
-$opt['lib']['garmin']['url'] = 'http://' . $opt['lib']['garmin']['domain'] . '/';
499
+$opt['lib']['garmin']['url'] = 'http://'.$opt['lib']['garmin']['domain'].'/';
500 500
 
501 501
 // if the plugin is not called from the correct domain, redirect to this site
502 502
 // (e.g. domain called without www. prefix) - must match domain of $opt['lib']['garmin']['url']
@@ -524,7 +524,7 @@  discard block
 block discarded – undo
524 524
 
525 525
 // max number of caches displayed in google maps
526 526
 if (isset($_SERVER['HTTP_USER_AGENT'])) {
527
-    $user_agent = " " . $_SERVER['HTTP_USER_AGENT'];
527
+    $user_agent = " ".$_SERVER['HTTP_USER_AGENT'];
528 528
     if (strpos($user_agent, "MSIE") && !strpos($user_agent, "Opera")) {
529 529
         $opt['map']['maxrecords'] = 200;
530 530
     } else {
@@ -540,7 +540,7 @@  discard block
 block discarded – undo
540 540
 /*
541 541
  * OKAPI
542 542
  */
543
-$opt['okapi']['var_dir'] = $opt['rootpath'] . 'var/okapi';
543
+$opt['okapi']['var_dir'] = $opt['rootpath'].'var/okapi';
544 544
 $opt['okapi']['github_access_token'] = null;
545 545
 
546 546
 /* Opencaching Node Daemon
Please login to merge, or discard this patch.
htdocs/config2/settings-dist-common.inc.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -15,11 +15,11 @@  discard block
 block discarded – undo
15 15
  *   bin/dbsv-update.php will then migrate the tables' charset.
16 16
  */
17 17
 $opt['charset']['iconv'] = 'UTF-8'; // 'ISO-8859-1'; // use iconv compatible charset-name
18
-$opt['charset']['mysql'] = 'utf8';     // use mysql compatible charset-name
18
+$opt['charset']['mysql'] = 'utf8'; // use mysql compatible charset-name
19 19
 
20 20
 // handling of SQL and PHP errors
21 21
 $opt['db']['error']['display'] = false;
22
-$opt['db']['error']['mail'] = 'root';  // set '' to disable
22
+$opt['db']['error']['mail'] = 'root'; // set '' to disable
23 23
 
24 24
 // page title
25 25
 $opt['page']['title'] = 'OPENCACHING';
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
  * Additionally, the cookie domain (different vor lib1 and lib2) can be overwritten.
58 58
  * See examples for overriding in settings-sample.inc.php.
59 59
  */
60
-$opt['page']['meta']['keywords'] = 'Geocaching, Geocache, Cache, Schatzsuche, GPS, kostenlos, GPX, Koordinaten, Hobby, Natur';  // 5-10 keywords are recommended
60
+$opt['page']['meta']['keywords'] = 'Geocaching, Geocache, Cache, Schatzsuche, GPS, kostenlos, GPX, Koordinaten, Hobby, Natur'; // 5-10 keywords are recommended
61 61
 // see http://forum.opencaching.de/index.php?topic=3065.0
62 62
 // and http://forum.opencaching.de/index.php?topic=3065.0 regarding description
63 63
 $opt['page']['meta']['description'] = 'Opencaching.de ist das freie Portal für Geocaching, ein Schatzsuche-Spiel. Mittels GPS-Koordinaten sind Behälter oder Objekte zu finden.';
@@ -94,12 +94,12 @@  discard block
 block discarded – undo
94 94
 // see also setting in lib/settings.inc.php!
95 95
 $opt['logic']['admin']['team_comments_only_for_reports'] = true;
96 96
 $opt['logic']['admin']['enable_listing_admins'] = false;
97
-$opt['logic']['admin']['listingadmin_notification'] = '';  // Email address(es), comma separated
97
+$opt['logic']['admin']['listingadmin_notification'] = ''; // Email address(es), comma separated
98 98
 
99 99
 /*
100 100
  * html purifier
101 101
  */
102
-$opt['html_purifier']['cache_path'] = dirname(__FILE__) . '/../cache2/html_purifier/';
102
+$opt['html_purifier']['cache_path'] = dirname(__FILE__).'/../cache2/html_purifier/';
103 103
 
104 104
 /*
105 105
  * CMS links for external pages
@@ -174,9 +174,9 @@  discard block
 block discarded – undo
174 174
         $primary_httpsdefault = $opt['page']['https']['is_default'];
175 175
     }
176 176
     if ($primary_httpsdefault) {
177
-        $opt['page']['default_primary_url'] = 'https' . strstr($primary_site_url, '://');
177
+        $opt['page']['default_primary_url'] = 'https'.strstr($primary_site_url, '://');
178 178
     } else {
179
-        $opt['page']['default_primary_url'] = 'http' . strstr($primary_site_url, '://');
179
+        $opt['page']['default_primary_url'] = 'http'.strstr($primary_site_url, '://');
180 180
     }
181 181
 
182 182
     // 2. create settings for the current domain
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
     if (isset($opt['domain'][$current_domain]['url'])) {
188 188
         $current_site_url = $opt['domain'][$current_domain]['url'];
189 189
     } else {
190
-        $current_site_url = 'x://' . $current_domain . parse_url($primary_site_url, PHP_URL_PATH);
190
+        $current_site_url = 'x://'.$current_domain.parse_url($primary_site_url, PHP_URL_PATH);
191 191
     }
192 192
     if (substr($current_site_url, - 1, 1) != '/') {
193 193
         $current_site_url .= '/';
@@ -199,8 +199,8 @@  discard block
 block discarded – undo
199 199
     }
200 200
 
201 201
     $adr = strstr($current_site_url, '://');
202
-    $opt['page']['absolute_http_url'] = 'http' . $adr;
203
-    $opt['page']['absolute_https_url'] = 'https' . $adr;
202
+    $opt['page']['absolute_http_url'] = 'http'.$adr;
203
+    $opt['page']['absolute_https_url'] = 'https'.$adr;
204 204
     $opt['page']['https']['active'] = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off');
205 205
 
206 206
     if ($opt['page']['https']['active']) {
@@ -231,18 +231,18 @@  discard block
 block discarded – undo
231 231
         $opt['page']['default_primary_shortlink_url'] = false;
232 232
     } else {
233 233
         if ($primary_httpsdefault) {
234
-            $opt['page']['default_primary_shortlink_url'] = 'https://' . $primary_shortlink_domain . '/';
234
+            $opt['page']['default_primary_shortlink_url'] = 'https://'.$primary_shortlink_domain.'/';
235 235
         } else {
236
-            $opt['page']['default_primary_shortlink_url'] = 'http://' . $primary_shortlink_domain . '/';
236
+            $opt['page']['default_primary_shortlink_url'] = 'http://'.$primary_shortlink_domain.'/';
237 237
         }
238 238
 
239 239
         if (isset($opt['domain'][$current_domain]['shortlink_domain']) && $opt['domain'][$current_domain]['shortlink_domain']) {
240
-            $opt['page']['shortlink_url'] = $opt['page']['protocol'] . '://' . $opt['domain'][$current_domain]['shortlink_domain'] . '/';
241
-            $opt['page']['default_shortlink_url'] = $opt['page']['default_protocol'] . '://' . $opt['domain'][$current_domain]['shortlink_domain'] . '/';
240
+            $opt['page']['shortlink_url'] = $opt['page']['protocol'].'://'.$opt['domain'][$current_domain]['shortlink_domain'].'/';
241
+            $opt['page']['default_shortlink_url'] = $opt['page']['default_protocol'].'://'.$opt['domain'][$current_domain]['shortlink_domain'].'/';
242 242
         } else {
243 243
             if ($current_domain == $primary_domain) {
244 244
                 $opt['page']['default_shortlink_url'] = $opt['page']['default_primary_shortlink_url'];
245
-                $opt['page']['shortlink_url'] = $opt['page']['protocol'] . strstr(
245
+                $opt['page']['shortlink_url'] = $opt['page']['protocol'].strstr(
246 246
                         $opt['page']['default_shortlink_url'],
247 247
                         '://'
248 248
                     );
@@ -256,16 +256,16 @@  discard block
 block discarded – undo
256 256
     // 4. set location of uploaded images
257 257
 
258 258
     if (!isset($opt['logic']['pictures']['dir'])) {
259
-        $opt['logic']['pictures']['dir'] = dirname(__FILE__) . '/../images/uploads';
259
+        $opt['logic']['pictures']['dir'] = dirname(__FILE__).'/../images/uploads';
260 260
     }  // Ocprop, OKAPI !
261 261
     if (!isset($opt['logic']['pictures']['url'])) {
262
-        $opt['logic']['pictures']['url'] = $opt['page']['default_primary_url'] . 'images/uploads';
262
+        $opt['logic']['pictures']['url'] = $opt['page']['default_primary_url'].'images/uploads';
263 263
     }
264 264
     if (!isset($opt['logic']['pictures']['thumb_dir'])) {
265
-        $opt['logic']['pictures']['thumb_dir'] = $opt['logic']['pictures']['dir'] . '/thumbs';
265
+        $opt['logic']['pictures']['thumb_dir'] = $opt['logic']['pictures']['dir'].'/thumbs';
266 266
     }
267 267
     if (!isset($opt['logic']['pictures']['thumb_url'])) {
268
-        $opt['logic']['pictures']['thumb_url'] = $opt['logic']['pictures']['url'] . '/thumbs';
268
+        $opt['logic']['pictures']['thumb_url'] = $opt['logic']['pictures']['url'].'/thumbs';
269 269
     }
270 270
 }
271 271
 
Please login to merge, or discard this patch.
htdocs/config2/settings-sample.inc.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
  * other parameters may be customized
67 67
  */
68 68
 $opt['session']['mode'] = SAVE_COOKIE;
69
-$opt['session']['cookiename'] = '<cookiename>';   // e.g. 'ocde'
70
-$opt['session']['domain'] = '<.do.main>';  // may be overwritten by $opt['domain'][...]['cookiedomain']
69
+$opt['session']['cookiename'] = '<cookiename>'; // e.g. 'ocde'
70
+$opt['session']['domain'] = '<.do.main>'; // may be overwritten by $opt['domain'][...]['cookiedomain']
71 71
 
72 72
 /* If the Referer was sent by the client and the substring was not found,
73 73
  * the embedded session id will be marked as invalid.
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 
101 101
 /* default locale
102 102
  */
103
-$opt['template']['default']['locale'] = 'DE';   // can be overwritten by $opt['domain'][<domain>]['locale']
103
+$opt['template']['default']['locale'] = 'DE'; // can be overwritten by $opt['domain'][<domain>]['locale']
104 104
 
105 105
 /* multi-domain settings
106 106
  *
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
  */
192 192
 $opt['lib']['garmin']['domain'] = '<domain>';
193 193
 $opt['lib']['garmin']['key'] = '00112233445566778899AABBCCDDEEFF00';
194
-$opt['lib']['garmin']['url'] = 'http://' . $opt['lib']['garmin']['domain'] . '/';
194
+$opt['lib']['garmin']['url'] = 'http://'.$opt['lib']['garmin']['domain'].'/';
195 195
 $opt['lib']['garmin']['page_url'] = 'http://<domain>/';
196 196
 
197 197
 // developer.what3words.com API Key
Please login to merge, or discard this patch.
htdocs/config2/settings-dev.inc.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 );
81 81
 
82 82
 $opt['page']['develsystem'] = true;
83
-$opt['page']['max_logins_per_hour'] = 1000;    // for development ...
83
+$opt['page']['max_logins_per_hour'] = 1000; // for development ...
84 84
 
85 85
 $opt['mail']['from'] = 'root';
86 86
 $opt['mail']['subject'] = '[local.opencaching.de] ';
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 $opt['lib']['garmin']['key'] = '00112233445566778899AABBCCDDEEFF00';
103 103
 $opt['lib']['garmin']['domain'] = 'local.opencaching.de';
104 104
 $opt['lib']['garmin']['url'] = 'http://local.opencaching.de/';
105
-$opt['lib']['garmin']['page_url'] = $opt['lib']['garmin']['url'] . ($dev_codepath == '*' ? '' : $dev_codepath . 'htdocs/');
105
+$opt['lib']['garmin']['page_url'] = $opt['lib']['garmin']['url'].($dev_codepath == '*' ? '' : $dev_codepath.'htdocs/');
106 106
 
107 107
 // developer.what3words.com API Key
108 108
 $opt['lib']['w3w']['apikey'] = 'YOURAPIKEY';
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 $opt['page']['showsocialmedia'] = true;
113 113
 $opt['page']['headoverlay'] = 'oc_head_alpha3';
114 114
 
115
-$opt['logic']['pictures']['dummy']['replacepic'] = $dev_basepath . $dev_codepath . 'htdocs/images/no_image_license.png';
115
+$opt['logic']['pictures']['dummy']['replacepic'] = $dev_basepath.$dev_codepath.'htdocs/images/no_image_license.png';
116 116
 $opt['logic']['license']['disclaimer'] = true;
117 117
 $opt['logic']['admin']['listingadmin_notification'] = 'root';
118 118
 
Please login to merge, or discard this patch.
htdocs/ownerlogs.php 1 patch
Spacing   +2 added lines, -2 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 = 'ownerlogs';
11 11
 $tpl->menuitem = MNU_MYPROFILE_OWNERLOGS;
@@ -83,4 +83,4 @@  discard block
 block discarded – undo
83 83
     )
84 84
 );
85 85
 
86
-require __DIR__ . '/newlogs.php';
86
+require __DIR__.'/newlogs.php';
Please login to merge, or discard this patch.
htdocs/searchplugin.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  *  also used for waypoint search field.
10 10
  ***************************************************************************/
11 11
 
12
-require __DIR__ . '/lib2/web.inc.php';
12
+require __DIR__.'/lib2/web.inc.php';
13 13
 
14 14
 $tpl->name = 'searchplugin';
15 15
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
 if (($sourceid == 'waypoint-search') && ($userinput != '')) {
32 32
     $sourceid = 'mozilla-search';
33
-    $userinput = 'wp:' . $userinput;
33
+    $userinput = 'wp:'.$userinput;
34 34
 }
35 35
 
36 36
 if (($sourceid == 'mozilla-search') && ($userinput != '')) {
@@ -56,22 +56,22 @@  discard block
 block discarded – undo
56 56
         $targeturl = 'search.php?showresult=1&expert=0&output=HTML&f_userowner=0&f_userfound=0';
57 57
         switch ($searchto) {
58 58
             case $keyword_name:
59
-                $targeturl .= '&utf8=1&sort=byname&searchbyname=1&f_inactive=1&cachename=' . $searchfor;
59
+                $targeturl .= '&utf8=1&sort=byname&searchbyname=1&f_inactive=1&cachename='.$searchfor;
60 60
                 break;
61 61
             case $keyword_finder:
62
-                $targeturl .= '&utf8=1&sort=byname&searchbyfinder=1&f_inactive=0&finder=' . $searchfor;
62
+                $targeturl .= '&utf8=1&sort=byname&searchbyfinder=1&f_inactive=0&finder='.$searchfor;
63 63
                 break;
64 64
             case $keyword_owner:
65
-                $targeturl .= '&utf8=1&sort=byname&searchbyowner=1&f_inactive=0&owner=' . $searchfor;
65
+                $targeturl .= '&utf8=1&sort=byname&searchbyowner=1&f_inactive=0&owner='.$searchfor;
66 66
                 break;
67 67
             case $keyword_town:
68
-                $targeturl .= '&utf8=1&searchbyort=1&f_inactive=1&ort=' . $searchfor . '&sort=' . $order;
68
+                $targeturl .= '&utf8=1&searchbyort=1&f_inactive=1&ort='.$searchfor.'&sort='.$order;
69 69
                 break;
70 70
             case $keyword_zipcode:
71
-                $targeturl .= '&utf8=1&sort=bydistance&searchbyplz=1&f_inactive=1&plz=' . $searchfor . '&sort=' . $order;
71
+                $targeturl .= '&utf8=1&sort=bydistance&searchbyplz=1&f_inactive=1&plz='.$searchfor.'&sort='.$order;
72 72
                 break;
73 73
             case $keyword_cacheid:
74
-                $targeturl .= '&utf8=1&sort=byname&searchbycacheid=1&f_inactive=1&cacheid=' . $searchfor;
74
+                $targeturl .= '&utf8=1&sort=byname&searchbycacheid=1&f_inactive=1&cacheid='.$searchfor;
75 75
                 break;
76 76
             case $keyword_wp:
77 77
                 $targeturl = 'index.php';
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
                 }
86 86
 
87 87
                 if ((($target == 'oc') || ($target == 'gc')) && mb_ereg_match(
88
-                        '((' . $opt['logic']['ocprefixes'] . '|gc)([a-z0-9]){4,5}|n([a-f0-9]){5,5})$',
88
+                        '(('.$opt['logic']['ocprefixes'].'|gc)([a-z0-9]){4,5}|n([a-f0-9]){5,5})$',
89 89
                         mb_strtolower($searchfor)
90 90
                     )
91 91
                 ) {
@@ -97,13 +97,13 @@  discard block
 block discarded – undo
97 97
                     // get cache_id from DB
98 98
                     // GC/NC waypoints can be duplicates -> return first match with least status number
99 99
                     $rs = sql(
100
-                        "SELECT `cache_id` FROM `caches` INNER JOIN `cache_status` ON `caches`.`status`=`cache_status`.`id` WHERE (`cache_status`.`allow_user_view`=1 OR `caches`.`user_id`='&1') AND " . $wpfield . "='&2' ORDER BY `caches`.`status`,`caches`.`cache_id` LIMIT 0,1",
100
+                        "SELECT `cache_id` FROM `caches` INNER JOIN `cache_status` ON `caches`.`status`=`cache_status`.`id` WHERE (`cache_status`.`allow_user_view`=1 OR `caches`.`user_id`='&1') AND ".$wpfield."='&2' ORDER BY `caches`.`status`,`caches`.`cache_id` LIMIT 0,1",
101 101
                         $login->userid,
102 102
                         $searchfor
103 103
                     );
104 104
                     if (sql_num_rows($rs)) {
105 105
                         $record = sql_fetch_array($rs);
106
-                        $targeturl = 'viewcache.php?cacheid=' . $record['cache_id'];
106
+                        $targeturl = 'viewcache.php?cacheid='.$record['cache_id'];
107 107
                         unset($record);
108 108
                     } else {
109 109
                         $tpl->error(ERROR_SEARCHPLUGIN_WAYPOINT_NOTFOUND, $searchfor);
Please login to merge, or discard this patch.