@@ -8,4 +8,4 @@ |
||
8 | 8 | * downward compatibility |
9 | 9 | ***************************************************************************/ |
10 | 10 | |
11 | -require_once __DIR__ . '/../../util2/stats/rank.php'; |
|
11 | +require_once __DIR__.'/../../util2/stats/rank.php'; |
@@ -7,8 +7,8 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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']; |
@@ -7,8 +7,8 @@ discard block |
||
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 |
||
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 | ?> |
@@ -5,4 +5,4 @@ |
||
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'; |
@@ -9,9 +9,9 @@ |
||
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'; |
@@ -10,15 +10,15 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | } |
@@ -5,9 +5,9 @@ |
||
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'; |
@@ -12,13 +12,13 @@ discard block |
||
12 | 12 | ***************************************************************************/ |
13 | 13 | |
14 | 14 | // needs absolute rootpath because called as cronjob |
15 | -$rootpath = __DIR__ . '/../../'; |
|
16 | -require_once $rootpath . 'lib/clicompatbase.inc.php'; |
|
17 | -require_once $rootpath . 'lib2/translate.class.php'; |
|
18 | -require_once __DIR__ . '/settings.inc.php'; |
|
19 | -require_once $rootpath . 'lib/consts.inc.php'; |
|
20 | -require_once $rootpath . 'lib/logic.inc.php'; |
|
21 | -require_once $rootpath . 'lib2/edithelper.inc.php'; |
|
15 | +$rootpath = __DIR__.'/../../'; |
|
16 | +require_once $rootpath.'lib/clicompatbase.inc.php'; |
|
17 | +require_once $rootpath.'lib2/translate.class.php'; |
|
18 | +require_once __DIR__.'/settings.inc.php'; |
|
19 | +require_once $rootpath.'lib/consts.inc.php'; |
|
20 | +require_once $rootpath.'lib/logic.inc.php'; |
|
21 | +require_once $rootpath.'lib2/edithelper.inc.php'; |
|
22 | 22 | |
23 | 23 | if (!cronjobs_enabled()) { |
24 | 24 | exit; |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | WHERE cache_logs.cache_id=caches.cache_id |
52 | 52 | AND cache_logs.owner_notified=0" |
53 | 53 | ); |
54 | -for ($i = 0; $i < mysql_num_rows($rsNewLogs); $i ++) { |
|
54 | +for ($i = 0; $i < mysql_num_rows($rsNewLogs); $i++) { |
|
55 | 55 | $rNewLog = sql_fetch_array($rsNewLogs); |
56 | 56 | |
57 | 57 | $rsNotified = sql( |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | // See http://forum.opencaching.de/index.php?topic=3123.0 on AOL. |
103 | 103 | if (sqlValue( |
104 | 104 | "SELECT `email_problems` = 0 OR DATEDIFF(NOW(),`last_email_problem`) > 1+DATEDIFF(`last_email_problem`,`first_email_problem`) |
105 | - FROM `user` WHERE `user_id`='" . sql_escape($rcw['user_id']) . "'", |
|
105 | + FROM `user` WHERE `user_id`='" . sql_escape($rcw['user_id'])."'", |
|
106 | 106 | 1 |
107 | 107 | )) { |
108 | 108 | process_log_watch($rcw['user_id'], $rcw['log_id']); |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | |
116 | 116 | /* begin send out everything that has to be sent */ |
117 | 117 | |
118 | -$email_headers = 'From: "' . $mailfrom . '" <' . $mailfrom . '>'; |
|
118 | +$email_headers = 'From: "'.$mailfrom.'" <'.$mailfrom.'>'; |
|
119 | 119 | |
120 | 120 | $rsUsers = sql( |
121 | 121 | "SELECT |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | WHERE `user`.`watchmail_nextmail`<NOW()", |
135 | 135 | $opt['template']['default']['locale'] |
136 | 136 | ); |
137 | -for ($i = 0; $i < mysql_num_rows($rsUsers); $i ++) { |
|
137 | +for ($i = 0; $i < mysql_num_rows($rsUsers); $i++) { |
|
138 | 138 | $rUser = sql_fetch_array($rsUsers); |
139 | 139 | |
140 | 140 | if ($rUser['watchmail_nextmail'] != '0000-00-00 00:00:00') { |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | ); |
159 | 159 | if (mysql_num_rows($rsWatchesOwner) > 0) { |
160 | 160 | $logtexts = ''; |
161 | - for ($j = 0; $j < mysql_num_rows($rsWatchesOwner); $j ++) { |
|
161 | + for ($j = 0; $j < mysql_num_rows($rsWatchesOwner); $j++) { |
|
162 | 162 | $rWatch = sql_fetch_array($rsWatchesOwner); |
163 | 163 | $logtexts .= $rWatch['watchtext']; |
164 | 164 | } |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | ); |
184 | 184 | if (mysql_num_rows($rsWatchesLog) > 0) { |
185 | 185 | $logtexts = ''; |
186 | - for ($j = 0; $j < mysql_num_rows($rsWatchesLog); $j ++) { |
|
186 | + for ($j = 0; $j < mysql_num_rows($rsWatchesLog); $j++) { |
|
187 | 187 | $rWatch = sql_fetch_array($rsWatchesLog); |
188 | 188 | $logtexts .= $rWatch['watchtext']; |
189 | 189 | } |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | if ($mailadr != '') { |
209 | 209 | if (is_existent_maildomain(getToMailDomain($mailadr))) { |
210 | 210 | $language = $rUser['language'] ? $rUser['language'] : $opt['template']['default']['locale']; |
211 | - $mailsubject = '[' . $maildomain . '] ' . $translate->t( |
|
211 | + $mailsubject = '['.$maildomain.'] '.$translate->t( |
|
212 | 212 | 'Your watchlist of', |
213 | 213 | '', |
214 | 214 | basename(__FILE__), |
@@ -216,11 +216,11 @@ discard block |
||
216 | 216 | '', |
217 | 217 | 1, |
218 | 218 | $language |
219 | - ) . ' ' . date($opt['locale'][$language]['format']['phpdate']); |
|
219 | + ).' '.date($opt['locale'][$language]['format']['phpdate']); |
|
220 | 220 | mb_send_mail($mailadr, $mailsubject, $mailbody, $email_headers); |
221 | 221 | |
222 | 222 | // logentry($module, $eventid, $userid, $objectid1, $objectid2, $logtext, $details) |
223 | - logentry('watchlist', 2, $rUser['user_id'], 0, 0, 'Sending mail to ' . $mailadr, []); |
|
223 | + logentry('watchlist', 2, $rUser['user_id'], 0, 0, 'Sending mail to '.$mailadr, []); |
|
224 | 224 | } |
225 | 225 | } |
226 | 226 | |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | |
320 | 320 | $logtext = html2plaintext($rLog['text'], $rLog['text_html'] == 0, EMAIL_LINEWRAP); |
321 | 321 | |
322 | - $language = sqlValue("SELECT `language` FROM `user` WHERE `user_id`='" . sql_escape($user_id) . "'", null); |
|
322 | + $language = sqlValue("SELECT `language` FROM `user` WHERE `user_id`='".sql_escape($user_id)."'", null); |
|
323 | 323 | if (!$language) { |
324 | 324 | $language = $opt['template']['default']['locale']; |
325 | 325 | } |
@@ -329,7 +329,7 @@ discard block |
||
329 | 329 | $dateformat = $opt['locale'][$language]['format']['phpdatetime']; |
330 | 330 | } |
331 | 331 | |
332 | - $watchtext = '{date} ' . $translate->t( |
|
332 | + $watchtext = '{date} '.$translate->t( |
|
333 | 333 | '{user} has logged your cache "{cachename}":', |
334 | 334 | '', |
335 | 335 | basename(__FILE__), |
@@ -337,7 +337,7 @@ discard block |
||
337 | 337 | '', |
338 | 338 | 1, |
339 | 339 | $language |
340 | - ) . ' {action}{maintenance_flags}' . "\n" . '{shortlink_url}{wp_oc}' . "\n\n" . '{text}' . "\n\n\n\n"; |
|
340 | + ).' {action}{maintenance_flags}'."\n".'{shortlink_url}{wp_oc}'."\n\n".'{text}'."\n\n\n\n"; |
|
341 | 341 | |
342 | 342 | $watchtext = mb_ereg_replace('{date}', date($dateformat, strtotime($rLog['logdate'])), $watchtext); |
343 | 343 | $watchtext = mb_ereg_replace('{wp_oc}', $rLog['wp_oc'], $watchtext); |
@@ -347,7 +347,7 @@ discard block |
||
347 | 347 | $watchtext = mb_ereg_replace('{action}', get_logtype_name($rLog['type'], $language), $watchtext); |
348 | 348 | $watchtext = insert_maintenance_flags($rLog, $language, $watchtext); |
349 | 349 | |
350 | - $domain = sqlValue("SELECT `domain` FROM `user` WHERE `user_id`='" . sql_escape($user_id) . "'", null); |
|
350 | + $domain = sqlValue("SELECT `domain` FROM `user` WHERE `user_id`='".sql_escape($user_id)."'", null); |
|
351 | 351 | $urls = get_site_urls($domain); |
352 | 352 | if ($urls['shortlink_url']) { |
353 | 353 | $watchtext = mb_ereg_replace("{shortlink_url}", $urls['shortlink_url'], $watchtext); |
@@ -401,7 +401,7 @@ discard block |
||
401 | 401 | |
402 | 402 | $logtext = html2plaintext($rLog['text'], $rLog['text_html'] == 0, EMAIL_LINEWRAP); |
403 | 403 | |
404 | - $language = sqlValue("SELECT `language` FROM `user` WHERE `user_id`='" . sql_escape($user_id) . "'", null); |
|
404 | + $language = sqlValue("SELECT `language` FROM `user` WHERE `user_id`='".sql_escape($user_id)."'", null); |
|
405 | 405 | if (!$language) { |
406 | 406 | $language = $opt['template']['default']['locale']; |
407 | 407 | } |
@@ -411,7 +411,7 @@ discard block |
||
411 | 411 | $dateformat = $opt['locale'][$language]['format']['phpdatetime']; |
412 | 412 | } |
413 | 413 | |
414 | - $watchtext = '{date} ' . $translate->t( |
|
414 | + $watchtext = '{date} '.$translate->t( |
|
415 | 415 | '{user} has logged the cache "{cachename}":', |
416 | 416 | '', |
417 | 417 | basename(__FILE__), |
@@ -419,7 +419,7 @@ discard block |
||
419 | 419 | '', |
420 | 420 | 1, |
421 | 421 | $language |
422 | - ) . ' {action}{maintenance_flags}' . "\n" . '{shortlink_url}{wp_oc}' . "\n{cachelists}\n" . '{text}' . "\n\n\n\n"; |
|
422 | + ).' {action}{maintenance_flags}'."\n".'{shortlink_url}{wp_oc}'."\n{cachelists}\n".'{text}'."\n\n\n\n"; |
|
423 | 423 | |
424 | 424 | $watchtext = mb_ereg_replace('{date}', date($dateformat, strtotime($rLog['logdate'])), $watchtext); |
425 | 425 | $watchtext = mb_ereg_replace('{wp_oc}', $rLog['wp_oc'], $watchtext); |
@@ -451,7 +451,7 @@ discard block |
||
451 | 451 | '', |
452 | 452 | 1, |
453 | 453 | $language |
454 | - ) . ' ' . $cachelist_names[0] . "\n"; |
|
454 | + ).' '.$cachelist_names[0]."\n"; |
|
455 | 455 | break; |
456 | 456 | default: |
457 | 457 | $cachelists = $translate->t( |
@@ -462,11 +462,11 @@ discard block |
||
462 | 462 | '', |
463 | 463 | 1, |
464 | 464 | $language |
465 | - ) . ' ' . implode(', ', $cachelist_names) . "\n"; |
|
465 | + ).' '.implode(', ', $cachelist_names)."\n"; |
|
466 | 466 | } |
467 | 467 | $watchtext = mb_ereg_replace('{cachelists}', $cachelists, $watchtext); |
468 | 468 | |
469 | - $domain = sqlValue("SELECT `domain` FROM `user` WHERE `user_id`='" . sql_escape($user_id) . "'", null); |
|
469 | + $domain = sqlValue("SELECT `domain` FROM `user` WHERE `user_id`='".sql_escape($user_id)."'", null); |
|
470 | 470 | $urls = get_site_urls($domain); |
471 | 471 | if ($urls['shortlink_url']) { |
472 | 472 | $watchtext = mb_ereg_replace("{shortlink_url}", $urls['shortlink_url'], $watchtext); |
@@ -557,7 +557,7 @@ discard block |
||
557 | 557 | } |
558 | 558 | |
559 | 559 | if (file_exists($PidFile)) { |
560 | - echo "Error: Pidfile (" . $PidFile . ") already present at " . __FILE__ . ":" . __LINE__ . "!\n"; |
|
560 | + echo "Error: Pidfile (".$PidFile.") already present at ".__FILE__.":".__LINE__."!\n"; |
|
561 | 561 | |
562 | 562 | return false; |
563 | 563 | } else { |
@@ -567,7 +567,7 @@ discard block |
||
567 | 567 | |
568 | 568 | return true; |
569 | 569 | } else { |
570 | - echo "can't create Pidfile $PidFile at " . __FILE__ . ":" . __LINE__ . "!\n"; |
|
570 | + echo "can't create Pidfile $PidFile at ".__FILE__.":".__LINE__."!\n"; |
|
571 | 571 | |
572 | 572 | return false; |
573 | 573 | } |
@@ -583,7 +583,7 @@ discard block |
||
583 | 583 | $pid_daemon = fgets($pidfile, 20); |
584 | 584 | fclose($pidfile); |
585 | 585 | |
586 | - $pid_daemon = (int) $pid_daemon; |
|
586 | + $pid_daemon = (int)$pid_daemon; |
|
587 | 587 | |
588 | 588 | // process running? |
589 | 589 | if (posix_kill($pid_daemon, 0)) { |
@@ -592,7 +592,7 @@ discard block |
||
592 | 592 | false; |
593 | 593 | } else { |
594 | 594 | // no, remove pid_file |
595 | - echo "process not running, removing old pid_file (" . $PidFile . ")\n"; |
|
595 | + echo "process not running, removing old pid_file (".$PidFile.")\n"; |
|
596 | 596 | unlink($PidFile); |
597 | 597 | |
598 | 598 | return true; |
@@ -614,10 +614,10 @@ discard block |
||
614 | 614 | unlink($PidFile); |
615 | 615 | } |
616 | 616 | } else { |
617 | - echo "Error: can't delete own pidfile (" . $PidFile . ") at " . __FILE__ . ":" . __LINE__ . "!\n"; |
|
617 | + echo "Error: can't delete own pidfile (".$PidFile.") at ".__FILE__.":".__LINE__."!\n"; |
|
618 | 618 | } |
619 | 619 | |
620 | 620 | if ($message) { |
621 | - echo $message . "\n"; |
|
621 | + echo $message."\n"; |
|
622 | 622 | } |
623 | 623 | } |
@@ -10,9 +10,9 @@ discard block |
||
10 | 10 | |
11 | 11 | header('Content-type: text/html; charset=utf-8'); |
12 | 12 | |
13 | -$rootpath = __DIR__ . '/../../'; |
|
14 | -require_once $rootpath . 'lib/common.inc.php'; |
|
15 | -require_once $rootpath . 'lib/eventhandler.inc.php'; |
|
13 | +$rootpath = __DIR__.'/../../'; |
|
14 | +require_once $rootpath.'lib/common.inc.php'; |
|
15 | +require_once $rootpath.'lib/eventhandler.inc.php'; |
|
16 | 16 | |
17 | 17 | $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : ''; |
18 | 18 | |
@@ -54,15 +54,15 @@ discard block |
||
54 | 54 | echo 'Besitzer geändert'; |
55 | 55 | |
56 | 56 | // logentry($module, $eventid, $userid, $objectid1, $objectid2, $logtext, $details) |
57 | - logentry('approving', 4, 0, $cacheid, 0, 'Owner changed ' . $cacheid, ''); |
|
57 | + logentry('approving', 4, 0, $cacheid, 0, 'Owner changed '.$cacheid, ''); |
|
58 | 58 | |
59 | 59 | exit; |
60 | 60 | } elseif ($action == 'showcache') { |
61 | 61 | $wp = isset($_REQUEST['waypoint']) ? $_REQUEST['waypoint'] : 0; |
62 | 62 | $newusername = isset($_REQUEST['newusername']) ? $_REQUEST['newusername'] : 0; |
63 | 63 | |
64 | - $cacheid = sqlValue("SELECT cache_id FROM caches WHERE wp_oc='" . sql_escape($wp) . "'", 0); |
|
65 | - $userid = sqlValue("SELECT user_id FROM user WHERE username='" . sql_escape($newusername) . "'", ''); |
|
64 | + $cacheid = sqlValue("SELECT cache_id FROM caches WHERE wp_oc='".sql_escape($wp)."'", 0); |
|
65 | + $userid = sqlValue("SELECT user_id FROM user WHERE username='".sql_escape($newusername)."'", ''); |
|
66 | 66 | |
67 | 67 | if ($cacheid == 0) { |
68 | 68 | die('Cache nicht gefunden!'); |