Passed
Push — wip_sessions ( dba0a8...2f1ef6 )
by Nils
05:51
created
pages/options.js.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('options') === false) {
69 69
     // Not allowed page
70 70
     $session->set('system-error_code', ERR_NOT_ALLOWED);
71
-    include $SETTINGS['cpassman_dir'] . '/error.php';
71
+    include $SETTINGS['cpassman_dir'].'/error.php';
72 72
     exit;
73 73
 }
74 74
 ?>
Please login to merge, or discard this patch.
pages/admin.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('admin') === false) {
72 72
     // Not allowed page
73 73
     $session->set('system-error_code', ERR_NOT_ALLOWED);
74
-    include $SETTINGS['cpassman_dir'] . '/error.php';
74
+    include $SETTINGS['cpassman_dir'].'/error.php';
75 75
     exit;
76 76
 }
77 77
 
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
                             </div>
213 213
         <?php
214 214
     } else {
215
-        $job = (array) $results[0];//print_r($job);
215
+        $job = (array) $results[0]; //print_r($job);
216 216
         ?>
217 217
                             <div>
218 218
                                 <i class="fa-solid fa-circle-check text-success mr-2"></i><?php echo $lang->get('tasks_cron_running'); ?>
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
                     <div class="card-body">
248 248
                         <?php
249 249
                         // Display information about server
250
-                        $dbSize = DB::queryFirstRow("SELECT ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS 'size' FROM information_schema.TABLES WHERE table_schema = '" . DB_NAME . "'");
250
+                        $dbSize = DB::queryFirstRow("SELECT ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS 'size' FROM information_schema.TABLES WHERE table_schema = '".DB_NAME."'");
251 251
 
252 252
                         // Get OS
253 253
                         $uname = php_uname('s');
@@ -285,16 +285,16 @@  discard block
 block discarded – undo
285 285
                         }
286 286
 
287 287
                         echo 
288
-                        '<p>' . $os.
288
+                        '<p>'.$os.
289 289
                             '<br><span class="ml-4"></span>'.
290 290
                         '</p>'.
291
-                        '<p><i class="fa-brands fa-php mr-2"></i>PHP version: ' . phpversion().
291
+                        '<p><i class="fa-brands fa-php mr-2"></i>PHP version: '.phpversion().
292 292
                             '<br><span class="ml-4">Memory limit: '.(ini_get('memory_limit')).'</span>'.
293 293
                             '<br><span class="ml-4">Memory usage: '.formatSizeUnits(memory_get_usage()).'</span>'.
294 294
                             '<br><span class="ml-4">Maximum time execution: '.ini_get('max_execution_time').'</span>'.
295 295
                             '<br><span class="ml-4">Maximum file size upload: '.ini_get('upload_max_filesize').'</span>'.
296 296
                         '</p>'.
297
-                        '<p><i class="fa-solid fa-server mr-2"></i>Server version: ' . DB::serverVersion().
297
+                        '<p><i class="fa-solid fa-server mr-2"></i>Server version: '.DB::serverVersion().
298 298
                             '<br><span class="ml-4">Database size: '.($dbSize['size']).'MB</span>'.
299 299
                         '</p>';
300 300
 
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
                         $serverTime = localtime(time(), true);
303 303
                         echo '<div class="row">'.
304 304
                             '<div class="col-6"><i class="fa-solid fa-clock mr-2"></i>Server time:</div>'.
305
-                            '<div class="col-6"><span class="badge badge-info">' . $serverTime['tm_hour'].':'.$serverTime['tm_min'].':'.$serverTime['tm_sec'].'</span></div>'.
305
+                            '<div class="col-6"><span class="badge badge-info">'.$serverTime['tm_hour'].':'.$serverTime['tm_min'].':'.$serverTime['tm_sec'].'</span></div>'.
306 306
                         '</div>'.
307 307
                         '<div class="row">'.
308 308
                             '<div class="col-6"><span class="ml-4">Timezone:</span></div>'.
Please login to merge, or discard this patch.
pages/utilities.renewal.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('utilities.renewal') === false) {
65 65
     // Not allowed page
66 66
     $session->set('system-error_code', ERR_NOT_ALLOWED);
67
-    include $SETTINGS['cpassman_dir'] . '/error.php';
67
+    include $SETTINGS['cpassman_dir'].'/error.php';
68 68
     exit;
69 69
 }
70 70
 
Please login to merge, or discard this patch.
pages/search.js.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
 if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('search') === false) {
72 72
     // Not allowed page
73 73
     $session->set('system-error_code', ERR_NOT_ALLOWED);
74
-    include $SETTINGS['cpassman_dir'] . '/error.php';
74
+    include $SETTINGS['cpassman_dir'].'/error.php';
75 75
     exit;
76 76
 }
77 77
 $var = [];
Please login to merge, or discard this patch.
pages/api.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('api') === false) {
66 66
     // Not allowed page
67 67
     $session->set('system-error_code', ERR_NOT_ALLOWED);
68
-    include $SETTINGS['cpassman_dir'] . '/error.php';
68
+    include $SETTINGS['cpassman_dir'].'/error.php';
69 69
     exit;
70 70
 }
