Passed
Push — wip_sessions ( b55e55...384f5b )
by Nils
05:05
created
pages/import.js.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('import') === 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
 ?>
@@ -702,7 +702,7 @@  discard block
 block discarded – undo
702 702
                                     // Isolate first item
703 703
                                     if (itemsList.length > 0) {
704 704
                                         $('#import-feedback-progress-text')
705
-                                            .html('<i class="fas fa-cog fa-spin ml-4 mr-2"></i><?php echo $lang->get('operation_progress');?> ('+((counter*100)/itemsNumber).toFixed(2)+'%) - <i>'+itemsList[0].Title + '</i>');
705
+                                            .html('<i class="fas fa-cog fa-spin ml-4 mr-2"></i><?php echo $lang->get('operation_progress'); ?> ('+((counter*100)/itemsNumber).toFixed(2)+'%) - <i>'+itemsList[0].Title + '</i>');
706 706
 
707 707
                                         data = {
708 708
                                             'edit-all': $('#import-keepass-edit-all-checkbox').prop('checked') === true ? 1 : 0,
Please login to merge, or discard this patch.
pages/items.php 1 patch
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     error_log('DEBUG: En ERREUR /!\\');
64 64
     // Not allowed page
65 65
     $session->set('system-error_code', ERR_NOT_ALLOWED);
66
-    include $SETTINGS['cpassman_dir'] . '/error.php';
66
+    include $SETTINGS['cpassman_dir'].'/error.php';
67 67
     exit;
68 68
 }
69 69
 // Define Timezone
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
 // Get list of users
86 86
 $usersList = [];
87
-$rows = DB::query('SELECT id,login,email FROM ' . prefixTable('users') . ' ORDER BY login ASC');
87
+$rows = DB::query('SELECT id,login,email FROM '.prefixTable('users').' ORDER BY login ASC');
88 88
 foreach ($rows as $record) {
89 89
     $usersList[$record['login']] = [
90 90
         'id' => $record['id'],
@@ -95,16 +95,16 @@  discard block
 block discarded – undo
95 95
 // Get list of roles
96 96
 $arrRoles = [];
97 97
 $listRoles = '';
98
-$rows = DB::query('SELECT id,title FROM ' . prefixTable('roles_title') . ' ORDER BY title ASC');
98
+$rows = DB::query('SELECT id,title FROM '.prefixTable('roles_title').' ORDER BY title ASC');
99 99
 foreach ($rows as $reccord) {
100 100
     $arrRoles[$reccord['title']] = [
101 101
         'id' => $reccord['id'],
102 102
         'title' => $reccord['title'],
103 103
     ];
104 104
     if (empty($listRoles)) {
105
-        $listRoles = $reccord['id'] . '#' . $reccord['title'];
105
+        $listRoles = $reccord['id'].'#'.$reccord['title'];
106 106
     } else {
107
-        $listRoles .= ';' . $reccord['id'] . '#' . $reccord['title'];
107
+        $listRoles .= ';'.$reccord['id'].'#'.$reccord['title'];
108 108
     }
109 109
 }
110 110
 
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
                         <li class="nav-item"><a class="nav-link" href="#tab_3" data-toggle="tab"><i class="fa-solid fa-archive mr-2"></i><?php echo $lang->get('attachments'); ?></a></li>
180 180
                         <?php
181 181
                         echo isset($SETTINGS['item_extra_fields']) === true && (int) $SETTINGS['item_extra_fields'] === 1 ? '
182
-                            <li class="nav-item"><a class="nav-link" href="#tab_4" data-toggle="tab"><i class="fa-solid fa-cubes mr-2"></i>' . $lang->get('fields') . '</a></li>' : '';
182
+                            <li class="nav-item"><a class="nav-link" href="#tab_4" data-toggle="tab"><i class="fa-solid fa-cubes mr-2"></i>' . $lang->get('fields').'</a></li>' : '';
183 183
                         ?>
184 184
                     </ul>
185 185
                 </div><!-- /.card-header -->
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
                                                 <?php
249 249
                                                 for ($i = 4; $i <= $SETTINGS['pwd_maximum_length']; ++$i) {
250 250
                                                     echo '
251
-                                                <option>' . $i . '</option>';
251
+                                                <option>' . $i.'</option>';
252 252
                                                 }
253 253
                                                 ?>
254 254
                                             </select>
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
                                     <span class="ml-2 col-md-1 clear-me-html" id="form-item-icon-show"></span>
279 279
                                 </div>
280 280
                                 <small class='form-text text-muted'>
281
-                                    <?php echo $lang->get('fontawesome_icon_tip'); ?><a href="<?php echo FONTAWESOME_URL;?>" target="_blank"><i class="fa-solid fa-external-link-alt ml-1"></i></a>
281
+                                    <?php echo $lang->get('fontawesome_icon_tip'); ?><a href="<?php echo FONTAWESOME_URL; ?>" target="_blank"><i class="fa-solid fa-external-link-alt ml-1"></i></a>
282 282
                                 </small>
283 283
                             </div>
284 284
 
@@ -467,38 +467,38 @@  discard block
 block discarded – undo
467 467
                             <div class="tab-pane" id="tab_4">
468 468
                                 <div id="form-item-field" class="hidden">
469 469
                                     <?php
470
-                                        $session_item_fields = $session->get('system-item_fields');//print_r($session_item_fields);
470
+                                        $session_item_fields = $session->get('system-item_fields'); //print_r($session_item_fields);
471 471
                                         if (isset($session_item_fields) === true) {
472 472
                                             foreach ($session_item_fields as $category) {print_r($category);
473 473
                                                 echo '
474
-                                            <div class="callout callout-info form-item-category hidden" id="form-item-category-' . $category['id'] . '">
475
-                                                <h5>' . $category['title'] . '</h5>
474
+                                            <div class="callout callout-info form-item-category hidden" id="form-item-category-' . $category['id'].'">
475
+                                                <h5>' . $category['title'].'</h5>
476 476
                                                 <p>';
477 477
                                                 foreach ($category['fields'] as $field) {
478 478
                                                     if ($field['type'] === 'textarea') {
479 479
                                                         echo '
480
-                                                    <div class="form-group mb-3 form-item-field" id="form-item-field-' . $field['id'] . '" data-field-id="' . $field['id'] . '">
480
+                                                    <div class="form-group mb-3 form-item-field" id="form-item-field-' . $field['id'].'" data-field-id="'.$field['id'].'">
481 481
                                                         <label>' . $field['title'],
482 482
                                                             $field['is_mandatory'] === '1' ?
483
-                                                                '<span class="fa-solid fa-fire text-danger ml-1 infotip" title="' . $lang->get('is_mandatory') . '"></span>' : '',
483
+                                                                '<span class="fa-solid fa-fire text-danger ml-1 infotip" title="'.$lang->get('is_mandatory').'"></span>' : '',
484 484
                                                             '</label>
485
-                                                        <textarea class="form-control form-item-control form-item-field-custom" rows="2" data-field-name="' . $field['id'] . '" data-field-mandatory="' . $field['is_mandatory'] . '" data-field-regex="' . $field['regex'] . '" data-change-ongoing="0"></textarea>
485
+                                                        <textarea class="form-control form-item-control form-item-field-custom" rows="2" data-field-name="' . $field['id'].'" data-field-mandatory="'.$field['is_mandatory'].'" data-field-regex="'.$field['regex'].'" data-change-ongoing="0"></textarea>
486 486
                                                     </div>';
487 487
                                                     } else {
488 488
                                                         echo '
489
-                                                    <div class="input-group mb-3 form-item-field" id="form-item-field-' . $field['id'] . '" data-field-id="' . $field['id'] . '">
489
+                                                    <div class="input-group mb-3 form-item-field" id="form-item-field-' . $field['id'].'" data-field-id="'.$field['id'].'">
490 490
                                                         <div class="input-group-prepend">
491 491
                                                             <span class="input-group-text">' . $field['title'],
492 492
                                                             $field['is_mandatory'] === '1' ?
493
-                                                                '<span class="fa-solid fa-fire text-danger ml-1 infotip" title="' . $lang->get('is_mandatory') . '"></span>' : '',
493
+                                                                '<span class="fa-solid fa-fire text-danger ml-1 infotip" title="'.$lang->get('is_mandatory').'"></span>' : '',
494 494
                                                             '</span>
495 495
                                                         </div>
496
-                                                        <input type="' . $field['type'] . '" class="form-control form-item-control form-item-field-custom" data-field-name="' . $field['id'] . '" data-field-mandatory="' . $field['is_mandatory'] . '" data-field-regex="' . $field['regex'] . '" data-change-ongoing="0">
496
+                                                        <input type="' . $field['type'].'" class="form-control form-item-control form-item-field-custom" data-field-name="'.$field['id'].'" data-field-mandatory="'.$field['is_mandatory'].'" data-field-regex="'.$field['regex'].'" data-change-ongoing="0">
497 497
                                                     </div>';
498 498
                                                     }
499 499
                                                     if (!empty($field['regex'])) {
500 500
                                                         echo '
501
-                                                    <div>Regex: '. $field['regex'] .'</div>
501
+                                                    <div>Regex: '. $field['regex'].'</div>
502 502
                                                         ';
503 503
                                                     }
504 504
                                                 }
@@ -509,8 +509,8 @@  discard block
 block discarded – undo
509 509
                                                 ) {
510 510
                                                     echo '
511 511
                                                     <div class="form-check icheck-blue">
512
-                                                        <input type="checkbox" class="form-check-input form-check-input-template form-item-control flat-blue" data-category-id="' . $category['id'] . '" data-change-ongoing="0" data-field-name="template" id="template_' . $category['id'] . '">
513
-                                                        <label class="form-check-label ml-3" for="template_' . $category['id'] . '">' . $lang->get('main_template') . '</label>
512
+                                                        <input type="checkbox" class="form-check-input form-check-input-template form-item-control flat-blue" data-category-id="' . $category['id'].'" data-change-ongoing="0" data-field-name="template" id="template_'.$category['id'].'">
513
+                                                        <label class="form-check-label ml-3" for="template_' . $category['id'].'">'.$lang->get('main_template').'</label>
514 514
                                                     </div>';
515 515
                                                 }
516 516
                                                 echo '
@@ -520,8 +520,8 @@  discard block
 block discarded – undo
520 520
                                         } else {
521 521
                                             echo
522 522
                                             '<div class="alert alert-info">
523
-                                                <h5><i class="icon fa fa-info mr-3"></i>' . $lang->get('information') . '</h5>
524
-                                                ' . $lang->get('no_fields') . '
523
+                                                <h5><i class="icon fa fa-info mr-3"></i>' . $lang->get('information').'</h5>
524
+                                                ' . $lang->get('no_fields').'
525 525
                                             </div>';
526 526
                                         } ?>
527 527
                                 </div>
@@ -714,18 +714,18 @@  discard block
 block discarded – undo
714 714
                         <?php
715 715
                             foreach ($session_item_fields as $elem) {
716 716
                                 echo '
717
-                        <div class="callout callout-info card-item-category hidden" id="card-item-category-' . $elem['id'] . '">
718
-                            <h5>' . $elem['title'] . '</h5>
717
+                        <div class="callout callout-info card-item-category hidden" id="card-item-category-' . $elem['id'].'">
718
+                            <h5>' . $elem['title'].'</h5>
719 719
                             <p>
720 720
                                 <ul class="list-group list-group-unbordered mb-3">';
721 721
                                 foreach ($elem['fields'] as $field) {
722 722
                                     echo '
723
-                                    <li class="list-group-item card-item-field hidden" id="card-item-field-' . $field['id'] . '">
724
-                                        <span id="card-item-field-title-' . $field['id'] . '"><b>' . $field['title'] . '</b></span>
725
-                                        <button type="button" class="float-right btn btn-outline-info btn-sm ml-1 btn-copy-clipboard-clear"  data-clipboard-target="#card-item-field-value-' . $field['id'] . '">
723
+                                    <li class="list-group-item card-item-field hidden" id="card-item-field-' . $field['id'].'">
724
+                                        <span id="card-item-field-title-' . $field['id'].'"><b>'.$field['title'].'</b></span>
725
+                                        <button type="button" class="float-right btn btn-outline-info btn-sm ml-1 btn-copy-clipboard-clear"  data-clipboard-target="#card-item-field-value-' . $field['id'].'">
726 726
                                             <i class="fa-solid fa-copy"></i>
727 727
                                         </button>
728
-                                        <span class="card-item-field-value float-right ml-1" id="card-item-field-value-' . $field['id'] . '"></span>
728
+                                        <span class="card-item-field-value float-right ml-1" id="card-item-field-value-' . $field['id'].'"></span>
729 729
                                     </li>';
730 730
                                 }
731 731
                                 echo '
@@ -1112,7 +1112,7 @@  discard block
 block discarded – undo
1112 1112
                         <p><?php
1113 1113
                             echo str_replace(
1114 1114
         ['##otv_expiration_period##', '. '],
1115
-        ['<span class="text-bold text-primary">' . $SETTINGS['otv_expiration_period'] . '</span>', '<br>'],
1115
+        ['<span class="text-bold text-primary">'.$SETTINGS['otv_expiration_period'].'</span>', '<br>'],
1116 1116
         $lang->get('otv_message')
1117 1117
     );
1118 1118
                             ?></p>
@@ -1130,9 +1130,9 @@  discard block
 block discarded – undo
1130 1130
 
1131 1131
                     <div class="row">
1132 1132
                         <div class="form-group col-4">
1133
-                            <label for="form-item-otv-days"><i class="fa-regular fa-calendar-days mr-2"></i><?php echo $lang->get('number_of_days'); ?> (<?php echo $lang->get('maximum').': '.$SETTINGS['otv_expiration_period'];?>)</label>
1133
+                            <label for="form-item-otv-days"><i class="fa-regular fa-calendar-days mr-2"></i><?php echo $lang->get('number_of_days'); ?> (<?php echo $lang->get('maximum').': '.$SETTINGS['otv_expiration_period']; ?>)</label>
1134 1134
                             <div class="input-group mb-3">
1135
-                                <input type="number" class="form-control clear-me-val" id="form-item-otv-days" min="0" max="<?php echo $SETTINGS['otv_expiration_period'];?>" value="<?php echo $SETTINGS['otv_expiration_period'];?>">
1135
+                                <input type="number" class="form-control clear-me-val" id="form-item-otv-days" min="0" max="<?php echo $SETTINGS['otv_expiration_period']; ?>" value="<?php echo $SETTINGS['otv_expiration_period']; ?>">
1136 1136
                             </div>
1137 1137
                         </div>
1138 1138
 
@@ -1220,7 +1220,7 @@  discard block
 block discarded – undo
1220 1220
                             <select class="form-control form-folder-control select2" style="width:100%;" id="form-folder-add-complexicity" required>
1221 1221
                                 <?php
1222 1222
                                 foreach (TP_PW_COMPLEXITY as $key => $value) {
1223
-                                    echo '<option value="' . $key . '">' . $value[1] . '</option>';
1223
+                                    echo '<option value="'.$key.'">'.$value[1].'</option>';
1224 1224
                                 }
1225 1225
                                 ?>
1226 1226
                             </select>
@@ -1238,14 +1238,14 @@  discard block
 block discarded – undo
1238 1238
                             <label><?php echo $lang->get('icon'); ?></label>
1239 1239
                             <input type="text" class="form-control form-folder-control" id="form-folder-add-icon">
1240 1240
                             <small class='form-text text-muted'>
1241
-                                <?php echo $lang->get('fontawesome_icon_tip'); ?><a href="<?php echo FONTAWESOME_URL;?>" target="_blank"><i class="fa-solid fa-external-link-alt ml-1"></i></a>
1241
+                                <?php echo $lang->get('fontawesome_icon_tip'); ?><a href="<?php echo FONTAWESOME_URL; ?>" target="_blank"><i class="fa-solid fa-external-link-alt ml-1"></i></a>
1242 1242
                             </small>
1243 1243
                         </div>
1244 1244
                         <div class="form-group">
1245 1245
                             <label><?php echo $lang->get('icon_on_selection'); ?></label>
1246 1246
                             <input type="text" class="form-control form-folder-control" id="form-folder-add-icon-selected">
1247 1247
                             <small class='form-text text-muted'>
1248
-                                <?php echo $lang->get('fontawesome_icon_tip'); ?><a href="<?php echo FONTAWESOME_URL;?>" target="_blank"><i class="fa-solid fa-external-link-alt ml-1"></i></a>
1248
+                                <?php echo $lang->get('fontawesome_icon_tip'); ?><a href="<?php echo FONTAWESOME_URL; ?>" target="_blank"><i class="fa-solid fa-external-link-alt ml-1"></i></a>
1249 1249
                             </small>
1250 1250
                         </div>
1251 1251
                     </div>
Please login to merge, or discard this patch.
pages/users.js.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('users') === false) {
71 71
     // Not allowed page
72 72
     $session->set('system-error_code', ERR_NOT_ALLOWED);
73
-    include $SETTINGS['cpassman_dir'] . '/error.php';
73
+    include $SETTINGS['cpassman_dir'].'/error.php';
74 74
     exit;
75 75
 }
76 76
 ?>
@@ -302,8 +302,8 @@  discard block
 block discarded – undo
302 302
         if (store.get('teampassApplication').formUserAction === "add_new_user") {
303 303
             var data = {
304 304
                 'receipt': $('#form-email').val(),
305
-                'subject': 'TEAMPASS - <?php echo $lang->get('temporary_encryption_code');?>',
306
-                'body': '<?php echo $lang->get('email_body_new_user');?>',
305
+                'subject': 'TEAMPASS - <?php echo $lang->get('temporary_encryption_code'); ?>',
306
+                'body': '<?php echo $lang->get('email_body_new_user'); ?>',
307 307
                 'pre_replace' : {
308 308
                     '#code#' : store.get('teampassUser').admin_new_user_temporary_encryption_code,
309 309
                     '#login#' : store.get('teampassUser').admin_new_user_login,
@@ -313,8 +313,8 @@  discard block
 block discarded – undo
313 313
         } else {
314 314
             var data = {
315 315
                 'receipt': $('#form-email').val(),
316
-                'subject': 'TEAMPASS - <?php echo $lang->get('temporary_encryption_code');?>',
317
-                'body': '<?php echo $lang->get('email_body_temporary_encryption_code');?>',
316
+                'subject': 'TEAMPASS - <?php echo $lang->get('temporary_encryption_code'); ?>',
317
+                'body': '<?php echo $lang->get('email_body_temporary_encryption_code'); ?>',
318 318
                 'pre_replace' : {
319 319
                     '#enc_code#' : store.get('teampassUser').admin_new_user_temporary_encryption_code,
320 320
                 }
@@ -567,14 +567,14 @@  discard block
 block discarded – undo
567 567
             }
568 568
             // Inform user
569 569
             $("#warningModalBody").html('<b><?php echo $lang->get('encryption_keys'); ?> - ' +
570
-                stepText + '</b> [' + start + ' - ' + (parseInt(start) + <?php echo NUMBER_ITEMS_IN_BATCH;?>) + ']<span id="warningModalBody_extra">' + $nbItemsToConvert + '</span> ' +
570
+                stepText + '</b> [' + start + ' - ' + (parseInt(start) + <?php echo NUMBER_ITEMS_IN_BATCH; ?>) + ']<span id="warningModalBody_extra">' + $nbItemsToConvert + '</span> ' +
571 571
                 '... <?php echo $lang->get('please_wait'); ?><i class="fas fa-spinner fa-pulse ml-3 text-primary"></i>');
572 572
 
573 573
             // If expected, show the OPT to the admin
574 574
             if (constVisibleOTP === true) {
575 575
                 toastr.info(
576
-                    '<?php echo $lang->get('show_encryption_code_to_admin');?> <div><input class="form-control form-item-control flex-nowrap" value="' + userTemporaryCode + '" readonly></div>'
577
-                    + '<br /><button type="button" class="btn clear"><?php echo $lang->get('close');?></button>',
576
+                    '<?php echo $lang->get('show_encryption_code_to_admin'); ?> <div><input class="form-control form-item-control flex-nowrap" value="' + userTemporaryCode + '" readonly></div>'
577
+                    + '<br /><button type="button" class="btn clear"><?php echo $lang->get('close'); ?></button>',
578 578
                     '<?php echo $lang->get('information'); ?>',
579 579
                     {
580 580
                         extendedTimeOut: 0,
@@ -593,7 +593,7 @@  discard block
 block discarded – undo
593 593
             var data = {
594 594
                 action: step,
595 595
                 start: start,
596
-                length: <?php echo NUMBER_ITEMS_IN_BATCH;?>,
596
+                length: <?php echo NUMBER_ITEMS_IN_BATCH; ?>,
597 597
                 user_id: userId,
598 598
             }
599 599
             if (debugJavascript === true) {
@@ -1401,7 +1401,7 @@  discard block
 block discarded – undo
1401 1401
                         } else {
1402 1402
                             // Show icon or not
1403 1403
                             if ($('#user-disabled').prop('checked') === true) {
1404
-                                $('#user-login-'+userID).before('<i class="fas fa-user-slash infotip text-danger mr-2" title="<?php echo $lang->get('account_is_locked');?>" id="user-disable-'+userID+'"></i>');
1404
+                                $('#user-login-'+userID).before('<i class="fas fa-user-slash infotip text-danger mr-2" title="<?php echo $lang->get('account_is_locked'); ?>" id="user-disable-'+userID+'"></i>');
1405 1405
                             } else {
1406 1406
                                 $('#user-disable-'+userID).remove();
1407 1407
                             }
Please login to merge, or discard this patch.
pages/admin.js.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('admin') === 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
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
                     // error
146 146
                     toastr.remove();
147 147
                     toastr.error(
148
-                        '<?php echo $lang->get('server_answer_error') . '<br />' . $lang->get('server_returned_data') . ':<br />'; ?>' + data.error,
148
+                        '<?php echo $lang->get('server_answer_error').'<br />'.$lang->get('server_returned_data').':<br />'; ?>' + data.error,
149 149
                         '', {
150 150
                             closeButton: true,
151 151
                             positionClass: 'toastr-top-right'
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
                     // error
220 220
                     toastr.remove();
221 221
                     toastr.error(
222
-                        '<?php echo $lang->get('server_answer_error') . '<br />' . $lang->get('server_returned_data') . ':<br />'; ?>' + data.error,
222
+                        '<?php echo $lang->get('server_answer_error').'<br />'.$lang->get('server_returned_data').':<br />'; ?>' + data.error,
223 223
                         '', {
224 224
                             closeButton: true,
225 225
                             positionClass: 'toastr-top-right'
Please login to merge, or discard this patch.
pages/uploads.js.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('uploads') === false) {
63 63
     // Not allowed page
64 64
     $session->set('system-error_code', ERR_NOT_ALLOWED);
65
-    include $SETTINGS['cpassman_dir'] . '/error.php';
65
+    include $SETTINGS['cpassman_dir'].'/error.php';
66 66
     exit;
67 67
 }
68 68
 ?>
Please login to merge, or discard this patch.
pages/emails.php 1 patch
Spacing   +2 added lines, -2 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('emails') === 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
 
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
                     <div class="card-body">
245 245
                         <div id="unsent-emails">
246 246
                             <?php
247
-                            DB::query('SELECT * FROM ' . prefixTable('emails') . ' WHERE status = %s OR status = %s', 'not_sent', '');
247
+                            DB::query('SELECT * FROM '.prefixTable('emails').' WHERE status = %s OR status = %s', 'not_sent', '');
248 248
 echo str_replace('#nb_emails#', (string) DB::count(), $lang->get('email_send_backlog'));
249 249
                             ?>
250 250
                         </div>
Please login to merge, or discard this patch.
pages/statistics.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('statistics') === 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/utilities.database.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.database') === 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/utilities.database.js.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
 if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('utilities.database') === false) {
71 71
     // Not allowed page
72 72
     $session->set('system-error_code', ERR_NOT_ALLOWED);
73
-    include $SETTINGS['cpassman_dir'] . '/error.php';
73
+    include $SETTINGS['cpassman_dir'].'/error.php';
74 74
     exit;
75 75
 }
76 76
 ?>
Please login to merge, or discard this patch.