Passed
Push — teampass_3.0 ( a28a84...6461da )
by Nils
04:42
created
pages/utilities.renewal.js.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,10 +35,10 @@
 block discarded – undo
35 35
 }
36 36
 
37 37
 /* do checks */
38
-require_once $SETTINGS['cpassman_dir'] . '/sources/checks.php';
38
+require_once $SETTINGS['cpassman_dir'].'/sources/checks.php';
39 39
 if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'utilities.logs', $SETTINGS) === false) {
40 40
     $_SESSION['error']['code'] = ERR_NOT_ALLOWED; //not allowed page
41
-    include $SETTINGS['cpassman_dir'] . '/error.php';
41
+    include $SETTINGS['cpassman_dir'].'/error.php';
42 42
     exit();
43 43
 }
44 44
 ?>
Please login to merge, or discard this patch.
pages/emails.js.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,10 +35,10 @@
 block discarded – undo
35 35
 }
36 36
 
37 37
 /* do checks */
38
-require_once $SETTINGS['cpassman_dir'] . '/sources/checks.php';
38
+require_once $SETTINGS['cpassman_dir'].'/sources/checks.php';
39 39
 if (checkUser($_SESSION['user_id'], $_SESSION['key'], '2fa', $SETTINGS) === false) {
40 40
     $_SESSION['error']['code'] = ERR_NOT_ALLOWED; //not allowed page
41
-    include $SETTINGS['cpassman_dir'] . '/error.php';
41
+    include $SETTINGS['cpassman_dir'].'/error.php';
42 42
     exit();
43 43
 }
44 44
 ?>
Please login to merge, or discard this patch.
sources/expired.datatables.php 1 patch
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -35,23 +35,23 @@  discard block
 block discarded – undo
35 35
 }
36 36
 
37 37
 // Do checks
38
-require_once $SETTINGS['cpassman_dir'] . '/includes/config/include.php';
39
-require_once $SETTINGS['cpassman_dir'] . '/sources/checks.php';
38
+require_once $SETTINGS['cpassman_dir'].'/includes/config/include.php';
39
+require_once $SETTINGS['cpassman_dir'].'/sources/checks.php';
40 40
 if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'folders', $SETTINGS) === false) {
41 41
     // Not allowed page
42 42
     $_SESSION['error']['code'] = ERR_NOT_ALLOWED;
43
-    include $SETTINGS['cpassman_dir'] . '/error.php';
43
+    include $SETTINGS['cpassman_dir'].'/error.php';
44 44
     exit();
45 45
 }
46 46
 
47
-require_once $SETTINGS['cpassman_dir'] . '/includes/language/' . $_SESSION['user_language'] . '.php';
48
-require_once $SETTINGS['cpassman_dir'] . '/includes/config/settings.php';
47
+require_once $SETTINGS['cpassman_dir'].'/includes/language/'.$_SESSION['user_language'].'.php';
48
+require_once $SETTINGS['cpassman_dir'].'/includes/config/settings.php';
49 49
 header('Content-type: text/html; charset=utf-8');
50 50
 header('Cache-Control: no-cache, must-revalidate');
51 51
 require_once 'main.functions.php';
52 52
 
53 53
 // Connect to mysql server
54
-require_once $SETTINGS['cpassman_dir'] . '/includes/libraries/Database/Meekrodb/db.class.php';
54
+require_once $SETTINGS['cpassman_dir'].'/includes/libraries/Database/Meekrodb/db.class.php';
55 55
 if (defined('DB_PASSWD_CLEAR') === false) {
56 56
     define('DB_PASSWD_CLEAR', defuseReturnDecrypted(DB_PASSWD, $SETTINGS));
57 57
 }
@@ -63,10 +63,10 @@  discard block
 block discarded – undo
63 63
 DB::$encoding = DB_ENCODING;
64 64
 
65 65
 // Class loader
66
-require_once $SETTINGS['cpassman_dir'] . '/sources/SplClassLoader.php';
66
+require_once $SETTINGS['cpassman_dir'].'/sources/SplClassLoader.php';
67 67
 
68 68
 //Build tree
