@@ -2,15 +2,13 @@ |
||
2 | 2 | |
3 | 3 | namespace okapi\views\apps\authorize; |
4 | 4 | |
5 | -use Exception; |
|
6 | -use okapi\Okapi; |
|
7 | 5 | use okapi\Db; |
6 | +use okapi\Locales; |
|
7 | +use okapi\OCSession; |
|
8 | +use okapi\Okapi; |
|
8 | 9 | use okapi\OkapiHttpResponse; |
9 | -use okapi\OkapiHttpRequest; |
|
10 | 10 | use okapi\OkapiRedirectResponse; |
11 | 11 | use okapi\Settings; |
12 | -use okapi\Locales; |
|
13 | -use okapi\OCSession; |
|
14 | 12 | |
15 | 13 | class View |
16 | 14 | { |
@@ -111,10 +111,10 @@ discard block |
||
111 | 111 | foreach ($cookies as $cookie) { |
112 | 112 | $parts = explode('=', $cookie); |
113 | 113 | $name = trim($parts[0]); |
114 | - setcookie($name, '', time()-1000); |
|
115 | - setcookie($name, '', time()-1000, '/'); |
|
114 | + setcookie($name, '', time() - 1000); |
|
115 | + setcookie($name, '', time() - 1000, '/'); |
|
116 | 116 | foreach (self::getPossibleCookieDomains() as $domain) { |
117 | - setcookie($name, '', time()-1000, '/', $domain); |
|
117 | + setcookie($name, '', time() - 1000, '/', $domain); |
|
118 | 118 | } |
119 | 119 | } |
120 | 120 | } |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | } |
124 | 124 | } |
125 | 125 | |
126 | - $after_login = "okapi/apps/authorize?oauth_token=$token_key".(($langpref != Settings::get('SITELANG'))?"&langpref=".$langpref:""); |
|
126 | + $after_login = "okapi/apps/authorize?oauth_token=$token_key".(($langpref != Settings::get('SITELANG')) ? "&langpref=".$langpref : ""); |
|
127 | 127 | $login_url = Settings::get('SITE_URL').$login_page."target=".urlencode($after_login) |
128 | 128 | ."&langpref=".$langpref; |
129 | 129 | return new OkapiRedirectResponse($login_url); |
@@ -20,8 +20,9 @@ discard block |
||
20 | 20 | $langpref = isset($_GET['langpref']) ? $_GET['langpref'] : Settings::get('SITELANG'); |
21 | 21 | $langprefs = explode("|", $langpref); |
22 | 22 | $locales = array(); |
23 | - foreach (Locales::$languages as $lang => $attrs) |
|
24 | - $locales[$attrs['locale']] = $attrs; |
|
23 | + foreach (Locales::$languages as $lang => $attrs) { |
|
24 | + $locales[$attrs['locale']] = $attrs; |
|
25 | + } |
|
25 | 26 | |
26 | 27 | # Current implementation of the "interactivity" parameter is: If developer |
27 | 28 | # wants to "confirm_user", then just log out the current user before we |
@@ -48,8 +49,7 @@ discard block |
||
48 | 49 | |
49 | 50 | $callback_concat_char = (strpos($token['callback'], '?') === false) ? "?" : "&"; |
50 | 51 | |
51 | - if (!$token) |
|
52 | - { |
|
52 | + if (!$token) { |
|
53 | 53 | # Probably Request Token has expired. This will be usually viewed |
54 | 54 | # by the user, who knows nothing on tokens and OAuth. Let's be nice then! |
55 | 55 | |
@@ -79,26 +79,21 @@ discard block |
||
79 | 79 | |
80 | 80 | # Ensure a user is logged in (or force re-login). |
81 | 81 | |
82 | - if ($force_relogin || ($OC_user_id == null)) |
|
83 | - { |
|
82 | + if ($force_relogin || ($OC_user_id == null)) { |
|
84 | 83 | # TODO: confirm_user should first ask the user if he's "the proper one", |
85 | 84 | # and then offer to sign in as a different user. |
86 | 85 | |
87 | 86 | $login_page = 'login.php?'; |
88 | 87 | |
89 | - if ($OC_user_id !== null) |
|
90 | - { |
|
91 | - if (Settings::get('OC_BRANCH') == 'oc.de') |
|
92 | - { |
|
88 | + if ($OC_user_id !== null) { |
|
89 | + if (Settings::get('OC_BRANCH') == 'oc.de') { |
|
93 | 90 | # OCDE login.php?action=logout&target=... will NOT logout and |
94 | 91 | # then redirect to the target, but it will log out, prompt for |
95 | 92 | # login and then redirect to the target after logging in - |
96 | 93 | # that's exactly the relogin that we want. |
97 | 94 | |
98 | 95 | $login_page .= 'action=logout&'; |
99 | - } |
|
100 | - else |
|
101 | - { |
|
96 | + } else { |
|
102 | 97 | # OCPL uses REAL MAGIC for session handling. I don't get ANY of it. |
103 | 98 | # The logout.php DOES NOT support the "target" parameter, so we |
104 | 99 | # can't just call it. The only thing that comes to mind is... |
@@ -141,15 +136,12 @@ discard block |
||
141 | 136 | and consumer_key = '".Db::escape_string($token['consumer_key'])."' |
142 | 137 | ", 0); |
143 | 138 | |
144 | - if (!$authorized) |
|
145 | - { |
|
146 | - if (isset($_POST['authorization_result'])) |
|
147 | - { |
|
139 | + if (!$authorized) { |
|
140 | + if (isset($_POST['authorization_result'])) { |
|
148 | 141 | # Not yet authorized, but user have just submitted the authorization form. |
149 | 142 | # WRTODO: CSRF protection |
150 | 143 | |
151 | - if ($_POST['authorization_result'] == 'granted') |
|
152 | - { |
|
144 | + if ($_POST['authorization_result'] == 'granted') { |
|
153 | 145 | Db::execute(" |
154 | 146 | insert ignore into okapi_authorizations (consumer_key, user_id) |
155 | 147 | values ( |
@@ -158,9 +150,7 @@ discard block |
||
158 | 150 | ); |
159 | 151 | "); |
160 | 152 | $authorized = true; |
161 | - } |
|
162 | - else |
|
163 | - { |
|
153 | + } else { |
|
164 | 154 | # User denied access. Nothing sensible to do now. Will try to report |
165 | 155 | # back to the Consumer application with an error. |
166 | 156 | |
@@ -175,9 +165,7 @@ discard block |
||
175 | 165 | return new OkapiRedirectResponse(Settings::get('SITE_URL')."index.php"); |
176 | 166 | } |
177 | 167 | } |
178 | - } |
|
179 | - else |
|
180 | - { |
|
168 | + } else { |
|
181 | 169 | # Not yet authorized. Display an authorization request. |
182 | 170 | $vars = array( |
183 | 171 | 'okapi_base_url' => Settings::get('SITE_URL')."okapi/", |
@@ -3,19 +3,12 @@ |
||
3 | 3 | namespace okapi\views\devel\dbstruct; |
4 | 4 | |
5 | 5 | use Exception; |
6 | -use okapi\Okapi; |
|
7 | -use okapi\Settings; |
|
8 | -use okapi\Cache; |
|
9 | -use okapi\Db; |
|
10 | -use okapi\OkapiRequest; |
|
11 | -use okapi\OkapiRedirectResponse; |
|
6 | +use okapi\BadRequest; |
|
12 | 7 | use okapi\OkapiHttpResponse; |
13 | -use okapi\ParamMissing; |
|
14 | -use okapi\InvalidParam; |
|
15 | -use okapi\OkapiServiceRunner; |
|
16 | -use okapi\OkapiInternalRequest; |
|
17 | 8 | use okapi\OkapiInternalConsumer; |
18 | -use okapi\BadRequest; |
|
9 | +use okapi\OkapiInternalRequest; |
|
10 | +use okapi\OkapiServiceRunner; |
|
11 | +use okapi\Settings; |
|
19 | 12 | |
20 | 13 | class View |
21 | 14 | { |
@@ -39,12 +39,12 @@ |
||
39 | 39 | |
40 | 40 | ini_set('memory_limit', '16M'); |
41 | 41 | $shell_arguments = "mysqldump --no-data -h$dbserver -u$user -p$password $dbname"; |
42 | - if (!strpos($shell_arguments,"--no-data")) |
|
42 | + if (!strpos($shell_arguments, "--no-data")) |
|
43 | 43 | throw new Exception("wrong database dump arguments"); |
44 | 44 | $struct = shell_exec($shell_arguments); |
45 | 45 | if (strlen($struct) > 1000000) |
46 | 46 | throw new Exception("something went terribly wrong while dumping table structures"); |
47 | - if (stripos($struct,"dumping data") !== FALSE) |
|
47 | + if (stripos($struct, "dumping data") !== FALSE) |
|
48 | 48 | throw new Exception("something went terribly wrong while dumping table structures"); |
49 | 49 | |
50 | 50 | # Remove the "AUTO_INCREMENT=..." values. They break the diffs. |
@@ -39,13 +39,16 @@ discard block |
||
39 | 39 | |
40 | 40 | ini_set('memory_limit', '16M'); |
41 | 41 | $shell_arguments = "mysqldump --no-data -h$dbserver -u$user -p$password $dbname"; |
42 | - if (!strpos($shell_arguments,"--no-data")) |
|
43 | - throw new Exception("wrong database dump arguments"); |
|
42 | + if (!strpos($shell_arguments,"--no-data")) { |
|
43 | + throw new Exception("wrong database dump arguments"); |
|
44 | + } |
|
44 | 45 | $struct = shell_exec($shell_arguments); |
45 | - if (strlen($struct) > 1000000) |
|
46 | - throw new Exception("something went terribly wrong while dumping table structures"); |
|
47 | - if (stripos($struct,"dumping data") !== FALSE) |
|
48 | - throw new Exception("something went terribly wrong while dumping table structures"); |
|
46 | + if (strlen($struct) > 1000000) { |
|
47 | + throw new Exception("something went terribly wrong while dumping table structures"); |
|
48 | + } |
|
49 | + if (stripos($struct,"dumping data") !== FALSE) { |
|
50 | + throw new Exception("something went terribly wrong while dumping table structures"); |
|
51 | + } |
|
49 | 52 | |
50 | 53 | # Remove the "AUTO_INCREMENT=..." values. They break the diffs. |
51 | 54 | |
@@ -65,12 +68,10 @@ discard block |
||
65 | 68 | |
66 | 69 | $response = new OkapiHttpResponse(); |
67 | 70 | $response->content_type = "text/plain; charset=utf-8"; |
68 | - if (isset($_GET['compare_to'])) |
|
69 | - { |
|
71 | + if (isset($_GET['compare_to'])) { |
|
70 | 72 | self::requireSafe($_GET['compare_to']); |
71 | 73 | $scheme = parse_url($_GET['compare_to'], PHP_URL_SCHEME); |
72 | - if (in_array($scheme, array('http', 'https'))) |
|
73 | - { |
|
74 | + if (in_array($scheme, array('http', 'https'))) { |
|
74 | 75 | try { |
75 | 76 | $alternate_struct = @file_get_contents($_GET['compare_to']); |
76 | 77 | } catch (Exception $e) { |
@@ -84,16 +85,13 @@ discard block |
||
84 | 85 | "-- better to use manual diff instead.\n\n"; |
85 | 86 | require_once("comparator.inc.php"); |
86 | 87 | $updater = new \dbStructUpdater(); |
87 | - if (isset($_GET['reverse']) && ($_GET['reverse'] == 'true')) |
|
88 | - { |
|
88 | + if (isset($_GET['reverse']) && ($_GET['reverse'] == 'true')) { |
|
89 | 89 | $response->body .= |
90 | 90 | "-- REVERSE MODE. The following will alter [2], so that it has the structure of [1].\n". |
91 | 91 | "-- 1. ".Settings::get('SITE_URL')."okapi/devel/dbstruct (".md5($struct).")\n". |
92 | 92 | "-- 2. ".$_GET['compare_to']." (".md5($alternate_struct).")\n\n"; |
93 | 93 | $alters = $updater->getUpdates($alternate_struct, $struct); |
94 | - } |
|
95 | - else |
|
96 | - { |
|
94 | + } else { |
|
97 | 95 | $response->body .= |
98 | 96 | "-- The following will alter [1], so that it has the structure of [2].\n". |
99 | 97 | "-- 1. ".Settings::get('SITE_URL')."okapi/devel/dbstruct (".md5($struct).")\n". |
@@ -101,31 +99,27 @@ discard block |
||
101 | 99 | $alters = $updater->getUpdates($struct, $alternate_struct); |
102 | 100 | } |
103 | 101 | # Add semicolons |
104 | - foreach ($alters as &$alter_ref) |
|
105 | - $alter_ref .= ";"; |
|
102 | + foreach ($alters as &$alter_ref) { |
|
103 | + $alter_ref .= ";"; |
|
104 | + } |
|
106 | 105 | # Comment out all differences containing "okapi_". These should be executed |
107 | 106 | # by OKAPI update scripts. |
108 | - foreach ($alters as &$alter_ref) |
|
109 | - { |
|
110 | - if (strpos($alter_ref, "okapi_") !== false) |
|
111 | - { |
|
107 | + foreach ($alters as &$alter_ref) { |
|
108 | + if (strpos($alter_ref, "okapi_") !== false) { |
|
112 | 109 | $lines = explode("\n", $alter_ref); |
113 | 110 | $alter_ref = "-- Probably you should NOT execute this one. Use okapi/update instead.\n-- {{{\n-- ". |
114 | 111 | implode("\n-- ", $lines)."\n-- }}}"; |
115 | 112 | } |
116 | 113 | } |
117 | - if (count($alters) > 0) |
|
118 | - $response->body .= implode("\n", $alters)."\n"; |
|
119 | - else |
|
120 | - $response->body .= "-- No differences found\n"; |
|
121 | - } |
|
122 | - else |
|
123 | - { |
|
114 | + if (count($alters) > 0) { |
|
115 | + $response->body .= implode("\n", $alters)."\n"; |
|
116 | + } else { |
|
117 | + $response->body .= "-- No differences found\n"; |
|
118 | + } |
|
119 | + } else { |
|
124 | 120 | $response->body = "HTTP(S) only!"; |
125 | 121 | } |
126 | - } |
|
127 | - else |
|
128 | - { |
|
122 | + } else { |
|
129 | 123 | $response->body = $struct; |
130 | 124 | } |
131 | 125 | return $response; |
@@ -44,7 +44,7 @@ |
||
44 | 44 | $struct = shell_exec($shell_arguments); |
45 | 45 | if (strlen($struct) > 1000000) |
46 | 46 | throw new Exception("something went terribly wrong while dumping table structures"); |
47 | - if (stripos($struct,"dumping data") !== FALSE) |
|
47 | + if (stripos($struct,"dumping data") !== false) |
|
48 | 48 | throw new Exception("something went terribly wrong while dumping table structures"); |
49 | 49 | |
50 | 50 | # Remove the "AUTO_INCREMENT=..." values. They break the diffs. |
@@ -3,22 +3,12 @@ |
||
3 | 3 | namespace okapi\views\tilestress; |
4 | 4 | |
5 | 5 | use Exception; |
6 | - |
|
7 | -use okapi\Okapi; |
|
8 | -use okapi\Cache; |
|
9 | 6 | use okapi\Db; |
10 | -use okapi\OkapiRequest; |
|
11 | -use okapi\OkapiRedirectResponse; |
|
12 | -use okapi\OkapiHttpResponse; |
|
13 | -use okapi\ParamMissing; |
|
14 | -use okapi\InvalidParam; |
|
15 | -use okapi\OkapiServiceRunner; |
|
16 | -use okapi\OkapiInternalRequest; |
|
17 | -use okapi\OkapiInternalConsumer; |
|
18 | -use okapi\OkapiInternalAccessToken; |
|
19 | -use okapi\Settings; |
|
20 | -use okapi\OkapiLock; |
|
21 | 7 | use okapi\OkapiExceptionHandler; |
8 | +use okapi\OkapiInternalAccessToken; |
|
9 | +use okapi\OkapiInternalConsumer; |
|
10 | +use okapi\OkapiInternalRequest; |
|
11 | +use okapi\OkapiServiceRunner; |
|
22 | 12 | |
23 | 13 | require_once($GLOBALS['rootpath']."okapi/service_runner.php"); |
24 | 14 |
@@ -66,8 +66,8 @@ |
||
66 | 66 | } |
67 | 67 | |
68 | 68 | $tiles = array(); |
69 | - for ($xx=$x; $xx<$x+4; $xx++) |
|
70 | - for ($yy=$y; $yy<$y+4; $yy++) |
|
69 | + for ($xx = $x; $xx < $x + 4; $xx++) |
|
70 | + for ($yy = $y; $yy < $y + 4; $yy++) |
|
71 | 71 | $tiles[] = array($xx, $yy); |
72 | 72 | srand(); |
73 | 73 | shuffle($tiles); |
@@ -42,8 +42,7 @@ discard block |
||
42 | 42 | $user_id = $_GET['u']; |
43 | 43 | self::out("Yo. I'm $user_id.\n\n"); |
44 | 44 | |
45 | - while (true) |
|
46 | - { |
|
45 | + while (true) { |
|
47 | 46 | srand(floor(time() / 10)); |
48 | 47 | $mode2 = rand(0, 9) <= 7; |
49 | 48 | if ($mode2) { |
@@ -66,14 +65,16 @@ discard block |
||
66 | 65 | } |
67 | 66 | |
68 | 67 | $tiles = array(); |
69 | - for ($xx=$x; $xx<$x+4; $xx++) |
|
70 | - for ($yy=$y; $yy<$y+4; $yy++) |
|
71 | - $tiles[] = array($xx, $yy); |
|
68 | + for ($xx=$x; $xx<$x+4; $xx++) { |
|
69 | + for ($yy=$y; |
|
70 | + } |
|
71 | + $yy<$y+4; $yy++) { |
|
72 | + $tiles[] = array($xx, $yy); |
|
73 | + } |
|
72 | 74 | srand(); |
73 | 75 | shuffle($tiles); |
74 | 76 | |
75 | - foreach ($tiles as $tile) |
|
76 | - { |
|
77 | + foreach ($tiles as $tile) { |
|
77 | 78 | list($x, $y) = $tile; |
78 | 79 | self::out("Loading ".str_pad("($z, $x, $y)... ", 30)); |
79 | 80 | $time_started = microtime(true); |
@@ -35,6 +35,9 @@ discard block |
||
35 | 35 | $this->init(0, 0); |
36 | 36 | } |
37 | 37 | |
38 | + /** |
|
39 | + * @param boolean $request |
|
40 | + */ |
|
38 | 41 | private function initRequest($request) |
39 | 42 | { |
40 | 43 | if ($request) { |
@@ -44,6 +47,9 @@ discard block |
||
44 | 47 | return new RequestHttp(); |
45 | 48 | } |
46 | 49 | |
50 | + /** |
|
51 | + * @param boolean $translator |
|
52 | + */ |
|
47 | 53 | private function initTranslator($translator) |
48 | 54 | { |
49 | 55 | if ($translator) { |
@@ -11,7 +11,7 @@ |
||
11 | 11 | use Oc\Libse\Http\RequestHttp; |
12 | 12 | use Oc\Libse\Language\TranslatorLanguage; |
13 | 13 | |
14 | -require_once __DIR__ . '/../../../../lib2/error.inc.php'; |
|
14 | +require_once __DIR__.'/../../../../lib2/error.inc.php'; |
|
15 | 15 | |
16 | 16 | class ControllerChildWp |
17 | 17 | { |
@@ -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,7 +5,7 @@ |
||
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 = 'newlogpics'; |
11 | 11 | $tpl->menuitem = MNU_START_NEWLOGPICS; |