@@ -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'; |
@@ -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'; |
@@ -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!'); |
@@ -5,8 +5,8 @@ discard block |
||
5 | 5 | * Unicode Reminder メモ |
6 | 6 | ***************************************************************************/ |
7 | 7 | |
8 | -require __DIR__ . '/lib2/web.inc.php'; |
|
9 | -require __DIR__ . '/lib2/logic/oconly81.inc.php'; |
|
8 | +require __DIR__.'/lib2/web.inc.php'; |
|
9 | +require __DIR__.'/lib2/logic/oconly81.inc.php'; |
|
10 | 10 | |
11 | 11 | $showall = (@$_REQUEST['showall'] == 1); |
12 | 12 | |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | INNER JOIN &oconly81 ON &oconly81.`user_id`=`user`.`user_id` |
47 | 47 | GROUP BY `user`.`user_id` |
48 | 48 | ORDER BY `count` DESC, `username` ASC " . |
49 | - ($showall ? "" : "LIMIT " . sql_escape($opt['logic']['oconly81']['default_maxusers'] + 1)) |
|
49 | + ($showall ? "" : "LIMIT ".sql_escape($opt['logic']['oconly81']['default_maxusers'] + 1)) |
|
50 | 50 | ); |
51 | 51 | |
52 | 52 | $tpl->assign_rs('users', $rs); |
@@ -5,7 +5,7 @@ discard block |
||
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 | $sUserCountry = $login->getUserCountry(); |
11 | 11 | |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | |
18 | 18 | $tpl->caching = true; |
19 | 19 | $tpl->cache_lifetime = 300; |
20 | -$tpl->cache_id = $sUserCountry . '|' . $opt['page']['protocol']; |
|
20 | +$tpl->cache_id = $sUserCountry.'|'.$opt['page']['protocol']; |
|
21 | 21 | |
22 | 22 | if (!$tpl->is_cached()) { |
23 | 23 | // welcome message |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | } |
117 | 117 | |
118 | 118 | // build static maps url by inserting api key |
119 | - $url = $opt['page']['protocol'] . strstr($opt['logic']['minimapurl'], '://'); |
|
119 | + $url = $opt['page']['protocol'].strstr($opt['logic']['minimapurl'], '://'); |
|
120 | 120 | $url = mb_ereg_replace('{gmkey}', $gmkey, $url); |
121 | 121 | |
122 | 122 | // put into template |
@@ -5,9 +5,9 @@ discard block |
||
5 | 5 | * Unicode Reminder メモ |
6 | 6 | ***************************************************************************/ |
7 | 7 | |
8 | -$opt['rootpath'] = __DIR__ . '/../../'; |
|
9 | -require_once $opt['rootpath'] . 'lib2/web.inc.php'; |
|
10 | -require_once $opt['rootpath'] . 'lib2/logic/cache.class.php'; |
|
8 | +$opt['rootpath'] = __DIR__.'/../../'; |
|
9 | +require_once $opt['rootpath'].'lib2/web.inc.php'; |
|
10 | +require_once $opt['rootpath'].'lib2/logic/cache.class.php'; |
|
11 | 11 | |
12 | 12 | header('Content-type: text/html; charset=utf-8'); |
13 | 13 | |
@@ -35,14 +35,14 @@ discard block |
||
35 | 35 | } else { |
36 | 36 | echo $cache->getCacheId(); |
37 | 37 | echo ';'; |
38 | - echo '"' . mb_ereg_replace('"', '\"', $cache->getName()) . '"'; |
|
38 | + echo '"'.mb_ereg_replace('"', '\"', $cache->getName()).'"'; |
|
39 | 39 | echo ';'; |
40 | - echo '"' . mb_ereg_replace('"', '\"', $cache->getUsername()) . '"'; |
|
40 | + echo '"'.mb_ereg_replace('"', '\"', $cache->getUsername()).'"'; |
|
41 | 41 | echo ';'; |
42 | - echo '"' . mb_ereg_replace('"', '\"', $cache->getWPOC()) . '"'; |
|
42 | + echo '"'.mb_ereg_replace('"', '\"', $cache->getWPOC()).'"'; |
|
43 | 43 | echo ';'; |
44 | - echo '"' . mb_ereg_replace('"', '\"', $cache->getWPGC()) . '"'; |
|
44 | + echo '"'.mb_ereg_replace('"', '\"', $cache->getWPGC()).'"'; |
|
45 | 45 | echo ';'; |
46 | - echo '""'; // obsolete Navicache WP |
|
46 | + echo '""'; // obsolete Navicache WP |
|
47 | 47 | } |
48 | 48 | } |