@@ -18,7 +18,7 @@ |
||
18 | 18 | |
19 | 19 | // database names |
20 | 20 | $dbname = 'opencaching'; |
21 | -$tmpdbname = 'octmp'; // empty db with CREATE and DROP privileges |
|
21 | +$tmpdbname = 'octmp'; // empty db with CREATE and DROP privileges |
|
22 | 22 | |
23 | 23 | // common developer system settings |
24 | 24 | require 'settings-dev.inc.php'; |
@@ -16,14 +16,14 @@ |
||
16 | 16 | |
17 | 17 | public function push_pos(&$pos) |
18 | 18 | { |
19 | - $this->stack[count($this->stack)] =& $pos; |
|
20 | - $this->stack_ref =& $pos; |
|
19 | + $this->stack[count($this->stack)] = & $pos; |
|
20 | + $this->stack_ref = & $pos; |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | public function pop_pos() |
24 | 24 | { |
25 | 25 | unset($this->stack[count($this->stack) - 1]); |
26 | - $this->stack_ref =& $this->stack[count($this->stack) - 1]; |
|
26 | + $this->stack_ref = & $this->stack[count($this->stack) - 1]; |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | public function parse($strInputXML) |
@@ -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 | $tpl->name = 'adminuser'; |
11 | 11 | $tpl->menuitem = MNU_ADMIN_USER; |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | // send a new confirmation |
52 | 52 | $user->sendRegistrationCode(); |
53 | 53 | |
54 | - $tpl->redirect('adminuser.php?action=searchuser&msg=sendcodecommit&username=' . urlencode($user->getUsername())); |
|
54 | + $tpl->redirect('adminuser.php?action=searchuser&msg=sendcodecommit&username='.urlencode($user->getUsername())); |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | function formAction() |
@@ -97,8 +97,8 @@ discard block |
||
97 | 97 | $user->addEmailProblem($datalicense); |
98 | 98 | } |
99 | 99 | |
100 | - $tpl->redirect('adminuser.php?action=searchuser&username=' . urlencode($username) . |
|
101 | - '&success=' . ($disduelicense + $disable)); |
|
100 | + $tpl->redirect('adminuser.php?action=searchuser&username='.urlencode($username). |
|
101 | + '&success='.($disduelicense + $disable)); |
|
102 | 102 | } |
103 | 103 | |
104 | 104 | function searchUser() |
@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | ***************************************************************************/ |
7 | 7 | |
8 | 8 | $disable_verifyemail = true; |
9 | -require __DIR__ . '/lib2/web.inc.php'; |
|
9 | +require __DIR__.'/lib2/web.inc.php'; |
|
10 | 10 | |
11 | 11 | $tpl->name = 'login'; |
12 | 12 | $tpl->menuitem = MNU_LOGIN; |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | $target = 'myhome.php'; |
29 | 29 | } |
30 | 30 | |
31 | -$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : ''; // Ocprop |
|
31 | +$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : ''; // Ocprop |
|
32 | 32 | |
33 | 33 | if ($action == 'cookieverify') { |
34 | 34 | // we should be logged in ... check if cookie is set ... |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | $tpl->redirect($target); |
40 | 40 | } |
41 | 41 | } else { |
42 | - if (!isset($_COOKIE[$opt['session']['cookiename'] . 'data'])) { |
|
42 | + if (!isset($_COOKIE[$opt['session']['cookiename'].'data'])) { |
|
43 | 43 | $tpl->error(ERROR_NO_COOKIES); |
44 | 44 | } else { |
45 | 45 | $tpl->redirect($target); |
@@ -58,13 +58,13 @@ discard block |
||
58 | 58 | $tpl->error(ERROR_ALREADY_LOGGEDIN); |
59 | 59 | } |
60 | 60 | |
61 | - $username = isset($_POST['email']) ? $_POST['email'] : ''; // Ocprop |
|
62 | - $password = isset($_POST['password']) ? $_POST['password'] : ''; // Ocprop |
|
61 | + $username = isset($_POST['email']) ? $_POST['email'] : ''; // Ocprop |
|
62 | + $password = isset($_POST['password']) ? $_POST['password'] : ''; // Ocprop |
|
63 | 63 | |
64 | 64 | $retval = $login->try_login($username, $password, null); |
65 | 65 | $password = ''; |
66 | 66 | if ($retval == LOGIN_OK) { |
67 | - $tpl->redirect('login.php?action=cookieverify&target=' . urlencode($target)); |
|
67 | + $tpl->redirect('login.php?action=cookieverify&target='.urlencode($target)); |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | $tpl->assign('username', $username); |
@@ -6,4 +6,4 @@ |
||
6 | 6 | ***************************************************************************/ |
7 | 7 | |
8 | 8 | $newlogs_rest = true; |
9 | -require __DIR__ . '/newlogs.php'; |
|
9 | +require __DIR__.'/newlogs.php'; |
@@ -5,9 +5,9 @@ discard block |
||
5 | 5 | * Unicode Reminder メモ |
6 | 6 | ****************************************************************************/ |
7 | 7 | |
8 | -require __DIR__ . '/lib2/web.inc.php'; |
|
9 | -require_once __DIR__ . '/lib2/logic/labels.inc.php'; |
|
10 | -require_once __DIR__ . '/lib2/logic/cache.class.php'; |
|
8 | +require __DIR__.'/lib2/web.inc.php'; |
|
9 | +require_once __DIR__.'/lib2/logic/labels.inc.php'; |
|
10 | +require_once __DIR__.'/lib2/logic/cache.class.php'; |
|
11 | 11 | |
12 | 12 | $tpl->name = 'garmin'; |
13 | 13 | $tpl->popup = 1; |
@@ -30,9 +30,9 @@ discard block |
||
30 | 30 | // be needed. |
31 | 31 | |
32 | 32 | if (($opt['lib']['garmin']['domain'] != $_SERVER['HTTP_HOST']) && !isset($_REQUEST['redirect'])) { |
33 | - $redirect = $opt['lib']['garmin']['page_url'] . 'garmin.php?redirect=1&cacheid=' . $cacheid; |
|
33 | + $redirect = $opt['lib']['garmin']['page_url'].'garmin.php?redirect=1&cacheid='.$cacheid; |
|
34 | 34 | if (isset($_REQUEST['templocale'])) { |
35 | - $redirect .= '&templocale=' . $_REQUEST['templocale']; |
|
35 | + $redirect .= '&templocale='.$_REQUEST['templocale']; |
|
36 | 36 | } |
37 | 37 | $tpl->redirect($redirect); |
38 | 38 | exit; |
@@ -52,9 +52,9 @@ discard block |
||
52 | 52 | $tpl->assign('crypt', $bCrypt); |
53 | 53 | |
54 | 54 | if (isset($_REQUEST['desclang'])) { |
55 | - $sPreferedDescLang = $_REQUEST['desclang'] . ',' . $opt['template']['locale'] . ',EN'; |
|
55 | + $sPreferedDescLang = $_REQUEST['desclang'].','.$opt['template']['locale'].',EN'; |
|
56 | 56 | } else { |
57 | - $sPreferedDescLang = $opt['template']['locale'] . ',EN'; |
|
57 | + $sPreferedDescLang = $opt['template']['locale'].',EN'; |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | //get cache record |
@@ -5,14 +5,14 @@ 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 | $tpl->name = 'mywatches'; |
11 | 11 | $tpl->menuitem = MNU_MYPROFILE_WATCHES; |
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 | $action = isset($_REQUEST['action']) ? mb_strtolower($_REQUEST['action']) : ''; |
@@ -48,14 +48,14 @@ discard block |
||
48 | 48 | } |
49 | 49 | |
50 | 50 | $hours = array(); |
51 | - for ($i = 0; $i < 24; $i ++) { |
|
51 | + for ($i = 0; $i < 24; $i++) { |
|
52 | 52 | $hours[] = [ |
53 | 53 | 'value' => $i, |
54 | 54 | 'time' => mktime($i, 0, 0) |
55 | 55 | ]; |
56 | 56 | } |
57 | 57 | $weekdays = array(); |
58 | - for ($i = 1; $i <= 7; $i ++) { |
|
58 | + for ($i = 1; $i <= 7; $i++) { |
|
59 | 59 | $weekdays[] = array( |
60 | 60 | 'value' => $i, |
61 | 61 | 'time' => mktime(0, 0, 0, 0, $i + 5, 2000) |
@@ -5,8 +5,8 @@ discard block |
||
5 | 5 | * Unicode Reminder メモ |
6 | 6 | ***************************************************************************/ |
7 | 7 | |
8 | -require __DIR__ . '/lib2/web.inc.php'; |
|
9 | -require_once __DIR__ . '/lib2/edithelper.inc.php'; |
|
8 | +require __DIR__.'/lib2/web.inc.php'; |
|
9 | +require_once __DIR__.'/lib2/edithelper.inc.php'; |
|
10 | 10 | |
11 | 11 | $tpl->name = 'mydetails'; |
12 | 12 | $tpl->menuitem = MNU_MYPROFILE_DETAILS; |
@@ -51,8 +51,8 @@ discard block |
||
51 | 51 | |
52 | 52 | while ($record = sql_fetch_array($rs)) { |
53 | 53 | $id = $record['id']; |
54 | - $vis = isset($_REQUEST['chk' . $id]) ? $_REQUEST['chk' . $id] + 0 : 0; |
|
55 | - $value = isset($_REQUEST['inp' . $id]) ? $_REQUEST['inp' . $id] : ''; |
|
54 | + $vis = isset($_REQUEST['chk'.$id]) ? $_REQUEST['chk'.$id] + 0 : 0; |
|
55 | + $value = isset($_REQUEST['inp'.$id]) ? $_REQUEST['inp'.$id] : ''; |
|
56 | 56 | if ($vis != 1) { |
57 | 57 | $vis = 0; |
58 | 58 | } |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | $bErrorlen = true; |
64 | 64 | } else { |
65 | 65 | if (!$useroptions->setOptValue($id, $value)) { |
66 | - $error .= $useroptions->getOptName($id) . ', '; |
|
66 | + $error .= $useroptions->getOptName($id).', '; |
|
67 | 67 | $bError = true; |
68 | 68 | } |
69 | 69 | } |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | } |
173 | 173 | if ($descMode == 3) { |
174 | 174 | $tpl->add_header_javascript('resource2/tinymce/tiny_mce_gzip.js'); |
175 | - $tpl->add_header_javascript('resource2/tinymce/config/user.js.php?lang=' . strtolower($opt['template']['locale'])); |
|
175 | + $tpl->add_header_javascript('resource2/tinymce/config/user.js.php?lang='.strtolower($opt['template']['locale'])); |
|
176 | 176 | } |
177 | 177 | $tpl->add_header_javascript(editorJsPath()); |
178 | 178 | $tpl->assign('descMode', $descMode); |
@@ -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 | //get the article name to display |
11 | 11 | $article = ''; |
@@ -23,20 +23,20 @@ discard block |
||
23 | 23 | $tpl->redirect('index.php'); |
24 | 24 | } elseif (isset($_REQUEST['wiki'])) { |
25 | 25 | $tpl->redirect(helppageurl($article)); |
26 | -} elseif (!file_exists($opt['stylepath'] . '/articles/' . $language . '/' . $article . '.tpl')) { |
|
26 | +} elseif (!file_exists($opt['stylepath'].'/articles/'.$language.'/'.$article.'.tpl')) { |
|
27 | 27 | // does article exist in default-language? |
28 | - $file = $opt['stylepath'] . '/articles/' . $opt['template']['default']['article_locale'] . '/' . $article . '.tpl'; |
|
28 | + $file = $opt['stylepath'].'/articles/'.$opt['template']['default']['article_locale'].'/'.$article.'.tpl'; |
|
29 | 29 | if (file_exists($file)) { |
30 | 30 | $language = $opt['template']['default']['article_locale']; |
31 | - } elseif (file_exists($opt['stylepath'] . '/articles/EN/' . $article . '.tpl')) { |
|
31 | + } elseif (file_exists($opt['stylepath'].'/articles/EN/'.$article.'.tpl')) { |
|
32 | 32 | $language = 'EN'; |
33 | 33 | } else { |
34 | 34 | // use any |
35 | 35 | $language = false; |
36 | - if ($hDir = opendir($opt['stylepath'] . '/articles/')) { |
|
36 | + if ($hDir = opendir($opt['stylepath'].'/articles/')) { |
|
37 | 37 | while ((($sFile = readdir($hDir)) !== false) && ($language === false)) { |
38 | - if (($sFile != '.') && ($sFile != '..') && (is_dir($opt['stylepath'] . '/articles/' . $sFile))) { |
|
39 | - if (file_exists($opt['stylepath'] . '/articles/' . $sFile . '/' . $article . '.tpl')) { |
|
38 | + if (($sFile != '.') && ($sFile != '..') && (is_dir($opt['stylepath'].'/articles/'.$sFile))) { |
|
39 | + if (file_exists($opt['stylepath'].'/articles/'.$sFile.'/'.$article.'.tpl')) { |
|
40 | 40 | $language = $sFile; |
41 | 41 | } |
42 | 42 | } |
@@ -54,13 +54,13 @@ discard block |
||
54 | 54 | $tpl->name = 'articles'; |
55 | 55 | |
56 | 56 | $tpl->caching = true; |
57 | -$tpl->cache_id = 'articles|' . $language . '|' . $article; |
|
57 | +$tpl->cache_id = 'articles|'.$language.'|'.$article; |
|
58 | 58 | $tpl->cache_lifetime = 43200; |
59 | 59 | |
60 | 60 | $tpl->menuitem = sql_value( |
61 | 61 | "SELECT `id` FROM `sys_menu` WHERE `href`='&1' LIMIT 1", |
62 | 62 | 0, |
63 | - 'articles.php?page=' . urlencode($article) |
|
63 | + 'articles.php?page='.urlencode($article) |
|
64 | 64 | ); |
65 | 65 | if ($tpl->menuitem == 0) { |
66 | 66 | $tpl->redirect('index.php'); |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | /* prepare smarty vars for special pages ... |
75 | 75 | */ |
76 | 76 | if ($article == 'cacheinfo') { |
77 | - require_once $opt['rootpath'] . 'lib2/logic/attribute.class.php'; |
|
77 | + require_once $opt['rootpath'].'lib2/logic/attribute.class.php'; |
|
78 | 78 | $attributes = attribute::getSelectableAttrbutesListArray(true); |
79 | 79 | $tpl->assign('attributes', $attributes); |
80 | 80 | } |