69
-$tree = new SplClassLoader('Tree\NestedTree', $SETTINGS['cpassman_dir'] . '/includes/libraries');
69
+$tree = new SplClassLoader('Tree\NestedTree', $SETTINGS['cpassman_dir'].'/includes/libraries');
70 70
 $tree->register();
71 71
 $tree = new Tree\NestedTree\NestedTree(prefixTable('nested_tree'), 'id', 'parent_id', 'title');
72 72
 
@@ -80,22 +80,22 @@  discard block
 block discarded – undo
80 80
 
81 81
 // Is a date sent?
82 82
 if (isset($_GET['dateCriteria']) === true && empty($_GET['dateCriteria']) === false) {
83
-    $sWhere .= ' AND a.del_value < ' . round(filter_var($_GET['dateCriteria'], FILTER_SANITIZE_NUMBER_INT) / 1000, 0);
83
+    $sWhere .= ' AND a.del_value < '.round(filter_var($_GET['dateCriteria'], FILTER_SANITIZE_NUMBER_INT) / 1000, 0);
84 84
 }
85 85
 //echo $sWhere;
86 86
 /* BUILD QUERY */
87 87
 //Paging
88 88
 $sLimit = '';
89 89
 if (isset($_GET['length']) === true && (int) $_GET['length'] !== -1) {
90
-    $sLimit = ' LIMIT ' . filter_var($_GET['start'], FILTER_SANITIZE_NUMBER_INT) . ', ' . filter_var($_GET['length'], FILTER_SANITIZE_NUMBER_INT) . '';
90
+    $sLimit = ' LIMIT '.filter_var($_GET['start'], FILTER_SANITIZE_NUMBER_INT).', '.filter_var($_GET['length'], FILTER_SANITIZE_NUMBER_INT).'';
91 91
 }
92 92
 
93 93
 //Ordering
94 94
 if (isset($_GET['order'][0]['dir']) && in_array($_GET['order'][0]['dir'], $aSortTypes)) {
95 95
     $sOrder = 'ORDER BY  ';
96 96
     if (preg_match('#^(asc|desc)$#i', $_GET['order'][0]['column'])) {
97
-        $sOrder .= '' . $aColumns[filter_var($_GET['order'][0]['column'], FILTER_SANITIZE_NUMBER_INT)] . ' '
98
-            . filter_var($_GET['order'][0]['column'], FILTER_SANITIZE_STRING) . ', ';
97
+        $sOrder .= ''.$aColumns[filter_var($_GET['order'][0]['column'], FILTER_SANITIZE_NUMBER_INT)].' '
98
+            . filter_var($_GET['order'][0]['column'], FILTER_SANITIZE_STRING).', ';
99 99
     }
100 100
 
101 101
     $sOrder = substr_replace($sOrder, '', -2);
@@ -116,29 +116,29 @@  discard block
 block discarded – undo
116 116
     && $_GET['letter'] !== 'None'
117 117
 ) {
118 118
     $sWhere .= ' AND ';
119
-    $sWhere .= $aColumns[1] . " LIKE '" . filter_var($_GET['letter'], FILTER_SANITIZE_STRING) . "%' OR ";
120
-    $sWhere .= $aColumns[2] . " LIKE '" . filter_var($_GET['letter'], FILTER_SANITIZE_STRING) . "%' OR ";
121
-    $sWhere .= $aColumns[3] . " LIKE '" . filter_var($_GET['letter'], FILTER_SANITIZE_STRING) . "%' ";
119
+    $sWhere .= $aColumns[1]." LIKE '".filter_var($_GET['letter'], FILTER_SANITIZE_STRING)."%' OR ";
120
+    $sWhere .= $aColumns[2]." LIKE '".filter_var($_GET['letter'], FILTER_SANITIZE_STRING)."%' OR ";
121
+    $sWhere .= $aColumns[3]." LIKE '".filter_var($_GET['letter'], FILTER_SANITIZE_STRING)."%' ";
122 122
 } elseif (isset($_GET['search']['value']) === true && $_GET['search']['value'] !== '') {
123 123
     $sWhere = ' AND ';
124
-    $sWhere .= $aColumns[1] . " LIKE '" . filter_var($_GET['search']['value'], FILTER_SANITIZE_STRING) . "%' OR ";
125
-    $sWhere .= $aColumns[2] . " LIKE '" . filter_var($_GET['search']['value'], FILTER_SANITIZE_STRING) . "%' OR ";
126
-    $sWhere .= $aColumns[3] . " LIKE '" . filter_var($_GET['search']['value'], FILTER_SANITIZE_STRING) . "%' ";
124
+    $sWhere .= $aColumns[1]." LIKE '".filter_var($_GET['search']['value'], FILTER_SANITIZE_STRING)."%' OR ";
125
+    $sWhere .= $aColumns[2]." LIKE '".filter_var($_GET['search']['value'], FILTER_SANITIZE_STRING)."%' OR ";
126
+    $sWhere .= $aColumns[3]." LIKE '".filter_var($_GET['search']['value'], FILTER_SANITIZE_STRING)."%' ";
127 127
 }
