Passed
Push — wip_sessions ( b55e55...384f5b )
by Nils
05:05
created
pages/backups.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('backups') === 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
 
Please login to merge, or discard this patch.
pages/tasks.js.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('tasks') === 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
 ?>
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
                         // error
425 425
                         toastr.remove();
426 426
                         toastr.error(
427
-                            '<?php echo $lang->get('server_answer_error') . '<br />' . $lang->get('server_returned_data') . ':<br />'; ?>' + data.error,
427
+                            '<?php echo $lang->get('server_answer_error').'<br />'.$lang->get('server_returned_data').':<br />'; ?>' + data.error,
428 428
                             '', {
429 429
                                 closeButton: true,
430 430
                                 positionClass: 'toastr-top-right'
@@ -447,11 +447,11 @@  discard block
 block discarded – undo
447 447
                         $('#'+field+'_parameter_value').val(frequency === null ? '' : frequency + ';' +value,);
448 448
                         param = value.split(';');
449 449
                         if (param.length === 1) {
450
-                            txt = ' <?php echo $lang->get('at');?> ' + param[0];
450
+                            txt = ' <?php echo $lang->get('at'); ?> ' + param[0];
451 451
                         } else {
452
-                            txt = ' <?php echo $lang->get('day');?> ' + param[1] + ' <?php echo $lang->get('at');?> ' + param[0];
452
+                            txt = ' <?php echo $lang->get('day'); ?> ' + param[1] + ' <?php echo $lang->get('at'); ?> ' + param[0];
453 453
                         }
454
-                        $('#'+field+'_parameter').val(frequency === null ? '<?php echo $lang->get('not_defined');?>' : (data.message + txt));
454
+                        $('#'+field+'_parameter').val(frequency === null ? '<?php echo $lang->get('not_defined'); ?>' : (data.message + txt));
455 455
                         $("#task-define-modal").modal('hide');
456 456
                         $('#task-define-modal-type, #task-define-modal-parameter-hourly-value, #task-define-modal-parameter-daily-value, #task-define-modal-frequency').val('');
457 457
                     }
@@ -557,7 +557,7 @@  discard block
 block discarded – undo
557 557
                         // error
558 558
                         toastr.remove();
559 559
                         toastr.error(
560
-                            '<?php echo $lang->get('server_answer_error') . '<br />' . $lang->get('server_returned_data') . ':<br />'; ?>' + data.error,
560
+                            '<?php echo $lang->get('server_answer_error').'<br />'.$lang->get('server_returned_data').':<br />'; ?>' + data.error,
561 561
                             '', {
562 562
                                 closeButton: true,
563 563
                                 positionClass: 'toastr-top-right'
@@ -608,7 +608,7 @@  discard block
 block discarded – undo
608 608
                     // error
609 609
                     toastr.remove();
610 610
                     toastr.error(
611
-                        '<?php echo $lang->get('server_answer_error') . '<br />' . $lang->get('server_returned_data') . ':<br />'; ?>' + data.error,
611
+                        '<?php echo $lang->get('server_answer_error').'<br />'.$lang->get('server_returned_data').':<br />'; ?>' + data.error,
612 612
                         '', {
613 613
                             closeButton: true,
614 614
                             positionClass: 'toastr-top-right'
Please login to merge, or discard this patch.
pages/2fa.js.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
 if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('mfa') === false) {
70 70
     // Not allowed page
71 71
     $session->set('system-error_code', ERR_NOT_ALLOWED);
72
-    include $SETTINGS['cpassman_dir'] . '/error.php';
72
+    include $SETTINGS['cpassman_dir'].'/error.php';
73 73
     exit;
74 74
 }
75 75
 ?>
Please login to merge, or discard this patch.
pages/uploads.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
 if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('uploads') === false) {
59 59
     // Not allowed page
60 60
     $session->set('system-error_code', ERR_NOT_ALLOWED);
61
-    include $SETTINGS['cpassman_dir'] . '/error.php';
61
+    include $SETTINGS['cpassman_dir'].'/error.php';
62 62
     exit;
63 63
 }
64 64
 
Please login to merge, or discard this patch.
pages/search.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('search') === 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
 
Please login to merge, or discard this patch.
pages/import.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('import') === 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
 
Please login to merge, or discard this patch.
pages/fields.js.php 1 patch
Spacing   +4 added lines, -4 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('fields') === 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
 ?>
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
             if (parseInt($(this).data('category')) === parseInt(selectedCategory)) {
164 164
                 fields.push({
165 165
                     id: $(this).data('order'),
166
-                    text: '<?php echo $lang->get('before') . ' '; ?>' + $(this).find('td:eq(1)').text()
166
+                    text: '<?php echo $lang->get('before').' '; ?>' + $(this).find('td:eq(1)').text()
167 167
                 });
168 168
             }
169 169
         });
@@ -569,7 +569,7 @@  discard block
 block discarded – undo
569 569
                 if ($(this).data('category') === categoryId) {
570 570
                     fields.push({
571 571
                         id: $(this).data('order'),
572
-                        text: '<?php echo $lang->get('before') . ' '; ?>' + $(this).find('td:eq(1)').text()
572
+                        text: '<?php echo $lang->get('before').' '; ?>' + $(this).find('td:eq(1)').text()
573 573
                     });
574 574
                 }
575 575
             });