71 71
 
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
                                     <?php
150 150
                                     $rowsKeys = DB::query(
151 151
                                         'SELECT increment_id, label, timestamp, user_id, value 
152
-                                        FROM ' . prefixTable('api') . '
152
+                                        FROM ' . prefixTable('api').'
153 153
                                         WHERE type = %s
154 154
                                         ORDER BY timestamp ASC',
155 155
                                         'key'
@@ -167,10 +167,10 @@  discard block
 block discarded – undo
167 167
                                             <?php
168 168
                                             foreach ($rowsKeys as $key) {
169 169
                                                 echo '
170
-                                                    <tr data-id="' . $key['increment_id'] . '">
171
-                                                    <td width="50px"><i class="fas fa-trash infotip pointer delete-api-key" title="' . $lang->get('del_button') . '"></i></td>
172
-                                                    <td><span class="edit-api-key pointer">' . $key['label'] . '</span></td>
173
-                                                    <td>' . $key['value']. '</td>                        
170
+                                                    <tr data-id="' . $key['increment_id'].'">
171
+                                                    <td width="50px"><i class="fas fa-trash infotip pointer delete-api-key" title="' . $lang->get('del_button').'"></i></td>
172
+                                                    <td><span class="edit-api-key pointer">' . $key['label'].'</span></td>
173
+                                                    <td>' . $key['value'].'</td>                        
174 174
                                                 </tr>';
175 175
                                             } ?>
176 176
                                         </tbody>
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
                                 <div class="col-12 mt-4" id="table-api-ip">
206 206
                                     <?php
207 207
                                     $rowsIps = DB::query(
208
-                                                'SELECT increment_id, label, timestamp value FROM ' . prefixTable('api') . '
208
+                                                'SELECT increment_id, label, timestamp value FROM '.prefixTable('api').'
209 209
                                                 WHERE type = %s
210 210
                                                 ORDER BY timestamp ASC',
211 211
                                                 'ip'
@@ -223,10 +223,10 @@  discard block
 block discarded – undo
223 223
                                             <?php
224 224
                                             foreach ($rowsIps as $ip) {
225 225
                                                 echo '
226
-                                                <tr data-id="' . $ip['increment_id'] . '">
227
-                                                    <td width="50px"><i class="fas fa-trash infotip pointer delete-api-ip" title="' . $lang->get('del_button') . '"></i></td>
228
-                                                    <td><span class="edit-api-ip pointer" data-field="label">' . $ip['label'] . '</span></td>
229
-                                                    <td><span class="edit-api-ip pointer" data-field="value">' . $ip['value'] . '</span></td>                        
226
+                                                <tr data-id="' . $ip['increment_id'].'">
227
+                                                    <td width="50px"><i class="fas fa-trash infotip pointer delete-api-ip" title="' . $lang->get('del_button').'"></i></td>
228
+                                                    <td><span class="edit-api-ip pointer" data-field="label">' . $ip['label'].'</span></td>
229
+                                                    <td><span class="edit-api-ip pointer" data-field="value">' . $ip['value'].'</span></td>                        
230 230
                                                 </tr>';
231 231
                                             } ?>
232 232
                                         </tbody>
Please login to merge, or discard this patch.
pages/roles.js.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('roles') === false) {
68 68
     // Not allowed page
69 69
     $session->set('system-error_code', ERR_NOT_ALLOWED);
70
-    include $SETTINGS['cpassman_dir'] . '/error.php';
70
+    include $SETTINGS['cpassman_dir'].'/error.php';
71 71
     exit;
72 72
 }
73 73
 ?>
Please login to merge, or discard this patch.
pages/options.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('options') === false) {
66 66
     // Not allowed page
67 67
     $session->set('system-error_code', ERR_NOT_ALLOWED);
68
-    include $SETTINGS['cpassman_dir'] . '/error.php';
68
+    include $SETTINGS['cpassman_dir'].'/error.php';
69 69
     exit;
70 70
 }
71 71
 
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
                                     // get list of all timezones
298 298
                                     foreach ($zones as $key => $zone) {
299 299
                                         echo '
300
-                                <option value="' . $key . '"', isset($SETTINGS['timezone']) === true && $SETTINGS['timezone'] === $key ? ' selected' : '', '>' . $zone . '</option>';
300
+                                <option value="' . $key.'"', isset($SETTINGS['timezone']) === true && $SETTINGS['timezone'] === $key ? ' selected' : '', '>'.$zone.'</option>';
301 301
                                     }
302 302
                                     ?>
303 303
                                 </select>
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
                                     <?php
349 349
                                     foreach ($languagesList as $teampassLang) {
350 350
                                         echo '
351
-                                <option value="' . $teampassLang . '"', isset($SETTINGS['default_language']) === true && $SETTINGS['default_language'] === $teampassLang ? ' selected' : '', '>' . $teampassLang . '</option>';
351
+                                <option value="' . $teampassLang.'"', isset($SETTINGS['default_language']) === true && $SETTINGS['default_language'] === $teampassLang ? ' selected' : '', '>'.$teampassLang.'</option>';
352 352
                                     }