128 128
 
129 129
 $rows = DB::query(
130 130
     'SELECT a.item_id, i.label, a.del_value, i.id_tree
131
-    FROM ' . prefixTable('automatic_del') . ' AS a
132
-    INNER JOIN ' . prefixTable('items') . ' AS i ON (i.id = a.item_id)' .
131
+    FROM ' . prefixTable('automatic_del').' AS a
132
+    INNER JOIN ' . prefixTable('items').' AS i ON (i.id = a.item_id)'.
133 133
         $sWhere
134 134
 );
135 135
 $iTotal = DB::count();
136 136
 
137 137
 $rows = DB::query(
138 138
     'SELECT a.item_id, i.label, a.del_value, i.id_tree
139
-    FROM ' . prefixTable('automatic_del') . ' AS a
140
-    INNER JOIN ' . prefixTable('items') . ' AS i ON (i.id = a.item_id)' .
141
-        $sWhere .
139
+    FROM ' . prefixTable('automatic_del').' AS a
140
+    INNER JOIN ' . prefixTable('items').' AS i ON (i.id = a.item_id)'.
141
+        $sWhere.
142 142
         $sLimit
143 143
 );
144 144
 $iFilteredTotal = DB::count();
@@ -158,13 +158,13 @@  discard block
 block discarded – undo
158 158
     $sOutput .= '[';
159 159
 
160 160
     // Column 1
161
-    $sOutput .= '"<i class=\"fas fa-external-link-alt pointer text-primary mr-2\" onclick=\"showItemCard($(this))\" data-item-id=\"' . $record['item_id'] . '\"  data-item-tree-id=\"' . $record['id_tree'] . '\"></i>", ';
161
+    $sOutput .= '"<i class=\"fas fa-external-link-alt pointer text-primary mr-2\" onclick=\"showItemCard($(this))\" data-item-id=\"'.$record['item_id'].'\"  data-item-tree-id=\"'.$record['id_tree'].'\"></i>", ';
162 162
 
163 163
     // Column 2
164
-    $sOutput .= '"' . $record['label'] . '", ';
164
+    $sOutput .= '"'.$record['label'].'", ';
165 165
 
166 166
     // Column 3
167
-    $sOutput .= '"' . date($SETTINGS['date_format'] . ' ' . $SETTINGS['time_format'], $record['del_value']) . '", ';
167
+    $sOutput .= '"'.date($SETTINGS['date_format'].' '.$SETTINGS['time_format'], $record['del_value']).'", ';
168 168
 
169 169
     // Column 4
170 170
     $path = array();
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
     foreach ($treeDesc as $t) {
173 173
         array_push($path, $t->title);
174 174
     }
175
-    $sOutput .= '"' . implode('<i class=\"fas fa-angle-right ml-1 mr-1\"></i>', $path) . '"],';
175
+    $sOutput .= '"'.implode('<i class=\"fas fa-angle-right ml-1 mr-1\"></i>', $path).'"],';
176 176
 }
177 177
 
178 178
 if ($iTotal > 0) {
@@ -185,4 +185,4 @@  discard block
 block discarded – undo
185 185
 }
186 186
 
187 187
 // finalize output
188
-echo '{"recordsTotal": ' . $iTotal . ', "recordsFiltered": ' . $iFilteredTotal . ', "data": ' . $sOutput;
188
+echo '{"recordsTotal": '.$iTotal.', "recordsFiltered": '.$iFilteredTotal.', "data": '.$sOutput;
Please login to merge, or discard this patch.
sources/downloadFile.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 }
45 45
 