@@ -736,7 +736,7 @@  discard block
 block discarded – undo
736 736
                                     '</tr>';
737 737
 
738 738
                                 // Prepare list of categories for Form
739
-                                categoriesList += '<option value="' + categoryId + '"><?php echo $lang->get('before') . ' '; ?>' + val.title + '</option>';
739
+                                categoriesList += '<option value="' + categoryId + '"><?php echo $lang->get('before').' '; ?>' + val.title + '</option>';
740 740
 
741 741
                                 positionCategory += 1;
742 742
                             } else {
Please login to merge, or discard this patch.
pages/export.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('export') === 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
 ?>
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
                 progress: "#export-password-strength",
192 192
                 score: "#export-password-strength"
193 193
             },
194
-            scores: [<?php echo TP_PW_STRENGTH_1;?>, <?php echo TP_PW_STRENGTH_2;?>, <?php echo TP_PW_STRENGTH_3;?>, <?php echo TP_PW_STRENGTH_4;?>, <?php echo TP_PW_STRENGTH_5;?>],
194
+            scores: [<?php echo TP_PW_STRENGTH_1; ?>, <?php echo TP_PW_STRENGTH_2; ?>, <?php echo TP_PW_STRENGTH_3; ?>, <?php echo TP_PW_STRENGTH_4; ?>, <?php echo TP_PW_STRENGTH_5; ?>],
195 195
         },
196 196
         i18n : {
197 197
             t: function (key) {
Please login to merge, or discard this patch.
pages/roles.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('roles') === false) {
67 67
     // Not allowed page
68 68
     $session->set('system-error_code', ERR_NOT_ALLOWED);
69
-    include $SETTINGS['cpassman_dir'] . '/error.php';
69
+    include $SETTINGS['cpassman_dir'].'/error.php';
70 70
     exit;
71 71
 }
72 72
 
@@ -127,17 +127,17 @@  discard block
 block discarded – undo
127 127
                                 $arrUserRoles = array_filter($session->get('user-roles_array'));
128 128
                                 $where = '';
129 129
                                 if (count($arrUserRoles) > 0 && (int) $session->get('user-admin') !== 1) {
130
-                                    $where = ' WHERE id IN (' . implode(',', $arrUserRoles) . ')';
130
+                                    $where = ' WHERE id IN ('.implode(',', $arrUserRoles).')';
131 131
                                 }
132
-                                $rows = DB::query('SELECT * FROM ' . prefixTable('roles_title') . $where);
132
+                                $rows = DB::query('SELECT * FROM '.prefixTable('roles_title').$where);
133 133
                                 foreach ($rows as $reccord) {
134 134
                                     echo '
135
-                                    <option value="' . $reccord['id'] . '"
136
-                                        data-complexity-text="' . addslashes(TP_PW_COMPLEXITY[$reccord['complexity']][1]) . '"
137
-                                        data-complexity-icon="' . TP_PW_COMPLEXITY[$reccord['complexity']][2] . '"
138
-                                        data-complexity="' . TP_PW_COMPLEXITY[$reccord['complexity']][0] . '"
139
-                                        data-allow-edit-all="' . $reccord['allow_pw_change'] . '">'.
140
-                                        $reccord['title'] . '</option>';
135
+                                    <option value="' . $reccord['id'].'"
136
+                                        data-complexity-text="' . addslashes(TP_PW_COMPLEXITY[$reccord['complexity']][1]).'"
137
+                                        data-complexity-icon="' . TP_PW_COMPLEXITY[$reccord['complexity']][2].'"
138
+                                        data-complexity="' . TP_PW_COMPLEXITY[$reccord['complexity']][0].'"
139
+                                        data-allow-edit-all="' . $reccord['allow_pw_change'].'">'.
140
+                                        $reccord['title'].'</option>';
141 141
                                 }
142 142
                                 ?>
143 143
                             </select>
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
                                         <?php
159 159
                                         foreach (TP_PW_COMPLEXITY as $entry) {
160 160
                                             echo '
161
-                                        <option value="' . $entry[0] . '">' . addslashes($entry[1]) . '</option>';
161
+                                        <option value="' . $entry[0].'">'.addslashes($entry[1]).'</option>';
162 162
                                         }
163 163
                                         ?>
164 164
                                     </select>
Please login to merge, or discard this patch.