353 353
                                     ?>
354 354
                                 </select>
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
                                 <?php
446 446
                                 foreach (TP_PW_COMPLEXITY as $complex) {
447 447
                                     echo '
448
-                                <option value="' . $complex[0] . '"', isset($SETTINGS['personal_saltkey_security_level']) === true && $SETTINGS['personal_saltkey_security_level'] === $complex[0] ? ' selected' : '', '>' . $complex[1] . '</option>';
448
+                                <option value="' . $complex[0].'"', isset($SETTINGS['personal_saltkey_security_level']) === true && $SETTINGS['personal_saltkey_security_level'] === $complex[0] ? ' selected' : '', '>'.$complex[1].'</option>';
449 449
                                 }
450 450
                                 ?>
451 451
                             </select>
@@ -781,7 +781,7 @@  discard block
 block discarded – undo
781 781
                                         );
782 782
                                         foreach ($roles as $role) {
783 783
                                             echo '
784
-                                    <option value="' . $role['id'] . '"', in_array($role['id'], $arrRolesToPrint) === true ? ' selected' : '', '>' . addslashes($role['title']) . '</option>';
784
+                                    <option value="' . $role['id'].'"', in_array($role['id'], $arrRolesToPrint) === true ? ' selected' : '', '>'.addslashes($role['title']).'</option>';
785 785
                                         }
786 786
                                     }
787 787
                                     ?>
@@ -958,7 +958,7 @@  discard block
 block discarded – undo
958 958
                                     <?php
959 959
                                     foreach (TP_PW_COMPLEXITY as $complex) {
960 960
                                         echo '
961
-                                <option value="' . $complex[0] . '"', isset($SETTINGS['offline_key_level']) === true && $SETTINGS['offline_key_level'] === $complex[0] ? ' selected' : '', '>' . $complex[1] . '</option>';
961
+                                <option value="' . $complex[0].'"', isset($SETTINGS['offline_key_level']) === true && $SETTINGS['offline_key_level'] === $complex[0] ? ' selected' : '', '>'.$complex[1].'</option>';
962 962
                                     }
963 963
                                     ?>
964 964
                                 </select>
Please login to merge, or discard this patch.
pages/folders.js.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('folders') === false) {
68 68
     // Not allowed page
69 69
     $session->set('system-error_code', ERR_NOT_ALLOWED);
70
-    include $SETTINGS['cpassman_dir'] . '/error.php';
70
+    include $SETTINGS['cpassman_dir'].'/error.php';
71 71
     exit;
72 72
 }
73 73
 ?>
@@ -697,14 +697,14 @@  discard block
 block discarded – undo
697 697
             '<label><?php echo $lang->get('icon'); ?></label>' +
698 698
             '<input type="text" class="form-control form-folder-control purify" id="folder-edit-icon" data-field="icon" value="'+folderIcon+'">' +
699 699
             '<small class="form-text text-muted">' +
700
-            '<?php echo $lang->get('fontawesome_icon_tip'); ?><a href="<?php echo FONTAWESOME_URL;?>" target="_blank"><i class="fas fa-external-link-alt ml-1"></i></a>' +
700
+            '<?php echo $lang->get('fontawesome_icon_tip'); ?><a href="<?php echo FONTAWESOME_URL; ?>" target="_blank"><i class="fas fa-external-link-alt ml-1"></i></a>' +
701 701
             '</small>' +
702 702
             '</div>' +
703 703
             '<div class="form-group ml-2">' +
704 704
             '<label><?php echo $lang->get('icon_on_selection'); ?></label>' +
705 705
             '<input type="text" class="form-control form-folder-control purify" id="folder-edit-icon-selected" data-field="iconSelected" value="'+folderIconSelection+'">' +
706 706
             '<small class="form-text text-muted">' +
707
-            '<?php echo $lang->get('fontawesome_icon_tip'); ?><a href="<?php echo FONTAWESOME_URL;?>" target="_blank"><i class="fas fa-external-link-alt ml-1"></i></a>' +
707
+            '<?php echo $lang->get('fontawesome_icon_tip'); ?><a href="<?php echo FONTAWESOME_URL; ?>" target="_blank"><i class="fas fa-external-link-alt ml-1"></i></a>' +
708 708
             '</small>' +
709 709
             '</div>' +
710 710
             '<div class="form-group ml-2" id="folder-rights-tuned">' +
Please login to merge, or discard this patch.
pages/emails.js.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('emails') === false) {
69 69
     // Not allowed page
70 70
     $session->set('system-error_code', ERR_NOT_ALLOWED);
71
-    include $SETTINGS['cpassman_dir'] . '/error.php';
71
+    include $SETTINGS['cpassman_dir'].'/error.php';
72 72
     exit;
73 73
 }
74 74
 ?>
Please login to merge, or discard this patch.