46 46
 // Include files
47
-require_once $SETTINGS['cpassman_dir'] . '/includes/libraries/protect/SuperGlobal/SuperGlobal.php';
47
+require_once $SETTINGS['cpassman_dir'].'/includes/libraries/protect/SuperGlobal/SuperGlobal.php';
48 48
 $superGlobal = new protect\SuperGlobal\SuperGlobal();
49 49
 
50 50
 // Prepare GET variables
@@ -54,18 +54,18 @@  discard block
 block discarded – undo
54 54
 // prepare Encryption class calls
55 55
 use Defuse\Crypto\File;
56 56
 
57
-header('Content-disposition: attachment; filename=' . rawurldecode(basename($get_filename)));
57
+header('Content-disposition: attachment; filename='.rawurldecode(basename($get_filename)));
58 58
 header('Content-Type: application/octet-stream');
59 59
 header('Cache-Control: must-revalidate, no-cache, no-store');
60 60
 header('Expires: 0');
61 61
 if (isset($_GET['pathIsFiles']) && $_GET['pathIsFiles'] == 1) {
62
-    readfile($SETTINGS['path_to_files_folder'] . '/' . basename($get_filename));
62
+    readfile($SETTINGS['path_to_files_folder'].'/'.basename($get_filename));
63 63
 } else {
64 64
     include_once 'main.functions.php';
65
-    require_once $SETTINGS['cpassman_dir'] . '/includes/config/settings.php';
65
+    require_once $SETTINGS['cpassman_dir'].'/includes/config/settings.php';
66 66
 
67 67
     // connect to the server
68
-    include_once $SETTINGS['cpassman_dir'] . '/includes/libraries/Database/Meekrodb/db.class.php';
68
+    include_once $SETTINGS['cpassman_dir'].'/includes/libraries/Database/Meekrodb/db.class.php';
69 69
     if (defined('DB_PASSWD_CLEAR') === false) {
70 70
         define('DB_PASSWD_CLEAR', defuseReturnDecrypted(DB_PASSWD, $SETTINGS));
71 71
     }
@@ -80,8 +80,8 @@  discard block
 block discarded – undo
80 80
     $file_info = DB::queryfirstrow(
81 81
         'SELECT f.id AS id, f.file AS file, f.name AS name, f.status AS status, f.extension AS extension,
82 82
         s.share_key AS share_key
83
-        FROM ' . prefixTable('files') . ' AS f
84
-        INNER JOIN ' . prefixTable('sharekeys_files') . ' AS s ON (f.id = s.object_id)
83
+        FROM ' . prefixTable('files').' AS f
84
+        INNER JOIN ' . prefixTable('sharekeys_files').' AS s ON (f.id = s.object_id)
85 85
         WHERE s.user_id = %i AND s.object_id = %i',
86 86
         $_SESSION['user_id'],
87 87
         $get_fileid
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
104 104
     header('Cache-Control: private', false);
105 105
     header('Content-Type: application/octet-stream');
106
-    header('Content-Disposition: attachment; filename="' . $filename . '.' . $file_info['extension'] . '";');
106
+    header('Content-Disposition: attachment; filename="'.$filename.'.'.$file_info['extension'].'";');
107 107
     header('Content-Transfer-Encoding: binary');
108 108
 
109 109
     // Stream the CSV data
Please login to merge, or discard this patch.
pages/uploads.js.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,10 +35,10 @@
 block discarded – undo
35 35
 }
36 36
 
37 37
 /* do checks */
38
-require_once $SETTINGS['cpassman_dir'] . '/sources/checks.php';
38
+require_once $SETTINGS['cpassman_dir'].'/sources/checks.php';
39 39
 if (checkUser($_SESSION['user_id'], $_SESSION['key'], '2fa', $SETTINGS) === false) {
40 40
     $_SESSION['error']['code'] = ERR_NOT_ALLOWED; //not allowed page
41
-    include $SETTINGS['cpassman_dir'] . '/error.php';
41
+    include $SETTINGS['cpassman_dir'].'/error.php';
42 42
     exit();
43 43
 }
44 44
 ?>
Please login to merge, or discard this patch.
pages/folders.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -36,15 +36,15 @@  discard block
 block discarded – undo
36 36
 }
