Passed
Push — master ( ddace9...a18ce8 )
by Nils
06:12 queued 16s
created
api/Model/Operation.php 2 patches
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
                 "error" => '',
39 39
             );
40 40
     
41
-        }catch (Exception $e) {    
41
+        } catch (Exception $e) {    
42 42
             return false;
43 43
         }
44 44
     }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
                 "error" => '',
41 41
             );
42 42
     
43
-        }catch (Exception $e) {    
43
+        } catch (Exception $e) {    
44 44
             return false;
45 45
         }
46 46
     }
Please login to merge, or discard this patch.
api/Model/FolderModel.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         $ret = [];
35 35
 
36 36
         foreach ($rows as $row) {
37
-			$isVisible = in_array((int) $row['id'], $foldersId);
37
+            $isVisible = in_array((int) $row['id'], $foldersId);
38 38
             $childrens = $this->getFoldersChildren($row['id'], $foldersId);
39 39
 
40 40
             if ($isVisible || count($childrens) > 0) {
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
                     [
44 44
                         'id' => (int) $row['id'],
45 45
                         'title' => $row['title'],
46
-						'isVisible' => $isVisible,
46
+                        'isVisible' => $isVisible,
47 47
                         'childrens' => $childrens
48 48
                     ]
49 49
                 );
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
         if ( count($childrens) > 0) {
65 65
             foreach ($childrens as $children) {
66
-				$isVisible = in_array((int) $children['id'], $foldersId);
66
+                $isVisible = in_array((int) $children['id'], $foldersId);
67 67
                 $childs = $this->getFoldersChildren($children['id'], $foldersId);
68 68
 
69 69
                 if (in_array((int) $children['id'], $foldersId) || count($childs) > 0) {
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
                         [
73 73
                             'id' => (int) $children['id'],
74 74
                             'title' => $children['title'],
75
-							'isVisible' => $isVisible,
75
+                            'isVisible' => $isVisible,
76 76
                             'childrens' => $childs
77 77
                         ]
78 78
                     );
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         // Get folders
38 38
         $rows = DB::query(
39 39
             'SELECT id, title
40
-            FROM ' . prefixTable('nested_tree') . '
40
+            FROM ' . prefixTable('nested_tree').'
41 41
             WHERE nlevel = %i',
42 42
             1
43 43
         );
@@ -69,12 +69,12 @@  discard block
 block discarded – undo
69 69
         $ret = [];
70 70
         $childrens = DB::query(
71 71
             'SELECT id, title
72
-            FROM ' . prefixTable('nested_tree') . '
72
+            FROM ' . prefixTable('nested_tree').'
73 73
             WHERE parent_id = %i',
74 74
             $parentId
75 75
         );
76 76
 
77
-        if ( count($childrens) > 0) {
77
+        if (count($childrens) > 0) {
78 78
             foreach ($childrens as $children) {
79 79
 				$isVisible = in_array((int) $children['id'], $foldersId);
80 80
                 $childs = $this->getFoldersChildren($children['id'], $foldersId);
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     ): array
117 117
     {
118 118
         // Validate inputs
119
-        include_once API_ROOT_PATH . '/../sources/main.functions.php';
119
+        include_once API_ROOT_PATH.'/../sources/main.functions.php';
120 120
         $data = [
121 121
             'title' => $title,
122 122
             'parent_id' => $parent_id,
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
                 'error' => true,
182 182
                 'error_header' => 'HTTP/1.1 422 Unprocessable Entity',
183 183
                 'error_message' => 'Invalid parameters'
184
-            ];}
184
+            ]; }
185 185
 
186 186
         // Create folder
187 187
         require_once TEAMPASS_ROOT_PATH.'/sources/folders.class.php';
Please login to merge, or discard this patch.
sources/users.queries.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2603,7 +2603,9 @@
 block discarded – undo
2603 2603
             }
2604 2604
             
2605 2605
             foreach ($results as $adUser) {
2606
-                if (isset($adUser[$SETTINGS['ldap_user_attribute']][0]) === false) continue;
2606
+                if (isset($adUser[$SETTINGS['ldap_user_attribute']][0]) === false) {
2607
+                    continue;
2608
+                }
2607 2609
                 // Build the list of all groups in AD
2608 2610
                 if (isset($adUser['memberof']) === true) {
2609 2611
                     foreach($adUser['memberof'] as $j => $adUserGroup) {
Please login to merge, or discard this patch.
Spacing   +82 added lines, -82 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('profile') === false) {
75 75
     // Not allowed page
76 76
     $session->set('system-error_code', ERR_NOT_ALLOWED);
77
-    include $SETTINGS['cpassman_dir'] . '/error.php';
77
+    include $SETTINGS['cpassman_dir'].'/error.php';
78 78
     exit;
79 79
 }
80 80
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
 
146 146
         // Get info about user to modify
147 147
         $targetUserInfos = DB::queryFirstRow(
148
-            'SELECT admin, gestionnaire, can_manage_all_users, isAdministratedByRole FROM ' . prefixTable('users') . '
148
+            'SELECT admin, gestionnaire, can_manage_all_users, isAdministratedByRole FROM '.prefixTable('users').'
149 149
             WHERE id = %i',
150 150
             (int) $dataReceived['user_id']
151 151
         );
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
             // Check if user already exists
278 278
             $data = DB::query(
279 279
                 'SELECT id, fonction_id, groupes_interdits, groupes_visibles
280
-                FROM ' . prefixTable('users') . '
280
+                FROM ' . prefixTable('users').'
281 281
                 WHERE login = %s
282 282
                 AND deleted_at IS NULL',
283 283
                 $login
@@ -496,7 +496,7 @@  discard block
 block discarded – undo
496 496
 
497 497
             // Get info about user to delete
498 498
             $data_user = DB::queryFirstRow(
499
-                'SELECT login, admin, isAdministratedByRole FROM ' . prefixTable('users') . '
499
+                'SELECT login, admin, isAdministratedByRole FROM '.prefixTable('users').'
500 500
                 WHERE id = %i',
501 501
                 $post_id
502 502
             );
@@ -530,7 +530,7 @@  discard block
 block discarded – undo
530 530
                 );
531 531
                 // delete personal folder and subfolders
532 532
                 $data = DB::queryFirstRow(
533
-                    'SELECT id FROM ' . prefixTable('nested_tree') . '
533
+                    'SELECT id FROM '.prefixTable('nested_tree').'
534 534
                     WHERE title = %s AND personal_folder = %i',
535 535
                     $post_id,
536 536
                     '1'
@@ -543,7 +543,7 @@  discard block
 block discarded – undo
543 543
                         DB::delete(prefixTable('nested_tree'), 'id = %i AND personal_folder = %i', $folder->id, '1');
544 544
                         // delete items & logs
545 545
                         $items = DB::query(
546
-                            'SELECT id FROM ' . prefixTable('items') . '
546
+                            'SELECT id FROM '.prefixTable('items').'
547 547
                             WHERE id_tree=%i AND perso = %i',
548 548
                             $folder->id,
549 549
                             '1'
@@ -567,7 +567,7 @@  discard block
 block discarded – undo
567 567
                 // Delete any process related to user
568 568
                 $processes = DB::query(
569 569
                     'SELECT increment_id
570
-                    FROM ' . prefixTable('background_tasks') . '
570
+                    FROM ' . prefixTable('background_tasks').'
571 571
                     WHERE JSON_EXTRACT(arguments, "$.new_user_id") = %i',
572 572
                     $post_id
573 573
                 );
@@ -620,7 +620,7 @@  discard block
 block discarded – undo
620 620
             $return = array();
621 621
             // Check if folder exists
622 622
             $data = DB::query(
623
-                'SELECT * FROM ' . prefixTable('nested_tree') . '
623
+                'SELECT * FROM '.prefixTable('nested_tree').'
624 624
                 WHERE title = %s AND parent_id = %i',
625 625
                 filter_input(INPUT_POST, 'domain', FILTER_SANITIZE_FULL_SPECIAL_CHARS),
626 626
                 '0'
@@ -633,7 +633,7 @@  discard block
 block discarded – undo
633 633
             }
634 634
             // Check if role exists
635 635
             $data = DB::query(
636
-                'SELECT * FROM ' . prefixTable('roles_title') . '
636
+                'SELECT * FROM '.prefixTable('roles_title').'
637 637
                 WHERE title = %s',
638 638
                 filter_input(INPUT_POST, 'domain', FILTER_SANITIZE_FULL_SPECIAL_CHARS)
639 639
             );
@@ -662,7 +662,7 @@  discard block
 block discarded – undo
662 662
             // Get info about user to delete
663 663
             $data_user = DB::queryFirstRow(
664 664
                 'SELECT admin, isAdministratedByRole, gestionnaire
665
-                FROM ' . prefixTable('users') . '
665
+                FROM ' . prefixTable('users').'
666 666
                 WHERE id = %i',
667 667
                 $post_user_id
668 668
             );
@@ -718,7 +718,7 @@  discard block
 block discarded – undo
718 718
             // Get info about user
719 719
             $rowUser = DB::queryFirstRow(
720 720
                 'SELECT *
721
-                FROM ' . prefixTable('users') . '
721
+                FROM ' . prefixTable('users').'
722 722
                 WHERE id = %i',
723 723
                 $post_id
724 724
             );
@@ -746,7 +746,7 @@  discard block
 block discarded – undo
746 746
                 $session->set('user-roles_array', explode(';', $session->get('user-roles')));
747 747
                 $rows = DB::query('
748 748
                     SELECT id,title,creator_id 
749
-                    FROM ' . prefixTable('roles_title') .'
749
+                    FROM ' . prefixTable('roles_title').'
750 750
                     WHERE id IN %li',
751 751
                     $session->get('user-roles_array')
752 752
                 );
@@ -784,7 +784,7 @@  discard block
 block discarded – undo
784 784
                 $rolesList = array();
785 785
                 $managedBy = array();
786 786
                 $selected = '';
787
-                $rows = DB::query('SELECT id,title FROM ' . prefixTable('roles_title') . ' ORDER BY title ASC');
787
+                $rows = DB::query('SELECT id,title FROM '.prefixTable('roles_title').' ORDER BY title ASC');
788 788
                 foreach ($rows as $reccord) {
789 789
                     $rolesList[$reccord['id']] = array('id' => $reccord['id'], 'title' => $reccord['title']);
790 790
                 }
@@ -815,7 +815,7 @@  discard block
 block discarded – undo
815 815
                         array_push(
816 816
                             $managedBy,
817 817
                             array(
818
-                                'title' => $lang->get('managers_of') . ' ' . $fonction['title'],
818
+                                'title' => $lang->get('managers_of').' '.$fonction['title'],
819 819
                                 'id' => $fonction['id'],
820 820
                                 'selected' => $selected,
821 821
                             )
@@ -897,9 +897,9 @@  discard block
 block discarded – undo
897 897
 
898 898
                 // get USER STATUS
899 899
                 if ($rowUser['disabled'] == 1) {
900
-                    $arrData['info'] = $lang->get('user_info_locked') . '<br><input type="checkbox" value="unlock" name="1" class="chk">&nbsp;<label for="1">' . $lang->get('user_info_unlock_question') . '</label><br><input type="checkbox"  value="delete" id="account_delete" class="chk mr-2" name="2" onclick="confirmDeletion()">label for="2">' . $lang->get('user_info_delete_question') . '</label>';
900
+                    $arrData['info'] = $lang->get('user_info_locked').'<br><input type="checkbox" value="unlock" name="1" class="chk">&nbsp;<label for="1">'.$lang->get('user_info_unlock_question').'</label><br><input type="checkbox"  value="delete" id="account_delete" class="chk mr-2" name="2" onclick="confirmDeletion()">label for="2">'.$lang->get('user_info_delete_question').'</label>';
901 901
                 } else {
902
-                    $arrData['info'] = $lang->get('user_info_active') . '<br><input type="checkbox" value="lock" class="chk">&nbsp;' . $lang->get('user_info_lock_question');
902
+                    $arrData['info'] = $lang->get('user_info_active').'<br><input type="checkbox" value="lock" class="chk">&nbsp;'.$lang->get('user_info_lock_question');
903 903
                 }
904 904
 
905 905
                 $arrData['error'] = false;
@@ -986,7 +986,7 @@  discard block
 block discarded – undo
986 986
 
987 987
             // Get info about user to modify
988 988
             $data_user = DB::queryFirstRow(
989
-                'SELECT admin, gestionnaire, can_manage_all_users, isAdministratedByRole FROM ' . prefixTable('users') . '
989
+                'SELECT admin, gestionnaire, can_manage_all_users, isAdministratedByRole FROM '.prefixTable('users').'
990 990
                 WHERE id = %i',
991 991
                 $post_id
992 992
             );
@@ -997,7 +997,7 @@  discard block
 block discarded – undo
997 997
                 // count number of admins
998 998
                 $users = DB::query(
999 999
                     'SELECT id
1000
-                    FROM ' . prefixTable('users') . '
1000
+                    FROM ' . prefixTable('users').'
1001 1001
                     WHERE admin = 1 AND email != "" AND pw != "" AND id != %i',
1002 1002
                     $post_id
1003 1003
                 );
@@ -1020,7 +1020,7 @@  discard block
 block discarded – undo
1020 1020
             // Exclude roles from AD - PR #3635
1021 1021
             $adRoles = DB::query(
1022 1022
                 'SELECT roles_from_ad_groups
1023
-                FROM ' . prefixTable('users') . '
1023
+                FROM ' . prefixTable('users').'
1024 1024
                 WHERE id = %i',
1025 1025
                 $post_id
1026 1026
             )[0]['roles_from_ad_groups'];
@@ -1124,7 +1124,7 @@  discard block
 block discarded – undo
1124 1124
                     );
1125 1125
                     // delete personal folder and subfolders
1126 1126
                     $data = DB::queryFirstRow(
1127
-                        'SELECT id FROM ' . prefixTable('nested_tree') . '
1127
+                        'SELECT id FROM '.prefixTable('nested_tree').'
1128 1128
                         WHERE title = %s AND personal_folder = %i',
1129 1129
                         $post_id,
1130 1130
                         '1'
@@ -1137,7 +1137,7 @@  discard block
 block discarded – undo
1137 1137
                             DB::delete(prefixTable('nested_tree'), 'id = %i AND personal_folder = %i', $folder->id, '1');
1138 1138
                             // delete items & logs
1139 1139
                             $items = DB::query(
1140
-                                'SELECT id FROM ' . prefixTable('items') . '
1140
+                                'SELECT id FROM '.prefixTable('items').'
1141 1141
                                 WHERE id_tree=%i AND perso = %i',
1142 1142
                                 $folder->id,
1143 1143
                                 '1'
@@ -1158,7 +1158,7 @@  discard block
 block discarded – undo
1158 1158
                 } else {
1159 1159
                     // Get old data about user
1160 1160
                     $oldData = DB::queryFirstRow(
1161
-                        'SELECT * FROM ' . prefixTable('users') . '
1161
+                        'SELECT * FROM '.prefixTable('users').'
1162 1162
                         WHERE id = %i',
1163 1163
                         $post_id
1164 1164
                     );
@@ -1195,7 +1195,7 @@  discard block
 block discarded – undo
1195 1195
 
1196 1196
                     // update LOG
1197 1197
                     if ($oldData['email'] !== $post_email) {
1198
-                        logEvents($SETTINGS, 'user_mngt', 'at_user_email_changed:' . $oldData['email'], (string) $session->get('user-id'), $session->get('user-login'), $post_id);
1198
+                        logEvents($SETTINGS, 'user_mngt', 'at_user_email_changed:'.$oldData['email'], (string) $session->get('user-id'), $session->get('user-login'), $post_id);
1199 1199
                     }
1200 1200
                 }
1201 1201
                 echo prepareExchangedData(
@@ -1243,7 +1243,7 @@  discard block
 block discarded – undo
1243 1243
             }
1244 1244
 
1245 1245
             DB::queryFirstRow(
1246
-                'SELECT * FROM ' . prefixTable('users') . '
1246
+                'SELECT * FROM '.prefixTable('users').'
1247 1247
                 WHERE login = %s
1248 1248
                 AND deleted_at IS NULL',
1249 1249
                 filter_input(INPUT_POST, 'login', FILTER_SANITIZE_FULL_SPECIAL_CHARS)
@@ -1295,7 +1295,7 @@  discard block
 block discarded – undo
1295 1295
             // get User info
1296 1296
             $rowUser = DB::queryFirstRow(
1297 1297
                 'SELECT login, name, lastname, email, disabled, fonction_id, groupes_interdits, groupes_visibles, isAdministratedByRole, avatar_thumb, roles_from_ad_groups
1298
-                FROM ' . prefixTable('users') . '
1298
+                FROM ' . prefixTable('users').'
1299 1299
                 WHERE id = %i',
1300 1300
                 $post_id
1301 1301
             );
@@ -1305,7 +1305,7 @@  discard block
 block discarded – undo
1305 1305
             $html = '';
1306 1306
 
1307 1307
             if (isset($SETTINGS['ldap_mode']) === true && (int) $SETTINGS['ldap_mode'] === 1 && isset($SETTINGS['enable_ad_users_with_ad_groups']) === true && (int) $SETTINGS['enable_ad_users_with_ad_groups'] === 1) {
1308
-                $rowUser['fonction_id'] = empty($rowUser['fonction_id'])  === true ? $rowUser['roles_from_ad_groups'] : $rowUser['fonction_id']. ';' . $rowUser['roles_from_ad_groups'];
1308
+                $rowUser['fonction_id'] = empty($rowUser['fonction_id']) === true ? $rowUser['roles_from_ad_groups'] : $rowUser['fonction_id'].';'.$rowUser['roles_from_ad_groups'];
1309 1309
             }
1310 1310
             $arrData['functions'] = array_filter(explode(';', $rowUser['fonction_id']));
1311 1311
             $arrData['allowed_folders'] = array_filter(explode(';', $rowUser['groupes_visibles']));
@@ -1316,7 +1316,7 @@  discard block
 block discarded – undo
1316 1316
                 // refine folders based upon roles
1317 1317
                 $rows = DB::query(
1318 1318
                     'SELECT folder_id, type
1319
-                    FROM ' . prefixTable('roles_values') . '
1319
+                    FROM ' . prefixTable('roles_values').'
1320 1320
                     WHERE role_id IN %ls
1321 1321
                     ORDER BY folder_id ASC',
1322 1322
                     $arrData['functions']
@@ -1339,7 +1339,7 @@  discard block
 block discarded – undo
1339 1339
                 }
1340 1340
 
1341 1341
                 // add allowed folders
1342
-                foreach($arrData['allowed_folders'] as $Fld) {
1342
+                foreach ($arrData['allowed_folders'] as $Fld) {
1343 1343
                     array_push($arrFolders, array('id' => $Fld, 'type' => 'W', 'special' => true));
1344 1344
                 }
1345 1345
                 
@@ -1350,7 +1350,7 @@  discard block
 block discarded – undo
1350 1350
                             // get folder name
1351 1351
                             $row = DB::queryFirstRow(
1352 1352
                                 'SELECT title, nlevel, id
1353
-                                FROM ' . prefixTable('nested_tree') . '
1353
+                                FROM ' . prefixTable('nested_tree').'
1354 1354
                                 WHERE id = %i',
1355 1355
                                 $fld['id']
1356 1356
                             );
@@ -1363,38 +1363,38 @@  discard block
 block discarded – undo
1363 1363
 
1364 1364
                             // manage right icon
1365 1365
                             if ($fld['type'] == 'W') {
1366
-                                $label = '<i class="fas fa-indent infotip text-success mr-2" title="' . $lang->get('write') . '"></i>' .
1367
-                                    '<i class="fas fa-edit infotip text-success mr-2" title="' . $lang->get('edit') . '"></i>' .
1368
-                                    '<i class="fas fa-eraser infotip text-success" title="' . $lang->get('delete') . '"></i>';
1366
+                                $label = '<i class="fas fa-indent infotip text-success mr-2" title="'.$lang->get('write').'"></i>'.
1367
+                                    '<i class="fas fa-edit infotip text-success mr-2" title="'.$lang->get('edit').'"></i>'.
1368
+                                    '<i class="fas fa-eraser infotip text-success" title="'.$lang->get('delete').'"></i>';
1369 1369
                             } elseif ($fld['type'] == 'ND') {
1370
-                                $label = '<i class="fas fa-indent infotip text-warning mr-2" title="' . $lang->get('write') . '"></i>' .
1371
-                                    '<i class="fas fa-edit infotip text-success mr-2" title="' . $lang->get('edit') . '"></i>' .
1372
-                                    '<i class="fas fa-eraser infotip text-danger" title="' . $lang->get('no_delete') . '"></i>';
1370
+                                $label = '<i class="fas fa-indent infotip text-warning mr-2" title="'.$lang->get('write').'"></i>'.
1371
+                                    '<i class="fas fa-edit infotip text-success mr-2" title="'.$lang->get('edit').'"></i>'.
1372
+                                    '<i class="fas fa-eraser infotip text-danger" title="'.$lang->get('no_delete').'"></i>';
1373 1373
                             } elseif ($fld['type'] == 'NE') {
1374
-                                $label = '<i class="fas fa-indent infotip text-warning mr-2" title="' . $lang->get('write') . '"></i>' .
1375
-                                    '<i class="fas fa-edit infotip text-danger mr-2" title="' . $lang->get('no_edit') . '"></i>' .
1376
-                                    '<i class="fas fa-eraser infotip text-success" title="' . $lang->get('delete') . '"></i>';
1374
+                                $label = '<i class="fas fa-indent infotip text-warning mr-2" title="'.$lang->get('write').'"></i>'.
1375
+                                    '<i class="fas fa-edit infotip text-danger mr-2" title="'.$lang->get('no_edit').'"></i>'.
1376
+                                    '<i class="fas fa-eraser infotip text-success" title="'.$lang->get('delete').'"></i>';
1377 1377
                             } elseif ($fld['type'] == 'NDNE') {
1378
-                                $label = '<i class="fas fa-indent infotip text-warning mr-2" title="' . $lang->get('write') . '"></i>' .
1379
-                                    '<i class="fas fa-edit infotip text-danger mr-2" title="' . $lang->get('no_edit') . '"></i>' .
1380
-                                    '<i class="fas fa-eraser infotip text-danger" title="' . $lang->get('no_delete') . '"></i>';
1378
+                                $label = '<i class="fas fa-indent infotip text-warning mr-2" title="'.$lang->get('write').'"></i>'.
1379
+                                    '<i class="fas fa-edit infotip text-danger mr-2" title="'.$lang->get('no_edit').'"></i>'.
1380
+                                    '<i class="fas fa-eraser infotip text-danger" title="'.$lang->get('no_delete').'"></i>';
1381 1381
                             } elseif ($fld['type'] == '') {
1382
-                                $label = '<i class="fas fa-eye-slash infotip text-danger mr-2" title="' . $lang->get('no_access') . '"></i>';
1382
+                                $label = '<i class="fas fa-eye-slash infotip text-danger mr-2" title="'.$lang->get('no_access').'"></i>';
1383 1383
                             } else {
1384
-                                $label = '<i class="fas fa-eye infotip text-info mr-2" title="' . $lang->get('read') . '"></i>';
1384
+                                $label = '<i class="fas fa-eye infotip text-info mr-2" title="'.$lang->get('read').'"></i>';
1385 1385
                             }
1386 1386
 
1387
-                            $html .= '<tr><td>' . $ident . $row['title'] .
1388
-                                ' <small class="text-info">[' . $row['id'] . ']</small>'.
1389
-                                ($fld['special'] === true ? '<i class="fas fa-user-tag infotip text-primary ml-5" title="' . $lang->get('user_specific_right') . '"></i>' : '').
1390
-                                '</td><td>' . $label . '</td></tr>';
1387
+                            $html .= '<tr><td>'.$ident.$row['title'].
1388
+                                ' <small class="text-info">['.$row['id'].']</small>'.
1389
+                                ($fld['special'] === true ? '<i class="fas fa-user-tag infotip text-primary ml-5" title="'.$lang->get('user_specific_right').'"></i>' : '').
1390
+                                '</td><td>'.$label.'</td></tr>';
1391 1391
                             break;
1392 1392
                         }
1393 1393
                     }
1394 1394
                 }
1395 1395
 
1396
-                $html_full = '<table id="table-folders" class="table table-bordered table-striped dt-responsive nowrap" style="width:100%"><tbody>' .
1397
-                    $html . '</tbody></table>';
1396
+                $html_full = '<table id="table-folders" class="table table-bordered table-striped dt-responsive nowrap" style="width:100%"><tbody>'.
1397
+                    $html.'</tbody></table>';
1398 1398
             } else {
1399 1399
                 $html_full = '';
1400 1400
             }
@@ -1440,7 +1440,7 @@  discard block
 block discarded – undo
1440 1440
             if ((int) $session->get('user-admin') === 0 && (int) $session->get('user-can_manage_all_users') === 0) {
1441 1441
                 $rows = DB::query(
1442 1442
                     'SELECT *
1443
-                    FROM ' . prefixTable('users') . '
1443
+                    FROM ' . prefixTable('users').'
1444 1444
                     WHERE admin = %i AND isAdministratedByRole IN %ls',
1445 1445
                     '0',
1446 1446
                     array_filter($session->get('user-roles_array'))
@@ -1448,7 +1448,7 @@  discard block
 block discarded – undo
1448 1448
             } else {
1449 1449
                 $rows = DB::query(
1450 1450
                     'SELECT *
1451
-                    FROM ' . prefixTable('users') . '
1451
+                    FROM ' . prefixTable('users').'
1452 1452
                     WHERE admin = %i',
1453 1453
                     '0'
1454 1454
                 );
@@ -1460,7 +1460,7 @@  discard block
 block discarded – undo
1460 1460
                 $groupIds = [];
1461 1461
                 foreach (explode(';', $record['fonction_id']) as $group) {
1462 1462
                     $tmp = DB::queryFirstRow(
1463
-                        'SELECT id, title FROM ' . prefixTable('roles_title') . '
1463
+                        'SELECT id, title FROM '.prefixTable('roles_title').'
1464 1464
                         WHERE id = %i',
1465 1465
                         $group
1466 1466
                     );
@@ -1472,7 +1472,7 @@  discard block
 block discarded – undo
1472 1472
 
1473 1473
                 // Get managed_by
1474 1474
                 $managedBy = DB::queryFirstRow(
1475
-                    'SELECT id, title FROM ' . prefixTable('roles_title') . '
1475
+                    'SELECT id, title FROM '.prefixTable('roles_title').'
1476 1476
                     WHERE id = %i',
1477 1477
                     $record['isAdministratedByRole']
1478 1478
                 );
@@ -1482,7 +1482,7 @@  discard block
 block discarded – undo
1482 1482
                 $foldersAllowedIds = [];
1483 1483
                 foreach (explode(';', $record['groupes_visibles']) as $role) {
1484 1484
                     $tmp = DB::queryFirstRow(
1485
-                        'SELECT id, title FROM ' . prefixTable('nested_tree') . '
1485
+                        'SELECT id, title FROM '.prefixTable('nested_tree').'
1486 1486
                         WHERE id = %i',
1487 1487
                         $role
1488 1488
                     );
@@ -1495,7 +1495,7 @@  discard block
 block discarded – undo
1495 1495
                 $foldersForbiddenIds = [];
1496 1496
                 foreach (explode(';', $record['groupes_interdits']) as $role) {
1497 1497
                     $tmp = DB::queryFirstRow(
1498
-                        'SELECT id, title FROM ' . prefixTable('nested_tree') . '
1498
+                        'SELECT id, title FROM '.prefixTable('nested_tree').'
1499 1499
                         WHERE id = %i',
1500 1500
                         $role
1501 1501
                     );
@@ -1513,7 +1513,7 @@  discard block
 block discarded – undo
1513 1513
                         'login' => $record['login'],
1514 1514
                         'groups' => implode(', ', $groups),
1515 1515
                         'groupIds' => $groupIds,
1516
-                        'managedBy' => $managedBy=== null ? $lang->get('administrator') : $managedBy['title'],
1516
+                        'managedBy' => $managedBy === null ? $lang->get('administrator') : $managedBy['title'],
1517 1517
                         'managedById' => $managedBy === null ? 0 : $managedBy['id'],
1518 1518
                         'foldersAllowed' => implode(', ', $foldersAllowed),
1519 1519
                         'foldersAllowedIds' => $foldersAllowedIds,
@@ -1614,7 +1614,7 @@  discard block
 block discarded – undo
1614 1614
 
1615 1615
             // Get info about user
1616 1616
             $data_user = DB::queryFirstRow(
1617
-                'SELECT admin, isAdministratedByRole FROM ' . prefixTable('users') . '
1617
+                'SELECT admin, isAdministratedByRole FROM '.prefixTable('users').'
1618 1618
                 WHERE id = %i',
1619 1619
                 $inputData['source_id']
1620 1620
             );
@@ -1841,14 +1841,14 @@  discard block
 block discarded – undo
1841 1841
             if (empty($post_context) === false && $post_context === 'add_one_role_to_user') {
1842 1842
                 $data_user = DB::queryFirstRow(
1843 1843
                     'SELECT fonction_id, public_key
1844
-                    FROM ' . prefixTable('users') . '
1844
+                    FROM ' . prefixTable('users').'
1845 1845
                     WHERE id = %i',
1846 1846
                     $post_user_id
1847 1847
                 );
1848 1848
 
1849 1849
                 if ($data_user) {
1850 1850
                     // Ensure array is unique
1851
-                    $post_new_value = str_replace(',', ';', $data_user['fonction_id']) . ';' . $post_new_value;
1851
+                    $post_new_value = str_replace(',', ';', $data_user['fonction_id']).';'.$post_new_value;
1852 1852
                     $post_new_value = implode(';', array_unique(explode(';', $post_new_value)));
1853 1853
                 } else {
1854 1854
                     // User not found
@@ -1864,14 +1864,14 @@  discard block
 block discarded – undo
1864 1864
             }
1865 1865
 
1866 1866
             // Manage specific case of api key
1867
-            if($post_field === 'user_api_key') {
1867
+            if ($post_field === 'user_api_key') {
1868 1868
                 $encrypted_key = encryptUserObjectKey(base64_encode($post_new_value), $session->get('user-public_key'));
1869 1869
                 $session->set('user-api_key', $post_new_value);
1870 1870
 
1871 1871
                 // test if user has an api key
1872 1872
                 $data_user = DB::queryFirstRow(
1873 1873
                     'SELECT value
1874
-                    FROM ' . prefixTable('api') . '
1874
+                    FROM ' . prefixTable('api').'
1875 1875
                     WHERE user_id = %i',
1876 1876
                     $post_user_id
1877 1877
                 );
@@ -1991,7 +1991,7 @@  discard block
 block discarded – undo
1991 1991
             } catch (\LdapRecord\Auth\BindException $e) {
1992 1992
                 $error = $e->getDetailedError();
1993 1993
                 if ($error && defined('LOG_TO_SERVER') && LOG_TO_SERVER === true) {
1994
-                    error_log('TEAMPASS Error - LDAP - '.$error->getErrorCode()." - ".$error->getErrorMessage(). " - ".$error->getDiagnosticMessage());
1994
+                    error_log('TEAMPASS Error - LDAP - '.$error->getErrorCode()." - ".$error->getErrorMessage()." - ".$error->getDiagnosticMessage());
1995 1995
                 }
1996 1996
                 // deepcode ignore ServerLeak: No important data is sent and it is encrypted before sending
1997 1997
                 echo prepareExchangedData(
@@ -2021,7 +2021,7 @@  discard block
 block discarded – undo
2021 2021
             } catch (\LdapRecord\Auth\BindException $e) {
2022 2022
                 $error = $e->getDetailedError();
2023 2023
                 if ($error && defined('LOG_TO_SERVER') && LOG_TO_SERVER === true) {
2024
-                    error_log('TEAMPASS Error - LDAP - '.$error->getErrorCode()." - ".$error->getErrorMessage(). " - ".$error->getDiagnosticMessage());
2024
+                    error_log('TEAMPASS Error - LDAP - '.$error->getErrorCode()." - ".$error->getErrorMessage()." - ".$error->getDiagnosticMessage());
2025 2025
                 }
2026 2026
                 // deepcode ignore ServerLeak: No important data is sent and it is encrypted before sending
2027 2027
                 echo prepareExchangedData(
@@ -2038,7 +2038,7 @@  discard block
 block discarded – undo
2038 2038
                 if (isset($adUser[$SETTINGS['ldap_user_attribute']][0]) === false) continue;
2039 2039
                 // Build the list of all groups in AD
2040 2040
                 if (isset($adUser['memberof']) === true) {
2041
-                    foreach($adUser['memberof'] as $j => $adUserGroup) {
2041
+                    foreach ($adUser['memberof'] as $j => $adUserGroup) {
2042 2042
                         if (empty($adUserGroup) === false && $j !== "count") {
2043 2043
                             $adGroup = substr($adUserGroup, 3, strpos($adUserGroup, ',') - 3);
2044 2044
                             if (in_array($adGroup, $adRoles) === false && empty($adGroup) === false) {
@@ -2054,7 +2054,7 @@  discard block
 block discarded – undo
2054 2054
                     // Get his ID
2055 2055
                     $userInfo = DB::queryFirstRow(
2056 2056
                         'SELECT id, login, fonction_id, auth_type
2057
-                        FROM ' . prefixTable('users') . '
2057
+                        FROM ' . prefixTable('users').'
2058 2058
                         WHERE login = %s',
2059 2059
                         $userLogin
2060 2060
                     );
@@ -2090,7 +2090,7 @@  discard block
 block discarded – undo
2090 2090
 
2091 2091
             // Get all groups in Teampass
2092 2092
             $teampassRoles = array();
2093
-            $rows = DB::query('SELECT id,title FROM ' . prefixTable('roles_title'));
2093
+            $rows = DB::query('SELECT id,title FROM '.prefixTable('roles_title'));
2094 2094
             foreach ($rows as $record) {
2095 2095
                 array_push(
2096 2096
                     $teampassRoles,
@@ -2155,7 +2155,7 @@  discard block
 block discarded – undo
2155 2155
             // Check if user already exists
2156 2156
             $data = DB::query(
2157 2157
                 'SELECT id, fonction_id, groupes_interdits, groupes_visibles
2158
-                FROM ' . prefixTable('users') . '
2158
+                FROM ' . prefixTable('users').'
2159 2159
                 WHERE login = %s',
2160 2160
                 $post_login
2161 2161
             );
@@ -2332,7 +2332,7 @@  discard block
 block discarded – undo
2332 2332
             // Check if user already exists
2333 2333
             DB::query(
2334 2334
                 'SELECT id
2335
-                FROM ' . prefixTable('users') . '
2335
+                FROM ' . prefixTable('users').'
2336 2336
                 WHERE id = %i',
2337 2337
                 $post_id
2338 2338
             );
@@ -2394,7 +2394,7 @@  discard block
 block discarded – undo
2394 2394
             // Get all groups in Teampass
2395 2395
             $teampassRoles = array();
2396 2396
             $titleToIdMap = [];
2397
-            $rows = DB::query('SELECT id,title FROM ' . prefixTable('roles_title'));
2397
+            $rows = DB::query('SELECT id,title FROM '.prefixTable('roles_title'));
2398 2398
             foreach ($rows as $record) {
2399 2399
                 array_push(
2400 2400
                     $teampassRoles,
@@ -2440,7 +2440,7 @@  discard block
 block discarded – undo
2440 2440
                     // Get his ID
2441 2441
                     $userInfo = DB::queryFirstRow(
2442 2442
                         'SELECT id, login, fonction_id, auth_type
2443
-                        FROM ' . prefixTable('users') . '
2443
+                        FROM ' . prefixTable('users').'
2444 2444
                         WHERE login = %s',
2445 2445
                         $userLogin
2446 2446
                     );
@@ -2547,7 +2547,7 @@  discard block
 block discarded – undo
2547 2547
             // Check if user already exists
2548 2548
             DB::query(
2549 2549
                 'SELECT id
2550
-                FROM ' . prefixTable('users') . '
2550
+                FROM ' . prefixTable('users').'
2551 2551
                 WHERE id = %i',
2552 2552
                 $post_id
2553 2553
             );
@@ -2614,7 +2614,7 @@  discard block
 block discarded – undo
2614 2614
             // Search TP_USER in db        
2615 2615
             $userTP = DB::queryFirstRow(
2616 2616
                 'SELECT pw
2617
-                FROM ' . prefixTable('users') . '
2617
+                FROM ' . prefixTable('users').'
2618 2618
                 WHERE id = %i',
2619 2619
                 TP_USER_ID
2620 2620
             );
@@ -2636,8 +2636,8 @@  discard block
 block discarded – undo
2636 2636
                     'process_type' => 'create_user_keys',
2637 2637
                     'arguments' => json_encode([
2638 2638
                         'new_user_id' => (int) $post_user_id,
2639
-                        'new_user_pwd' => empty($post_user_pwd) === true ? '' : cryption($post_user_pwd, '','encrypt', $SETTINGS)['string'],
2640
-                        'new_user_code' => cryption($post_user_code, '','encrypt', $SETTINGS)['string'],
2639
+                        'new_user_pwd' => empty($post_user_pwd) === true ? '' : cryption($post_user_pwd, '', 'encrypt', $SETTINGS)['string'],
2640
+                        'new_user_code' => cryption($post_user_code, '', 'encrypt', $SETTINGS)['string'],
2641 2641
                         'owner_id' => (int) TP_USER_ID,
2642 2642
                         'creator_pwd' => $userTP['pw'],
2643 2643
                         'email_body' => $lang->get('email_body_user_config_5'),
@@ -2726,8 +2726,8 @@  discard block
 block discarded – undo
2726 2726
             // get user info
2727 2727
             $processesProgress = DB::query(
2728 2728
                 'SELECT u.ongoing_process_id, pt.task, pt.updated_at, pt.finished_at, pt.is_in_progress
2729
-                FROM ' . prefixTable('users') . ' AS u
2730
-                INNER JOIN ' . prefixTable('background_subtasks') . ' AS pt ON (pt.task_id = u.ongoing_process_id)
2729
+                FROM ' . prefixTable('users').' AS u
2730
+                INNER JOIN ' . prefixTable('background_subtasks').' AS pt ON (pt.task_id = u.ongoing_process_id)
2731 2731
                 WHERE u.id = %i',
2732 2732
                 $user_id
2733 2733
             );
@@ -2735,9 +2735,9 @@  discard block
 block discarded – undo
2735 2735
             //print_r($processesProgress);
2736 2736
             $finished_steps = 0;
2737 2737
             $nb_steps = count($processesProgress);
2738
-            foreach($processesProgress as $process) {
2738
+            foreach ($processesProgress as $process) {
2739 2739
                 if ((int) $process['is_in_progress'] === -1) {
2740
-                    $finished_steps ++;
2740
+                    $finished_steps++;
2741 2741
                 }
2742 2742
             }
2743 2743
 
@@ -2746,7 +2746,7 @@  discard block
 block discarded – undo
2746 2746
                     'error' => false,
2747 2747
                     'message' => '',
2748 2748
                     'user_id' => $user_id,
2749
-                    'status' => $finished_steps === $nb_steps ? 'finished' : number_format($finished_steps/$nb_steps*100, 0).'%',
2749
+                    'status' => $finished_steps === $nb_steps ? 'finished' : number_format($finished_steps / $nb_steps * 100, 0).'%',
2750 2750
                     'debug' => $finished_steps.",".$nb_steps,
2751 2751
                 ),
2752 2752
                 'encode'
@@ -2836,7 +2836,7 @@  discard block
 block discarded – undo
2836 2836
 
2837 2837
     // Get info about user
2838 2838
     $data_user = DB::queryFirstRow(
2839
-        'SELECT admin, isAdministratedByRole FROM ' . prefixTable('users') . '
2839
+        'SELECT admin, isAdministratedByRole FROM '.prefixTable('users').'
2840 2840
         WHERE id = %i',
2841 2841
         $value[1]
2842 2842
     );
@@ -2870,7 +2870,7 @@  discard block
 block discarded – undo
2870 2870
             logEvents(
2871 2871
                 $SETTINGS,
2872 2872
                 'user_mngt',
2873
-                'at_user_new_' . $value[0] . ':' . $value[1],
2873
+                'at_user_new_'.$value[0].':'.$value[1],
2874 2874
                 (string) $session->get('user-id'),
2875 2875
                 $session->get('user-login'),
2876 2876
                 filter_input(INPUT_POST, 'id', FILTER_SANITIZE_FULL_SPECIAL_CHARS)
@@ -2904,7 +2904,7 @@  discard block
 block discarded – undo
2904 2904
 
2905 2905
     // Get info about user
2906 2906
     $data_user = DB::queryFirstRow(
2907
-        'SELECT admin, isAdministratedByRole FROM ' . prefixTable('users') . '
2907
+        'SELECT admin, isAdministratedByRole FROM '.prefixTable('users').'
2908 2908
         WHERE id = %i',
2909 2909
         $id[1]
2910 2910
     );
Please login to merge, or discard this patch.
api/Controller/Api/AuthController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         $arrQueryStringParams = $this->getQueryStringParams();
40 40
 
41 41
         if (strtoupper($requestMethod) === 'POST') {
42
-            require API_ROOT_PATH . "/Model/AuthModel.php";
42
+            require API_ROOT_PATH."/Model/AuthModel.php";
43 43
             try {
44 44
                 $authModel = new AuthModel();
45 45
                 $arrUser = $authModel->getUserAuth(
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
                 if (array_key_exists("token", $arrUser)) {
51 51
                     $responseData = json_encode($arrUser);
52 52
                 } else {
53
-                    $strErrorDesc = $arrUser['error'] . " (" . $arrUser['info'] . ")";
53
+                    $strErrorDesc = $arrUser['error']." (".$arrUser['info'].")";
54 54
                     $strErrorHeader = 'HTTP/1.1 401 Unauthorized';
55 55
                 }
56 56
             } catch (Error $e) {
Please login to merge, or discard this patch.
pages/statistics.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('statistics') === 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/folders.php 1 patch
Spacing   +11 added lines, -11 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('folders') === 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
 
@@ -99,28 +99,28 @@  discard block
 block discarded – undo
99 99
 $complexityHtml = '<div id="hidden-select-complexity" class="hidden"><select id="select-complexity" class="form-control form-item-control save-me">';
100 100
 $complexitySelect = '';
101 101
 foreach (TP_PW_COMPLEXITY as $level) {
102
-    $complexitySelect .= '<option value="' . $level[0] . '">' . $level[1] . '</option>';
102
+    $complexitySelect .= '<option value="'.$level[0].'">'.$level[1].'</option>';
103 103
 }
104
-$complexityHtml .= $complexitySelect . '</select></div>';
104
+$complexityHtml .= $complexitySelect.'</select></div>';
105 105
 
106 106
 /* Get full tree structure */
107 107
 $tst = $tree->getDescendants();
108 108
 // prepare options list
109
-$droplist = '<option value="na">---' . $lang->get('select') . '---</option>';
109
+$droplist = '<option value="na">---'.$lang->get('select').'---</option>';
110 110
 if ((int) $session->get('user-admin') === 1 || (int) $session->get('user-manager') === 1 || (int) $session->get('user-can_create_root_folder') === 1) {
111
-    $droplist .= '<option value="0">' . $lang->get('root') . '</option>';
111
+    $droplist .= '<option value="0">'.$lang->get('root').'</option>';
112 112
 }
113 113
 foreach ($tst as $t) {
114 114
     if (
115 115
         in_array($t->id, $session->get('user-accessible_folders')) === true
116 116
         && in_array($t->id, $session->get('user-personal_visible_folders')) === false
117 117
     ) {
118
-        $droplist .= '<option value="' . $t->id . '">' . addslashes($t->title);
118
+        $droplist .= '<option value="'.$t->id.'">'.addslashes($t->title);
119 119
         $text = '';
120 120
         foreach ($tree->getPath($t->id, false) as $fld) {
121
-            $text .= empty($text) === true ? '     [' . $fld->title : ' > ' . $fld->title;
121
+            $text .= empty($text) === true ? '     ['.$fld->title : ' > '.$fld->title;
122 122
         }
123
-        $droplist .= (empty($text) === true ? '' : $text . '</i>]') . '</option>';
123
+        $droplist .= (empty($text) === true ? '' : $text.'</i>]').'</option>';
124 124
     }
125 125
 }
126 126
 
@@ -199,14 +199,14 @@  discard block
 block discarded – undo
199 199
                                     <label><?php echo $lang->get('icon'); ?></label>
200 200
                                     <input type="text" class="form-control form-folder-control purify" id="new-folder-add-icon" data-field="icon">
201 201
                                     <small class='form-text text-muted'>
202
-                                        <?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>
202
+                                        <?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>
203 203
                                     </small>
204 204
                                 </div>
205 205
                                 <div class="form-group">
206 206
                                     <label><?php echo $lang->get('icon_on_selection'); ?></label>
207 207
                                     <input type="text" class="form-control form-folder-control purify" id="new-folder-add-icon-selected" data-field="iconSelected">
208 208
                                     <small class='form-text text-muted'>
209
-                                        <?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>
209
+                                        <?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>
210 210
                                     </small>
211 211
                                 </div>
212 212
                                 <div class="form-group">
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
                                 <th scope="col" min-width="200px"><?php echo $lang->get('group'); ?></th>
298 298
                                 <th scope="col" min-width="200px"><?php echo $lang->get('group_parent'); ?></th>
299 299
                                 <th scope="col" width="50px"><i class="fas fa-gavel fa-lg infotip" title="<?php echo $lang->get('password_strength'); ?>"></i></th>
300
-                                <th scope="col" width="50px"><i class="fas fa-recycle fa-lg infotip" title="<?php echo $lang->get('group_pw_duration') . ' ' . $lang->get('group_pw_duration_tip'); ?>"></i></th>
300
+                                <th scope="col" width="50px"><i class="fas fa-recycle fa-lg infotip" title="<?php echo $lang->get('group_pw_duration').' '.$lang->get('group_pw_duration_tip'); ?>"></i></th>
301 301
                                 <th scope="col" width="50px"><i class="fas fa-pen fa-lg infotip" title="<?php echo $lang->get('auth_creation_without_complexity'); ?>"></i></th>
302 302
                                 <th scope="col" width="50px"><i class="fas fa-edit fa-lg infotip" title="<?php echo $lang->get('auth_modification_without_complexity'); ?>"></i></th>
303 303
                                 <th scope="col" width="50px"><i class="fas fa-folder fa-lg infotip" title="<?php echo $lang->get('icon'); ?>"></i></th>
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.