Completed
Push — master ( 182b8c...09455a )
by Thomas
07:02
created
htdocs/lib/consts-common.inc.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,10 +7,10 @@
 block discarded – undo
7 7
  *  common constant definitions of lib1 and lib2
8 8
  ***************************************************************************/
9 9
 
10
-define('GUI_HTML', 0);   // also defined in lib/consts.inc.php
10
+define('GUI_HTML', 0); // also defined in lib/consts.inc.php
11 11
 define('GUI_TEXT', 1);
12 12
 
13
-define('HTTPS_DISABLED', 0);   // also defined in lib/consts.inc.php
13
+define('HTTPS_DISABLED', 0); // also defined in lib/consts.inc.php
14 14
 define('HTTPS_ENABLED', 1);
15 15
 define('HTTPS_ENFORCED', 2);
16 16
 
Please login to merge, or discard this patch.
htdocs/lib/settings-sample-dev.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.
local/ocxml11client/xml2array.inc.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,14 +16,14 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
htdocs/adminuser.php 1 patch
Spacing   +4 added lines, -4 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 = 'adminuser';
11 11
 $tpl->menuitem = MNU_ADMIN_USER;
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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()
Please login to merge, or discard this patch.
htdocs/login.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
htdocs/newlogsrest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,4 +6,4 @@
 block discarded – undo
6 6
  ***************************************************************************/
7 7
 
8 8
 $newlogs_rest = true;
9
-require __DIR__ . '/newlogs.php';
9
+require __DIR__.'/newlogs.php';
Please login to merge, or discard this patch.
htdocs/garmin.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -5,9 +5,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
htdocs/mywatches.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 = '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
 block discarded – undo
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)
Please login to merge, or discard this patch.
htdocs/mydetails.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.