37 37
 
38 38
 /* do checks */
39
-require_once $SETTINGS['cpassman_dir'] . '/sources/checks.php';
39
+require_once $SETTINGS['cpassman_dir'].'/sources/checks.php';
40 40
 if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'folders', $SETTINGS) === false) {
41 41
     $_SESSION['error']['code'] = ERR_NOT_ALLOWED;
42
-    include $SETTINGS['cpassman_dir'] . '/error.php';
42
+    include $SETTINGS['cpassman_dir'].'/error.php';
43 43
     exit();
44 44
 }
45 45
 
46 46
 // Load template
47
-require_once $SETTINGS['cpassman_dir'] . '/sources/main.functions.php';
47
+require_once $SETTINGS['cpassman_dir'].'/sources/main.functions.php';
48 48
 
49 49
 // Ensure Complexity levels are translated
50 50
 if (defined('TP_PW_COMPLEXITY') === false) {
@@ -65,15 +65,15 @@  discard block
 block discarded – undo
65 65
 $complexityHtml = '<div id="hidden-select-complexity" class="hidden"><select id="select-complexity" class="form-control form-item-control save-me">';
66 66
 $complexitySelect = '';
67 67
 foreach (TP_PW_COMPLEXITY as $level) {
68
-    $complexitySelect .= '<option value="' . $level[0] . '">' . $level[1] . '</option>';
68
+    $complexitySelect .= '<option value="'.$level[0].'">'.$level[1].'</option>';
69 69
 }
70
-$complexityHtml .= $complexitySelect . '</select></div>';
70
+$complexityHtml .= $complexitySelect.'</select></div>';
71 71
 
72 72
 // Prepare folders
73
-require_once $SETTINGS['cpassman_dir'] . '/sources/SplClassLoader.php';
73
+require_once $SETTINGS['cpassman_dir'].'/sources/SplClassLoader.php';
74 74
 
75 75
 //Build tree
76
-$tree = new SplClassLoader('Tree\NestedTree', $SETTINGS['cpassman_dir'] . '/includes/libraries');
76
+$tree = new SplClassLoader('Tree\NestedTree', $SETTINGS['cpassman_dir'].'/includes/libraries');
77 77
 $tree->register();
78 78
 $tree = new Tree\NestedTree\NestedTree(prefixTable('nested_tree'), 'id', 'parent_id', 'title');
79 79
 
@@ -82,21 +82,21 @@  discard block
 block discarded – undo
82 82
 
83 83
 // prepare options list
84 84
 $prev_level = 0;
85
-$droplist = '<option value="na">---' . langHdl('select') . '---</option>';
85
+$droplist = '<option value="na">---'.langHdl('select').'---</option>';
86 86
 if ((int) $_SESSION['is_admin'] === 1 || (int) $_SESSION['user_manager'] === 1 || (int) $_SESSION['can_create_root_folder'] === 1) {
87
-    $droplist .= '<option value="0">' . langHdl('root') . '</option>';
87
+    $droplist .= '<option value="0">'.langHdl('root').'</option>';
88 88
 }
89 89
 foreach ($tst as $t) {
90 90
     if (
91 91
         in_array($t->id, $_SESSION['groupes_visibles']) === true
92 92
         && in_array($t->id, $_SESSION['personal_visible_groups']) === false
93 93
     ) {
94
-        $droplist .= '<option value="' . $t->id . '">' . addslashes($t->title);
94
+        $droplist .= '<option value="'.$t->id.'">'.addslashes($t->title);
95 95
         $text = '';
96 96
         foreach ($tree->getPath($t->id, false) as $fld) {
97
-            $text .= empty($text) === true ? '     [' . $fld->title : ' > ' . $fld->title;
97
+            $text .= empty($text) === true ? '     ['.$fld->title : ' > '.$fld->title;
98 98
         }
99
-        $droplist .= (empty($text) === true ? '' : $text . '</i>]') . '</option>';
99
+        $droplist .= (empty($text) === true ? '' : $text.'</i>]').'</option>';
100 100
     }
101 101
 }
102 102
 
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
                                 <th scope="col" min-width="200px"><?php echo langHdl('group'); ?></th>
256 256
                                 <th scope="col" min-width="200px"><?php echo langHdl('group_parent'); ?></th>
257 257
                                 <th scope="col" width="50px"><i class="fas fa-gavel fa-lg infotip" title="<?php echo langHdl('password_strength'); ?>"></i></th>
258
-                                <th scope="col" width="50px"><i class="fas fa-recycle fa-lg infotip" title="<?php echo langHdl('group_pw_duration') . ' ' . langHdl('group_pw_duration_tip'); ?>"></i></th>
258
+                                <th scope="col" width="50px"><i class="fas fa-recycle fa-lg infotip" title="<?php echo langHdl('group_pw_duration').' '.langHdl('group_pw_duration_tip'); ?>"></i></th>
259 259
                                 <th scope="col" width="50px"><i class="fas fa-pen fa-lg infotip" title="<?php echo langHdl('auth_creation_without_complexity'); ?>"></i></th>
260 260
                                 <th scope="col" width="50px"><i class="fas fa-edit fa-lg infotip" title="<?php echo langHdl('auth_modification_without_complexity'); ?>"></i></th>
261 261
                             </tr>
Please login to merge, or discard this patch.
pages/utilities.deletion.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,15 +36,15 @@
 block discarded – undo
36 36
 }
37 37
 
38 38
 /* do checks */
39
-require_once $SETTINGS['cpassman_dir'] . '/sources/checks.php';
39
+require_once $SETTINGS['cpassman_dir'].'/sources/checks.php';
40 40
 if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'utilities.deletion', $SETTINGS) === false) {
41 41
     $_SESSION['error']['code'] = ERR_NOT_ALLOWED;
42
-    include $SETTINGS['cpassman_dir'] . '/error.php';
42
+    include $SETTINGS['cpassman_dir'].'/error.php';
43 43
     exit();
44 44
 }
45 45
 
46 46
 // Load template
47
-require_once $SETTINGS['cpassman_dir'] . '/sources/main.functions.php';
47
+require_once $SETTINGS['cpassman_dir'].'/sources/main.functions.php';
48 48
 
49 49
 ?>
50 50
 
Please login to merge, or discard this patch.
pages/backups.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,15 +36,15 @@
 block discarded – undo
36 36
 }
37 37
 
38 38
 /* do checks */
39
-require_once $SETTINGS['cpassman_dir'] . '/sources/checks.php';
39
+require_once $SETTINGS['cpassman_dir'].'/sources/checks.php';
40 40
 if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'backups', $SETTINGS) === false) {
41 41
     $_SESSION['error']['code'] = ERR_NOT_ALLOWED;
42
-    include $SETTINGS['cpassman_dir'] . '/error.php';
42
+    include $SETTINGS['cpassman_dir'].'/error.php';
43 43
     exit();
44 44
 }
45 45
 
46 46
 // Load template
47
-require_once $SETTINGS['cpassman_dir'] . '/sources/main.functions.php';
47
+require_once $SETTINGS['cpassman_dir'].'/sources/main.functions.php';
48 48
 
49 49
 // Decrypt key
50 50
 $localEncryptionKey = isset($SETTINGS['bck_script_passkey']) === true ?
Please login to merge, or discard this patch.
pages/statistics.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,10 +36,10 @@  discard block
 block discarded – undo
36 36
 }
37 37
 
38 38
 /* do checks */
39
-require_once $SETTINGS['cpassman_dir'] . '/sources/checks.php';
39
+require_once $SETTINGS['cpassman_dir'].'/sources/checks.php';
40 40
 if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'statistics', $SETTINGS) === false) {
41 41
     $_SESSION['error']['code'] = ERR_NOT_ALLOWED;
42
-    include $SETTINGS['cpassman_dir'] . '/error.php';
42
+    include $SETTINGS['cpassman_dir'].'/error.php';
43 43
     exit();
44 44
 }
45 45
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     $statistics_items = array_filter(explode(';', $SETTINGS['send_statistics_items']));
50 50
 }
51 51
 
52
-require_once $SETTINGS['cpassman_dir'] . '/sources/main.functions.php';
52
+require_once $SETTINGS['cpassman_dir'].'/sources/main.functions.php';
53 53
 
54 54
 ?>
55 55
 
Please login to merge, or discard this patch.