Passed
Branch — 3.1.3-preparation (56a0b7)
by Nils
12:02
created
sources/logs.datatables.php 1 patch
Spacing   +66 added lines, -67 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 ) {
77 77
     // Not allowed page
78 78
     $session->set('system-error_code', ERR_NOT_ALLOWED);
79
-    include $SETTINGS['cpassman_dir'] . '/error.php';
79
+    include $SETTINGS['cpassman_dir'].'/error.php';
80 80
     exit;
81 81
 }
82 82
 
@@ -125,9 +125,9 @@  discard block
 block discarded – undo
125 125
 
126 126
             $columnIndex = filter_var($order['column'], FILTER_SANITIZE_NUMBER_INT);
127 127
             $dir = filter_var($order['dir'], FILTER_SANITIZE_FULL_SPECIAL_CHARS);
128
-            $sOrder = 'ORDER BY ' . $aColumns[$columnIndex] . ' ' . $dir . ' ';
128
+            $sOrder = 'ORDER BY '.$aColumns[$columnIndex].' '.$dir.' ';
129 129
         } else {
130
-            $sOrder = 'ORDER BY ' . $aColumns[0] . ' DESC';
130
+            $sOrder = 'ORDER BY '.$aColumns[0].' DESC';
131 131
         }
132 132
     }
133 133
 
@@ -138,9 +138,9 @@  discard block
 block discarded – undo
138 138
         if ($searchValue !== '') {
139 139
             $sWhere .= ' AND (';
140 140
             foreach ($aColumns as $column) {
141
-                $sWhere .= $column . " LIKE '%" . $searchValue . "%' OR ";
141
+                $sWhere .= $column." LIKE '%".$searchValue."%' OR ";
142 142
             }
143
-            $sWhere = substr_replace((string) $sWhere, '', -3) . ')';
143
+            $sWhere = substr_replace((string) $sWhere, '', -3).')';
144 144
         }
145 145
     }
146 146
 
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
            * Output
166 166
         */
167 167
     $sOutput = '{';
168
-    $sOutput .= '"sEcho": '. $request->query->filter('draw', FILTER_SANITIZE_NUMBER_INT) . ', ';
168
+    $sOutput .= '"sEcho": '.$request->query->filter('draw', FILTER_SANITIZE_NUMBER_INT).', ';
169 169
     $sOutput .= '"iTotalRecords": '.$iTotal.', ';
170 170
     $sOutput .= '"iTotalDisplayRecords": '.$iTotal.', ';
171 171
     $sOutput .= '"aaData": ';
@@ -204,9 +204,9 @@  discard block
 block discarded – undo
204 204
 
205 205
         $columnIndex = filter_var($order['column'], FILTER_SANITIZE_NUMBER_INT);
206 206
         $dir = filter_var($order['dir'], FILTER_SANITIZE_FULL_SPECIAL_CHARS);
207
-        $sOrder = 'ORDER BY ' . $aColumns[$columnIndex] . ' ' . $dir . ' ';
207
+        $sOrder = 'ORDER BY '.$aColumns[$columnIndex].' '.$dir.' ';
208 208
     } else {
209
-        $sOrder = 'ORDER BY ' . $aColumns[0] . ' DESC';
209
+        $sOrder = 'ORDER BY '.$aColumns[0].' DESC';
210 210
     }
211 211
 
212 212
     // Filtering
@@ -215,9 +215,9 @@  discard block
 block discarded – undo
215 215
     if ($sSearch !== '') {
216 216
         $sWhere .= ' AND (';
217 217
         foreach ($aColumns as $i => $column) {
218
-            $sWhere .= $column . " LIKE '%". filter_var($sSearch, FILTER_SANITIZE_FULL_SPECIAL_CHARS) . "%' OR ";
218
+            $sWhere .= $column." LIKE '%".filter_var($sSearch, FILTER_SANITIZE_FULL_SPECIAL_CHARS)."%' OR ";
219 219
         }
220
-        $sWhere = substr_replace($sWhere, '', -3) . ')';
220
+        $sWhere = substr_replace($sWhere, '', -3).')';
221 221
     }
222 222
 
223 223
     $iTotal = DB::queryFirstField(
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
     $iFilteredTotal = DB::count();
241 241
     // Output
242 242
     $sOutput = '{';
243
-    $sOutput .= '"sEcho": '. $request->query->filter('draw', FILTER_SANITIZE_NUMBER_INT) . ', ';
243
+    $sOutput .= '"sEcho": '.$request->query->filter('draw', FILTER_SANITIZE_NUMBER_INT).', ';
244 244
     $sOutput .= '"iTotalRecords": '.$iTotal.', ';
245 245
     $sOutput .= '"iTotalDisplayRecords": '.$iTotal.', ';
246 246
     $sOutput .= '"aaData": ';
@@ -279,9 +279,9 @@  discard block
 block discarded – undo
279 279
 
280 280
         $columnIndex = filter_var($order['column'], FILTER_SANITIZE_NUMBER_INT);
281 281
         $dir = filter_var($order['dir'], FILTER_SANITIZE_FULL_SPECIAL_CHARS);
282
-        $sOrder = 'ORDER BY ' . $aColumns[$columnIndex] . ' ' . $dir . ' ';
282
+        $sOrder = 'ORDER BY '.$aColumns[$columnIndex].' '.$dir.' ';
283 283
     } else {
284
-        $sOrder = 'ORDER BY ' . $aColumns[0] . ' DESC';
284
+        $sOrder = 'ORDER BY '.$aColumns[0].' DESC';
285 285
     }
286 286
 
287 287
     // Filtering
@@ -290,9 +290,9 @@  discard block
 block discarded – undo
290 290
     if ($searchValue !== '') {
291 291
         $sWhere .= ' AND (';
292 292
         foreach ($aColumns as $column) {
293
-            $sWhere .= $column . " LIKE '%" . filter_var($searchValue, FILTER_SANITIZE_FULL_SPECIAL_CHARS) . "%' OR ";
293
+            $sWhere .= $column." LIKE '%".filter_var($searchValue, FILTER_SANITIZE_FULL_SPECIAL_CHARS)."%' OR ";
294 294
         }
295
-        $sWhere = substr_replace($sWhere, '', -3) . ')';
295
+        $sWhere = substr_replace($sWhere, '', -3).')';
296 296
     }
297 297
 
298 298
     $iTotal = DB::queryFirstField(
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
     $iFilteredTotal = DB::count();
316 316
     // Output
317 317
     $sOutput = '{';
318
-    $sOutput .= '"sEcho": '. (int) $request->query->filter('draw', FILTER_SANITIZE_NUMBER_INT) . ', ';
318
+    $sOutput .= '"sEcho": '.(int) $request->query->filter('draw', FILTER_SANITIZE_NUMBER_INT).', ';
319 319
     $sOutput .= '"iTotalRecords": '.$iTotal.', ';
320 320
     $sOutput .= '"iTotalDisplayRecords": '.$iTotal.', ';
321 321
     $sOutput .= '"aaData": ';
@@ -354,9 +354,9 @@  discard block
 block discarded – undo
354 354
         
355 355
         $columnIndex = filter_var($order['column'], FILTER_SANITIZE_NUMBER_INT);
356 356
         $dir = filter_var($order['dir'], FILTER_SANITIZE_FULL_SPECIAL_CHARS);
357
-        $sOrder = 'ORDER BY ' . $aColumns[$columnIndex] . ' ' . $dir . ' ';
357
+        $sOrder = 'ORDER BY '.$aColumns[$columnIndex].' '.$dir.' ';
358 358
     } else {
359
-        $sOrder = 'ORDER BY ' . $aColumns[0] . ' DESC';
359
+        $sOrder = 'ORDER BY '.$aColumns[0].' DESC';
360 360
     }
361 361
 
362 362
     // Filtering
@@ -365,9 +365,9 @@  discard block
 block discarded – undo
365 365
     if ($searchValue !== '') {
366 366
         $sWhere .= ' AND (';
367 367
         foreach ($aColumns as $column) {
368
-            $sWhere .= $column . " LIKE '%" . filter_var($searchValue, FILTER_SANITIZE_FULL_SPECIAL_CHARS) . "%' OR ";
368
+            $sWhere .= $column." LIKE '%".filter_var($searchValue, FILTER_SANITIZE_FULL_SPECIAL_CHARS)."%' OR ";
369 369
         }
370
-        $sWhere = substr_replace($sWhere, '', -3) . ')';
370
+        $sWhere = substr_replace($sWhere, '', -3).')';
371 371
     }
372 372
 
373 373
     $iTotal = DB::queryFirstField(
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
          * Output
390 390
         */
391 391
     $sOutput = '{';
392
-    $sOutput .= '"sEcho": '. (int) $request->query->filter('draw', FILTER_SANITIZE_NUMBER_INT) . ', ';
392
+    $sOutput .= '"sEcho": '.(int) $request->query->filter('draw', FILTER_SANITIZE_NUMBER_INT).', ';
393 393
     $sOutput .= '"iTotalRecords": '.$iTotal.', ';
394 394
     $sOutput .= '"iTotalDisplayRecords": '.$iTotal.', ';
395 395
     $sOutput .= '"aaData": [ ';
@@ -457,9 +457,9 @@  discard block
 block discarded – undo
457 457
 
458 458
         $columnIndex = filter_var($order['column'], FILTER_SANITIZE_NUMBER_INT);
459 459
         $dir = filter_var($order['dir'], FILTER_SANITIZE_FULL_SPECIAL_CHARS);
460
-        $sOrder = 'ORDER BY ' . $aColumns[$columnIndex] . ' ' . $dir . ' ';
460
+        $sOrder = 'ORDER BY '.$aColumns[$columnIndex].' '.$dir.' ';
461 461
     } else {
462
-        $sOrder = 'ORDER BY ' . $aColumns[0] . ' DESC';
462
+        $sOrder = 'ORDER BY '.$aColumns[0].' DESC';
463 463
     }
464 464
 
465 465
     // Filtering
@@ -469,12 +469,12 @@  discard block
 block discarded – undo
469 469
     if ($searchValue !== '') {
470 470
         $sWhere .= ' WHERE (';
471 471
         if (isset($search['column']) && $search['column'] !== 'all') {
472
-            $sWhere .= $search['column'] . " LIKE '%" . filter_var($searchValue, FILTER_SANITIZE_FULL_SPECIAL_CHARS) . "%') ";
472
+            $sWhere .= $search['column']." LIKE '%".filter_var($searchValue, FILTER_SANITIZE_FULL_SPECIAL_CHARS)."%') ";
473 473
         } else {
474 474
             foreach ($aColumns as $column) {
475
-                $sWhere .= $column . " LIKE '%" . filter_var($searchValue, FILTER_SANITIZE_FULL_SPECIAL_CHARS) . "%' OR ";
475
+                $sWhere .= $column." LIKE '%".filter_var($searchValue, FILTER_SANITIZE_FULL_SPECIAL_CHARS)."%' OR ";
476 476
             }
477
-            $sWhere = substr($sWhere, 0, -3) . ') ';
477
+            $sWhere = substr($sWhere, 0, -3).') ';
478 478
         }
479 479
     }
480 480
     
@@ -503,7 +503,7 @@  discard block
 block discarded – undo
503 503
     $iFilteredTotal = DB::count();
504 504
     // Output
505 505
     $sOutput = '{';
506
-    $sOutput .= '"sEcho": '. (int) $request->query->filter('draw', FILTER_SANITIZE_NUMBER_INT) . ', ';
506
+    $sOutput .= '"sEcho": '.(int) $request->query->filter('draw', FILTER_SANITIZE_NUMBER_INT).', ';
507 507
     $sOutput .= '"iTotalRecords": '.$iTotal.', ';
508 508
     $sOutput .= '"iTotalDisplayRecords": '.$iTotal.', ';
509 509
     $sOutput .= '"aaData": [ ';
@@ -552,9 +552,9 @@  discard block
 block discarded – undo
552 552
 
553 553
         $columnIndex = filter_var($order['column'], FILTER_SANITIZE_NUMBER_INT);
554 554
         $dir = filter_var($order['dir'], FILTER_SANITIZE_FULL_SPECIAL_CHARS);
555
-        $sOrder = 'ORDER BY ' . $aColumns[$columnIndex] . ' ' . $dir . ' ';
555
+        $sOrder = 'ORDER BY '.$aColumns[$columnIndex].' '.$dir.' ';
556 556
     } else {
557
-        $sOrder = 'ORDER BY ' . $aColumns[0] . ' DESC';
557
+        $sOrder = 'ORDER BY '.$aColumns[0].' DESC';
558 558
     }
559 559
 
560 560
     // Filtering
@@ -563,9 +563,9 @@  discard block
 block discarded – undo
563 563
     if ($searchValue !== '') {
564 564
         $sWhere .= ' AND (';
565 565
         foreach ($aColumns as $column) {
566
-            $sWhere .= $column . " LIKE '%" . filter_var($searchValue, FILTER_SANITIZE_FULL_SPECIAL_CHARS) . "%' OR ";
566
+            $sWhere .= $column." LIKE '%".filter_var($searchValue, FILTER_SANITIZE_FULL_SPECIAL_CHARS)."%' OR ";
567 567
         }
568
-        $sWhere = substr_replace($sWhere, '', -3) . ')';
568
+        $sWhere = substr_replace($sWhere, '', -3).')';
569 569
     }
570 570
 
571 571
     $iTotal = DB::queryFirstField(
@@ -586,7 +586,7 @@  discard block
 block discarded – undo
586 586
         $iTotal = 0;
587 587
     }
588 588
     $sOutput = '{';
589
-    $sOutput .= '"sEcho": '. (int) $request->query->filter('draw', FILTER_SANITIZE_NUMBER_INT) . ', ';
589
+    $sOutput .= '"sEcho": '.(int) $request->query->filter('draw', FILTER_SANITIZE_NUMBER_INT).', ';
590 590
     $sOutput .= '"iTotalRecords": '.$iTotal.', ';
591 591
     $sOutput .= '"iTotalDisplayRecords": '.$iTotal.', ';
592 592
     $sOutput .= '"aaData": ';
@@ -628,9 +628,9 @@  discard block
 block discarded – undo
628 628
 
629 629
         $columnIndex = filter_var($order['column'], FILTER_SANITIZE_NUMBER_INT);
630 630
         $dir = filter_var($order['dir'], FILTER_SANITIZE_FULL_SPECIAL_CHARS);
631
-        $sOrder = 'ORDER BY ' . $aColumns[$columnIndex] . ' ' . $dir . ' ';
631
+        $sOrder = 'ORDER BY '.$aColumns[$columnIndex].' '.$dir.' ';
632 632
     } else {
633
-        $sOrder = 'ORDER BY ' . $aColumns[0] . ' DESC';
633
+        $sOrder = 'ORDER BY '.$aColumns[0].' DESC';
634 634
     }
635 635
 
636 636
     // Filtering
@@ -639,9 +639,9 @@  discard block
 block discarded – undo
639 639
     if ($searchValue !== '') {
640 640
         $sWhere .= ' AND (';
641 641
         foreach ($aColumns as $column) {
642
-            $sWhere .= $column . " LIKE '%" . filter_var($searchValue, FILTER_SANITIZE_FULL_SPECIAL_CHARS) . "%' OR ";
642
+            $sWhere .= $column." LIKE '%".filter_var($searchValue, FILTER_SANITIZE_FULL_SPECIAL_CHARS)."%' OR ";
643 643
         }
644
-        $sWhere = substr_replace($sWhere, '', -3) . ')';
644
+        $sWhere = substr_replace($sWhere, '', -3).')';
645 645
     }
646 646
 
647 647
     $iTotal = DB::queryFirstField(
@@ -663,7 +663,7 @@  discard block
 block discarded – undo
663 663
     $iFilteredTotal = DB::count();
664 664
     // Output
665 665
     $sOutput = '{';
666
-    $sOutput .= '"sEcho": '. (int) $request->query->filter('draw', FILTER_SANITIZE_NUMBER_INT) . ', ';
666
+    $sOutput .= '"sEcho": '.(int) $request->query->filter('draw', FILTER_SANITIZE_NUMBER_INT).', ';
667 667
     $sOutput .= '"iTotalRecords": '.$iTotal.', ';
668 668
     $sOutput .= '"iTotalDisplayRecords": '.$iTotal.', ';
669 669
     $sOutput .= '"aaData": ';
@@ -700,9 +700,9 @@  discard block
 block discarded – undo
700 700
 
701 701
         $columnIndex = filter_var($order['column'], FILTER_SANITIZE_NUMBER_INT);
702 702
         $dir = filter_var($order['dir'], FILTER_SANITIZE_FULL_SPECIAL_CHARS);
703
-        $sOrder = 'ORDER BY ' . $aColumns[$columnIndex] . ' ' . $dir . ' ';
703
+        $sOrder = 'ORDER BY '.$aColumns[$columnIndex].' '.$dir.' ';
704 704
     } else {
705
-        $sOrder = 'ORDER BY ' . $aColumns[0] . ' DESC';
705
+        $sOrder = 'ORDER BY '.$aColumns[0].' DESC';
706 706
     }
707 707
 
708 708
     // Filtering
@@ -711,9 +711,9 @@  discard block
 block discarded – undo
711 711
     if ($searchValue !== '') {
712 712
         $sWhere = ' WHERE (';
713 713
         foreach ($aColumns as $column) {
714
-            $sWhere .= $column . " LIKE '%" . filter_var($searchValue, FILTER_SANITIZE_FULL_SPECIAL_CHARS) . "%' OR ";
714
+            $sWhere .= $column." LIKE '%".filter_var($searchValue, FILTER_SANITIZE_FULL_SPECIAL_CHARS)."%' OR ";
715 715
         }
716
-        $sWhere = substr_replace($sWhere, '', -3) . ')';
716
+        $sWhere = substr_replace($sWhere, '', -3).')';
717 717
     }
718 718
 
719 719
     $iTotal = DB::queryFirstField(
@@ -736,7 +736,7 @@  discard block
 block discarded – undo
736 736
     $iFilteredTotal = DB::count();
737 737
     // Output
738 738
     $sOutput = '{';
739
-    $sOutput .= '"sEcho": '. (int) $request->query->filter('draw', FILTER_SANITIZE_NUMBER_INT) . ', ';
739
+    $sOutput .= '"sEcho": '.(int) $request->query->filter('draw', FILTER_SANITIZE_NUMBER_INT).', ';
740 740
     $sOutput .= '"iTotalRecords": '.$iTotal.', ';
741 741
     $sOutput .= '"iTotalDisplayRecords": '.$iTotal.', ';
742 742
     $sOutput .= '"aaData": ';
@@ -778,9 +778,9 @@  discard block
 block discarded – undo
778 778
 
779 779
         $columnIndex = filter_var($order['column'], FILTER_SANITIZE_NUMBER_INT);
780 780
         $dir = filter_var($order['dir'], FILTER_SANITIZE_FULL_SPECIAL_CHARS);
781
-        $sOrder = 'ORDER BY ' . $aColumns[$columnIndex] . ' ' . $dir . ' ';
781
+        $sOrder = 'ORDER BY '.$aColumns[$columnIndex].' '.$dir.' ';
782 782
     } else {
783
-        $sOrder = 'ORDER BY ' . $aColumns[0] . ' DESC';
783
+        $sOrder = 'ORDER BY '.$aColumns[0].' DESC';
784 784
     }
785 785
 
786 786
     // Where clause
@@ -789,9 +789,9 @@  discard block
 block discarded – undo
789 789
     if ($searchValue !== '') {
790 790
         $sWhere .= ' AND (';
791 791
         foreach ($aColumns as $column) {
792
-            $sWhere .= $column . " LIKE '%" . filter_var($searchValue, FILTER_SANITIZE_FULL_SPECIAL_CHARS) . "%' OR ";
792
+            $sWhere .= $column." LIKE '%".filter_var($searchValue, FILTER_SANITIZE_FULL_SPECIAL_CHARS)."%' OR ";
793 793
         }
794
-        $sWhere = substr_replace($sWhere, '', -3) . ') ';
794
+        $sWhere = substr_replace($sWhere, '', -3).') ';
795 795
     }
796 796
     $sWhere .= ') ';
797 797
     $iTotal = DB::queryFirstField(
@@ -809,7 +809,7 @@  discard block
 block discarded – undo
809 809
     $iFilteredTotal = DB::count();
810 810
     // Output
811 811
     $sOutput = '{';
812
-    $sOutput .= '"sEcho": '. (int) $request->query->filter('draw', FILTER_SANITIZE_NUMBER_INT) . ', ';
812
+    $sOutput .= '"sEcho": '.(int) $request->query->filter('draw', FILTER_SANITIZE_NUMBER_INT).', ';
813 813
     $sOutput .= '"iTotalRecords": '.$iTotal.', ';
814 814
     $sOutput .= '"iTotalDisplayRecords": '.$iTotal.', ';
815 815
     $sOutput .= '"aaData": ';
@@ -858,9 +858,9 @@  discard block
 block discarded – undo
858 858
 
859 859
         $columnIndex = filter_var($order['column'], FILTER_SANITIZE_NUMBER_INT);
860 860
         $dir = filter_var($order['dir'], FILTER_SANITIZE_FULL_SPECIAL_CHARS);
861
-        $sOrder = 'ORDER BY ' . $aColumns[$columnIndex] . ' ' . $dir . ' ';
861
+        $sOrder = 'ORDER BY '.$aColumns[$columnIndex].' '.$dir.' ';
862 862
     } else {
863
-        $sOrder = 'ORDER BY ' . $aColumns[0] . ' DESC';
863
+        $sOrder = 'ORDER BY '.$aColumns[0].' DESC';
864 864
     }
865 865
 
866 866
     // Where clause
@@ -869,9 +869,9 @@  discard block
 block discarded – undo
869 869
     if ($searchValue !== '') {
870 870
         $sWhere .= ' AND (';
871 871
         foreach ($aColumns as $column) {
872
-            $sWhere .= $column . " LIKE '%" . filter_var($searchValue, FILTER_SANITIZE_FULL_SPECIAL_CHARS) . "%' OR ";
872
+            $sWhere .= $column." LIKE '%".filter_var($searchValue, FILTER_SANITIZE_FULL_SPECIAL_CHARS)."%' OR ";
873 873
         }
874
-        $sWhere = substr_replace($sWhere, '', -3) . ')';
874
+        $sWhere = substr_replace($sWhere, '', -3).')';
875 875
     }
876 876
     $sWhere .= ') ';
877 877
     DB::debugmode(false);
@@ -892,7 +892,7 @@  discard block
 block discarded – undo
892 892
     $iFilteredTotal = DB::count();
893 893
     // Output
894 894
     $sOutput = '{';
895
-    $sOutput .= '"sEcho": '. (int) $request->query->filter('draw', FILTER_SANITIZE_NUMBER_INT) . ', ';
895
+    $sOutput .= '"sEcho": '.(int) $request->query->filter('draw', FILTER_SANITIZE_NUMBER_INT).', ';
896 896
     $sOutput .= '"iTotalRecords": '.$iTotal.', ';
897 897
     $sOutput .= '"iTotalDisplayRecords": '.$iTotal.', ';
898 898
     $sOutput .= '"aaData": ';
@@ -907,7 +907,7 @@  discard block
 block discarded – undo
907 907
         //col1
908 908
         $sOutput .= '"<span data-done=\"'.$record['is_in_progress'].'\" data-type=\"'.$record['process_type'].'\" data-process-id=\"'.$record['increment_id'].'\"></span>", ';
909 909
         //col2
910
-        $sOutput .= '"'.date($SETTINGS['date_format'] . ' ' . $SETTINGS['time_format'], (int) $record['created_at']).'", ';
910
+        $sOutput .= '"'.date($SETTINGS['date_format'].' '.$SETTINGS['time_format'], (int) $record['created_at']).'", ';
911 911
         //col3
912 912
         //$sOutput .= '"'.($record['updated_at'] === '' ? '-' : date($SETTINGS['date_format'] . ' ' . $SETTINGS['time_format'], (int) $record['updated_at'])).'", ';
913 913
         $sOutput .= '"<div class=\"progress mt-2\"><div class=\"progress-bar\" style=\"width: '.$subtaskProgress.'\">'.$subtaskProgress.'</div></div>", ';
@@ -917,7 +917,7 @@  discard block
 block discarded – undo
917 917
         // col5
918 918
         if (in_array($record['process_type'], array('create_user_keys', 'item_copy')) === true) {
919 919
             $data_user = DB::queryfirstrow(
920
-                'SELECT name, lastname FROM ' . prefixTable('users') . '
920
+                'SELECT name, lastname FROM '.prefixTable('users').'
921 921
                 WHERE id = %i',
922 922
                 json_decode($record['arguments'], true)['new_user_id']
923 923
             );
@@ -949,9 +949,9 @@  discard block
 block discarded – undo
949 949
 
950 950
         $columnIndex = filter_var($order['column'], FILTER_SANITIZE_NUMBER_INT);
951 951
         $dir = filter_var($order['dir'], FILTER_SANITIZE_FULL_SPECIAL_CHARS);
952
-        $sOrder = 'ORDER BY ' . $aColumns[$columnIndex] . ' ' . $dir . ' ';
952
+        $sOrder = 'ORDER BY '.$aColumns[$columnIndex].' '.$dir.' ';
953 953
     } else {
954
-        $sOrder = 'ORDER BY ' . $aColumns[0] . ' DESC';
954
+        $sOrder = 'ORDER BY '.$aColumns[0].' DESC';
955 955
     }
956 956
 
957 957
     // Where clause
@@ -960,9 +960,9 @@  discard block
 block discarded – undo
960 960
     if ($searchValue !== '') {
961 961
         $sWhere .= ' AND (';
962 962
         foreach ($aColumns as $column) {
963
-            $sWhere .= $column . " LIKE '%" . filter_var($searchValue, FILTER_SANITIZE_FULL_SPECIAL_CHARS) . "%' OR ";
963
+            $sWhere .= $column." LIKE '%".filter_var($searchValue, FILTER_SANITIZE_FULL_SPECIAL_CHARS)."%' OR ";
964 964
         }
965
-        $sWhere = substr_replace($sWhere, '', -3) . ')';
965
+        $sWhere = substr_replace($sWhere, '', -3).')';
966 966
     }
967 967
     $sWhere .= ') ';
968 968
     
@@ -985,7 +985,7 @@  discard block
 block discarded – undo
985 985
     $iFilteredTotal = DB::count();
986 986
     // Output
987 987
     $sOutput = '{';
988
-    $sOutput .= '"sEcho": '. (int) $request->query->filter('draw', FILTER_SANITIZE_NUMBER_INT) . ', ';
988
+    $sOutput .= '"sEcho": '.(int) $request->query->filter('draw', FILTER_SANITIZE_NUMBER_INT).', ';
989 989
     $sOutput .= '"iTotalRecords": '.$iTotal.', ';
990 990
     $sOutput .= '"iTotalDisplayRecords": '.$iTotal.', ';
991 991
     $sOutput .= '"aaData": ';
@@ -1001,13 +1001,12 @@  discard block
 block discarded – undo
1001 1001
         //col1
1002 1002
         $sOutput .= '"", ';
1003 1003
         //col2
1004
-        $sOutput .= '"'.date($SETTINGS['date_format'] . ' ' . $SETTINGS['time_format'], (int) $record['created_at']).'", ';
1004
+        $sOutput .= '"'.date($SETTINGS['date_format'].' '.$SETTINGS['time_format'], (int) $record['created_at']).'", ';
1005 1005
         //col3
1006 1006
         $sOutput .= is_null($record['started_at']) === false ?
1007
-            ('"'.date($SETTINGS['date_format'] . ' ' . $SETTINGS['time_format'], (int) $record['started_at']).'", ') :
1008
-                ('"'.date($SETTINGS['date_format'] . ' ' . $SETTINGS['time_format'], (int) $record['created_at']).'", ');
1007
+            ('"'.date($SETTINGS['date_format'].' '.$SETTINGS['time_format'], (int) $record['started_at']).'", ') : ('"'.date($SETTINGS['date_format'].' '.$SETTINGS['time_format'], (int) $record['created_at']).'", ');
1009 1008
         //col4
1010
-        $sOutput .= '"'.date($SETTINGS['date_format'] . ' ' . $SETTINGS['time_format'], (int) $record['finished_at']).'", ';
1009
+        $sOutput .= '"'.date($SETTINGS['date_format'].' '.$SETTINGS['time_format'], (int) $record['finished_at']).'", ';
1011 1010
         // col7
1012 1011
         $sOutput .= '"'.gmdate('H:i:s', (int) $record['finished_at'] - (is_null($record['started_at']) === false ? (int) $record['started_at'] : (int) $record['created_at'])).'",';
1013 1012
         //col5
@@ -1026,7 +1025,7 @@  discard block
 block discarded – undo
1026 1025
         $newUserId = array_key_exists('new_user_id', $arguments) ? $arguments['new_user_id'] : null;
1027 1026
         if ($record['process_type'] === 'create_user_keys' && is_null($newUserId) === false && empty($newUserId) === false) {
1028 1027
             $data_user = DB::queryfirstrow(
1029
-                'SELECT name, lastname, login FROM ' . prefixTable('users') . '
1028
+                'SELECT name, lastname, login FROM '.prefixTable('users').'
1030 1029
                 WHERE id = %i',
1031 1030
                 $newUserId
1032 1031
             );
@@ -1042,7 +1041,7 @@  discard block
 block discarded – undo
1042 1041
         } elseif ($record['process_type'] === 'user_build_cache_tree') {
1043 1042
             $user = json_decode($record['arguments'], true)['user_id'];
1044 1043
             $data_user = DB::queryfirstrow(
1045
-                'SELECT name, lastname, login FROM ' . prefixTable('users') . '
1044
+                'SELECT name, lastname, login FROM '.prefixTable('users').'
1046 1045
                 WHERE id = %i',
1047 1046
                 $user
1048 1047
             );
@@ -1076,7 +1075,7 @@  discard block
 block discarded – undo
1076 1075
 {
1077 1076
     $subtasks = DB::query(
1078 1077
         'SELECT *
1079
-        FROM ' . prefixTable('background_subtasks') . '
1078
+        FROM ' . prefixTable('background_subtasks').'
1080 1079
         WHERE task_id = %i',
1081 1080
         $id
1082 1081
     );
@@ -1092,5 +1091,5 @@  discard block
 block discarded – undo
1092 1091
         $i++;
1093 1092
     }
1094 1093
 
1095
-    return ($finished_nb !== 0 ? pourcentage($finished_nb, $nb, 100) : 0) .'%';
1094
+    return ($finished_nb !== 0 ? pourcentage($finished_nb, $nb, 100) : 0).'%';
1096 1095
 }
1097 1096
\ No newline at end of file
Please login to merge, or discard this patch.
index.php 1 patch
Spacing   +180 added lines, -180 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 csrfProtector::init();
74 74
 
75 75
 // Load functions
76
-require_once __DIR__. '/includes/config/include.php';
76
+require_once __DIR__.'/includes/config/include.php';
77 77
 require_once __DIR__.'/sources/main.functions.php';
78 78
 
79 79
 // init
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 }
112 112
 
113 113
 // Load Core library
114
-require_once $SETTINGS['cpassman_dir'] . '/sources/core.php';
114
+require_once $SETTINGS['cpassman_dir'].'/sources/core.php';
115 115
 // Prepare POST variables
116 116
 $post_language = filter_input(INPUT_POST, 'language', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
117 117
 $session_user_language = $session->get('user-language');
@@ -150,8 +150,8 @@  discard block
 block discarded – undo
150 150
     //get default language
151 151
     $dataLanguage = DB::queryFirstRow(
152 152
         'SELECT m.valeur AS valeur, l.flag AS flag
153
-        FROM ' . prefixTable('misc') . ' AS m
154
-        INNER JOIN ' . prefixTable('languages') . ' AS l ON (m.valeur = l.name)
153
+        FROM ' . prefixTable('misc').' AS m
154
+        INNER JOIN ' . prefixTable('languages').' AS l ON (m.valeur = l.name)
155 155
         WHERE m.type=%s_type AND m.intitule=%s_intitule',
156 156
         [
157 157
             'type' => 'admin',
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
         $session_user_language = $SETTINGS['default_language'];
183 183
     }
184 184
 }
185
-$lang = new Language($session_user_language, __DIR__. '/includes/language/'); 
185
+$lang = new Language($session_user_language, __DIR__.'/includes/language/'); 
186 186
 
187 187
 if (isset($SETTINGS['cpassman_dir']) === false || $SETTINGS['cpassman_dir'] === '') {
188 188
     $SETTINGS['cpassman_dir'] = __DIR__;
@@ -256,29 +256,29 @@  discard block
 block discarded – undo
256 256
     </script>
257 257
 
258 258
     <!-- IonIcons -->
259
-    <link rel="stylesheet" href="includes/css/ionicons.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
259
+    <link rel="stylesheet" href="includes/css/ionicons.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
260 260
     <!-- Theme style -->
261
-    <link rel="stylesheet" href="plugins/adminlte/css/adminlte.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
262
-    <link rel="stylesheet" href="plugins/pace-progress/themes/corner-indicator.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" type="text/css" />
263
-    <link rel="stylesheet" href="plugins/select2/css/select2.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" type="text/css" />
264
-    <link rel="stylesheet" href="plugins/select2/theme/select2-bootstrap4.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" type="text/css" />
261
+    <link rel="stylesheet" href="plugins/adminlte/css/adminlte.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
262
+    <link rel="stylesheet" href="plugins/pace-progress/themes/corner-indicator.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" type="text/css" />
263
+    <link rel="stylesheet" href="plugins/select2/css/select2.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" type="text/css" />
264
+    <link rel="stylesheet" href="plugins/select2/theme/select2-bootstrap4.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" type="text/css" />
265 265
     <!-- Theme style -->
266
-    <link rel="stylesheet" href="includes/css/teampass.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
266
+    <link rel="stylesheet" href="includes/css/teampass.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
267 267
     <!-- Google Font: Source Sans Pro -->
268
-    <link rel="stylesheet" type="text/css" href="includes/fonts/fonts.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
268
+    <link rel="stylesheet" type="text/css" href="includes/fonts/fonts.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
269 269
     <!-- Altertify -->
270
-    <link rel="stylesheet" href="plugins/alertifyjs/css/alertify.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" />
271
-    <link rel="stylesheet" href="plugins/alertifyjs/css/themes/bootstrap.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" />
270
+    <link rel="stylesheet" href="plugins/alertifyjs/css/alertify.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" />
271
+    <link rel="stylesheet" href="plugins/alertifyjs/css/themes/bootstrap.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" />
272 272
     <!-- Toastr -->
273
-    <link rel="stylesheet" href="plugins/toastr/toastr.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" />
273
+    <link rel="stylesheet" href="plugins/toastr/toastr.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" />
274 274
     <!-- favicon -->
275
-    <link rel="shortcut icon" type="image/png" href="<?php echo $favicon;?>"/>
275
+    <link rel="shortcut icon" type="image/png" href="<?php echo $favicon; ?>"/>
276 276
     <!-- manifest (PWA) -->
277
-    <link rel="manifest" href="manifest.json?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
277
+    <link rel="manifest" href="manifest.json?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
278 278
     <!-- Custom style -->
279 279
     <?php
280
-    if (file_exists(__DIR__ . '/includes/css/custom.css') === true) {?>
281
-        <link rel="stylesheet" href="includes/css/custom.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
280
+    if (file_exists(__DIR__.'/includes/css/custom.css') === true) {?>
281
+        <link rel="stylesheet" href="includes/css/custom.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
282 282
     <?php
283 283
     } ?>
284 284
 </head>
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
                         <div class="dropdown show">
327 327
                             <a class="btn btn-primary dropdown-toggle" href="#" data-toggle="dropdown">
328 328
                                 <?php
329
-                                    echo $session_name . '&nbsp;' . $session_lastname; ?>
329
+                                    echo $session_name.'&nbsp;'.$session_lastname; ?>
330 330
                             </a>
331 331
 
332 332
                             <div class="dropdown-menu dropdown-menu-right">
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
                                     </a>
351 351
                                 <?php
352 352
                                     } ?>
353
-                                <a class="dropdown-item user-menu<?php echo (int) $session_user_admin === 1 ? ' hidden' : '';?>" href="#" data-name="generate-new_keys">
353
+                                <a class="dropdown-item user-menu<?php echo (int) $session_user_admin === 1 ? ' hidden' : ''; ?>" href="#" data-name="generate-new_keys">
354 354
                                     <i class="fa-solid fa-spray-can-sparkles fa-fw mr-2"></i><?php echo $lang->get('generate_new_keys'); ?>
355 355
                                 </a>
356 356
 
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
             <!-- Main Sidebar Container -->
385 385
             <aside class="main-sidebar sidebar-dark-primary elevation-4">
386 386
                 <!-- Brand Logo -->
387
-                <a href="<?php echo $cpassman_url . '/index.php?page=' . ((int) $session_user_admin === 1 ? 'admin' : 'items'); ?>" class="brand-link">
387
+                <a href="<?php echo $cpassman_url.'/index.php?page='.((int) $session_user_admin === 1 ? 'admin' : 'items'); ?>" class="brand-link">
388 388
                     <img src="includes/images/teampass-logo2-home.png" alt="Teampass Logo" class="brand-image">
389 389
                     <span class="brand-text font-weight-light"><?php echo TP_TOOL_NAME; ?></span>
390 390
                 </a>
@@ -402,20 +402,20 @@  discard block
 block discarded – undo
402 402
                         <a href="#" data-name="items" class="nav-link', $get['page'] === 'items' ? ' active' : '', '">
403 403
                         <i class="nav-icon fa-solid fa-key"></i>
404 404
                         <p>
405
-                            ' . $lang->get('pw') . '
405
+                            ' . $lang->get('pw').'
406 406
                         </p>
407 407
                         </a>
408 408
                     </li>';
409 409
                                 }
410 410
 
411 411
     // IMPORT menu
412
-    if (isset($SETTINGS['allow_import']) === true && (int) $SETTINGS['allow_import'] === 1&& $session_user_admin === 0) {
412
+    if (isset($SETTINGS['allow_import']) === true && (int) $SETTINGS['allow_import'] === 1 && $session_user_admin === 0) {
413 413
         echo '
414 414
                     <li class="nav-item">
415 415
                         <a href="#" data-name="import" class="nav-link', $get['page'] === 'import' ? ' active' : '', '">
416 416
                         <i class="nav-icon fa-solid fa-file-import"></i>
417 417
                         <p>
418
-                            ' . $lang->get('import') . '
418
+                            ' . $lang->get('import').'
419 419
                         </p>
420 420
                         </a>
421 421
                     </li>';
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
                         <a href="#" data-name="export" class="nav-link', $get['page'] === 'export' ? ' active' : '', '">
437 437
                         <i class="nav-icon fa-solid fa-file-export"></i>
438 438
                         <p>
439
-                            ' . $lang->get('export') . '
439
+                            ' . $lang->get('export').'
440 440
                         </p>
441 441
                         </a>
442 442
                     </li>';
@@ -463,7 +463,7 @@  discard block
 block discarded – undo
463 463
                         <a href="#" data-name="search" class="nav-link', $get['page'] === 'search' ? ' active' : '', '">
464 464
                         <i class="nav-icon fa-solid fa-search"></i>
465 465
                         <p>
466
-                            ' . $lang->get('find') . '
466
+                            ' . $lang->get('find').'
467 467
                         </p>
468 468
                         </a>
469 469
                     </li>';
@@ -479,7 +479,7 @@  discard block
 block discarded – undo
479 479
                         <a href="#" data-name="favourites" class="nav-link', $get['page'] === 'favourites' ? ' active' : '', '">
480 480
                         <i class="nav-icon fa-solid fa-star"></i>
481 481
                         <p>
482
-                            ' . $lang->get('favorites') . '
482
+                            ' . $lang->get('favorites').'
483 483
                         </p>
484 484
                         </a>
485 485
                     </li>';
@@ -509,7 +509,7 @@  discard block
 block discarded – undo
509 509
                         <a href="#" data-name="suggestion" class="nav-link', $get['page'] === 'suggestion' ? ' active' : '', '">
510 510
                         <i class="nav-icon fa-solid fa-lightbulb"></i>
511 511
                         <p>
512
-                            ' . $lang->get('suggestion_menu') . '
512
+                            ' . $lang->get('suggestion_menu').'
513 513
                         </p>
514 514
                         </a>
515 515
                     </li>';
@@ -522,7 +522,7 @@  discard block
 block discarded – undo
522 522
                         <a href="#" data-name="admin" class="nav-link', $get['page'] === 'admin' ? ' active' : '', '">
523 523
                         <i class="nav-icon fa-solid fa-info"></i>
524 524
                         <p>
525
-                            ' . $lang->get('admin_main') . '
525
+                            ' . $lang->get('admin_main').'
526 526
                         </p>
527 527
                         </a>
528 528
                     </li>
@@ -530,7 +530,7 @@  discard block
 block discarded – undo
530 530
                         <a href="#" class="nav-link">
531 531
                             <i class="nav-icon fa-solid fa-wrench"></i>
532 532
                             <p>
533
-                                ' . $lang->get('admin_settings') . '
533
+                                ' . $lang->get('admin_settings').'
534 534
                                 <i class="fa-solid fa-angle-left right"></i>
535 535
                             </p>
536 536
                         </a>
@@ -538,63 +538,63 @@  discard block
 block discarded – undo
538 538
                             <li class="nav-item">
539 539
                                 <a href="#" data-name="options" class="nav-link', $get['page'] === 'options' ? ' active' : '', '">
540 540
                                     <i class="fa-solid fa-check-double nav-icon"></i>
541
-                                    <p>' . $lang->get('options') . '</p>
541
+                                    <p>' . $lang->get('options').'</p>
542 542
                                 </a>
543 543
                             </li>
544 544
                             <li class="nav-item">
545 545
                                 <a href="#" data-name="2fa" class="nav-link', $get['page'] === '2fa' ? ' active' : '', '">
546 546
                                     <i class="fa-solid fa-qrcode nav-icon"></i>
547
-                                    <p>' . $lang->get('mfa_short') . '</p>
547
+                                    <p>' . $lang->get('mfa_short').'</p>
548 548
                                 </a>
549 549
                             </li>
550 550
                             <li class="nav-item">
551 551
                                 <a href="#" data-name="api" class="nav-link', $get['page'] === 'api' ? ' active' : '', '">
552 552
                                     <i class="fa-solid fa-cubes nav-icon"></i>
553
-                                    <p>' . $lang->get('api') . '</p>
553
+                                    <p>' . $lang->get('api').'</p>
554 554
                                 </a>
555 555
                             </li>
556 556
                             <li class="nav-item">
557 557
                                 <a href="#" data-name="backups" class="nav-link', $get['page'] === 'backups' ? ' active' : '', '">
558 558
                                     <i class="fa-solid fa-database nav-icon"></i>
559
-                                    <p>' . $lang->get('backups') . '</p>
559
+                                    <p>' . $lang->get('backups').'</p>
560 560
                                 </a>
561 561
                             </li>
562 562
                             <li class="nav-item">
563 563
                                 <a href="#" data-name="emails" class="nav-link', $get['page'] === 'emails' ? ' active' : '', '">
564 564
                                     <i class="fa-solid fa-envelope nav-icon"></i>
565
-                                    <p>' . $lang->get('emails') . '</p>
565
+                                    <p>' . $lang->get('emails').'</p>
566 566
                                 </a>
567 567
                             </li>
568 568
                             <li class="nav-item">
569 569
                                 <a href="#" data-name="fields" class="nav-link', $get['page'] === 'fields' ? ' active' : '', '">
570 570
                                     <i class="fa-solid fa-keyboard nav-icon"></i>
571
-                                    <p>' . $lang->get('fields') . '</p>
571
+                                    <p>' . $lang->get('fields').'</p>
572 572
                                 </a>
573 573
                             </li>
574 574
                             <li class="nav-item">
575 575
                                 <a href="#" data-name="ldap" class="nav-link', $get['page'] === 'ldap' ? ' active' : '', '">
576 576
                                     <i class="fa-solid fa-id-card nav-icon"></i>
577
-                                    <p>' . $lang->get('ldap') . '</p>
577
+                                    <p>' . $lang->get('ldap').'</p>
578 578
                                 </a>
579 579
                             </li>
580 580
 
581 581
                             <li class="nav-item">
582 582
                                 <a href="#" data-name="oauth" class="nav-link', $get['page'] === 'oauth' ? ' active' : '', '">
583 583
                                     <i class="fa-solid fa-plug nav-icon"></i>
584
-                                    <p>' . $lang->get('oauth') . '</p>
584
+                                    <p>' . $lang->get('oauth').'</p>
585 585
                                 </a>
586 586
                             </li>
587 587
                             
588 588
                             <li class="nav-item">
589 589
                                 <a href="#" data-name="uploads" class="nav-link', $get['page'] === 'uploads' ? ' active' : '', '">
590 590
                                     <i class="fa-solid fa-file-upload nav-icon"></i>
591
-                                    <p>' . $lang->get('uploads') . '</p>
591
+                                    <p>' . $lang->get('uploads').'</p>
592 592
                                 </a>
593 593
                             </li>
594 594
                             <li class="nav-item">
595 595
                                 <a href="#" data-name="statistics" class="nav-link', $get['page'] === 'statistics' ? ' active' : '', '">
596 596
                                     <i class="fa-solid fa-chart-bar nav-icon"></i>
597
-                                    <p>' . $lang->get('statistics') . '</p>
597
+                                    <p>' . $lang->get('statistics').'</p>
598 598
                                 </a>
599 599
                             </li>
600 600
                         </ul>
@@ -605,7 +605,7 @@  discard block
 block discarded – undo
605 605
                     <li class="nav-item">
606 606
                         <a href="#" data-name="tasks" class="nav-link', $get['page'] === 'tasks' ? ' active' : '', '">
607 607
                         <i class="fa-solid fa-tasks nav-icon"></i>
608
-                        <p>' . $lang->get('tasks') . '</p>
608
+                        <p>' . $lang->get('tasks').'</p>
609 609
                         </a>
610 610
                     </li>';
611 611
         }
@@ -616,7 +616,7 @@  discard block
 block discarded – undo
616 616
                         <a href="#" data-name="tools" class="nav-link', $get['page'] === 'tools' ? ' active' : '', '">
617 617
                         <i class="nav-icon fa-solid fa-screwdriver-wrench"></i>
618 618
                         <p>
619
-                            ' . $lang->get('tools') . '
619
+                            ' . $lang->get('tools').'
620 620
                         </p>
621 621
                         </a>
622 622
                     </li>';
@@ -633,7 +633,7 @@  discard block
 block discarded – undo
633 633
                         <a href="#" data-name="folders" class="nav-link', $get['page'] === 'folders' ? ' active' : '', '">
634 634
                         <i class="nav-icon fa-solid fa-folder-open"></i>
635 635
                         <p>
636
-                            ' . $lang->get('folders') . '
636
+                            ' . $lang->get('folders').'
637 637
                         </p>
638 638
                         </a>
639 639
                     </li>
@@ -641,7 +641,7 @@  discard block
 block discarded – undo
641 641
                         <a href="#" data-name="roles" class="nav-link', $get['page'] === 'roles' ? ' active' : '', '">
642 642
                         <i class="nav-icon fa-solid fa-graduation-cap"></i>
643 643
                         <p>
644
-                            ' . $lang->get('roles') . '
644
+                            ' . $lang->get('roles').'
645 645
                         </p>
646 646
                         </a>
647 647
                     </li>
@@ -649,38 +649,38 @@  discard block
 block discarded – undo
649 649
                         <a href="#" data-name="users" class="nav-link', $get['page'] === 'users' ? ' active' : '', '">
650 650
                         <i class="nav-icon fa-solid fa-users"></i>
651 651
                         <p>
652
-                            ' . $lang->get('users') . '
652
+                            ' . $lang->get('users').'
653 653
                         </p>
654 654
                         </a>
655 655
                     </li>
656 656
                     <li class="nav-item has-treeview', $menuUtilities === true ? ' menu-open' : '', '">
657 657
                         <a href="#" class="nav-link">
658 658
                         <i class="nav-icon fa-solid fa-cubes"></i>
659
-                        <p>' . $lang->get('admin_views') . '<i class="fa-solid fa-angle-left right"></i></p>
659
+                        <p>' . $lang->get('admin_views').'<i class="fa-solid fa-angle-left right"></i></p>
660 660
                         </a>
661 661
                         <ul class="nav nav-treeview">
662 662
                             <li class="nav-item">
663 663
                                 <a href="#" data-name="utilities.renewal" class="nav-link', $get['page'] === 'utilities.renewal' ? ' active' : '', '">
664 664
                                 <i class="far fa-calendar-alt nav-icon"></i>
665
-                                <p>' . $lang->get('renewal') . '</p>
665
+                                <p>' . $lang->get('renewal').'</p>
666 666
                                 </a>
667 667
                             </li>
668 668
                             <li class="nav-item">
669 669
                                 <a href="#" data-name="utilities.deletion" class="nav-link', $get['page'] === 'utilities.deletion' ? ' active' : '', '">
670 670
                                 <i class="fa-solid fa-trash-alt nav-icon"></i>
671
-                                <p>' . $lang->get('deletion') . '</p>
671
+                                <p>' . $lang->get('deletion').'</p>
672 672
                                 </a>
673 673
                             </li>
674 674
                             <li class="nav-item">
675 675
                                 <a href="#" data-name="utilities.logs" class="nav-link', $get['page'] === 'utilities.logs' ? ' active' : '', '">
676 676
                                 <i class="fa-solid fa-history nav-icon"></i>
677
-                                <p>' . $lang->get('logs') . '</p>
677
+                                <p>' . $lang->get('logs').'</p>
678 678
                                 </a>
679 679
                             </li>
680 680
                             <li class="nav-item">
681 681
                                 <a href="#" data-name="utilities.database" class="nav-link', $get['page'] === 'utilities.database' ? ' active' : '', '">
682 682
                                 <i class="fa-solid fa-database nav-icon"></i>
683
-                                <p>' . $lang->get('database') . '</p>
683
+                                <p>' . $lang->get('database').'</p>
684 684
                                 </a>
685 685
                             </li>
686 686
                         </ul>
@@ -691,10 +691,10 @@  discard block
 block discarded – undo
691 691
                     <!-- /.sidebar-menu -->
692 692
                 <div class="menu-footer">
693 693
                     <div class="" id="sidebar-footer">
694
-                        <i class="fa-solid fa-clock-o mr-2 infotip text-info pointer" title="<?php echo htmlspecialchars($lang->get('server_time') . ' ' .
695
-                            date($date_format, (int) $server['request_time']) . ' - ' .
694
+                        <i class="fa-solid fa-clock-o mr-2 infotip text-info pointer" title="<?php echo htmlspecialchars($lang->get('server_time').' '.
695
+                            date($date_format, (int) $server['request_time']).' - '.
696 696
                             date($time_format, (int) $server['request_time']), ENT_QUOTES, 'UTF-8'); ?>"></i>
697
-                        <i class="fa-solid fa-users mr-2 infotip text-info pointer" title="<?php echo $session_nb_users_online . ' ' . $lang->get('users_online'); ?>"></i>
697
+                        <i class="fa-solid fa-users mr-2 infotip text-info pointer" title="<?php echo $session_nb_users_online.' '.$lang->get('users_online'); ?>"></i>
698 698
                         <a href="<?php echo DOCUMENTATION_URL; ?>" target="_blank" class="text-info"><i class="fa-solid fa-book mr-2 infotip" title="<?php echo $lang->get('documentation_canal'); ?>"></i></a>
699 699
                         <a href="<?php echo HELP_URL; ?>" target="_blank" class="text-info"><i class="fa-solid fa-life-ring mr-2 infotip" title="<?php echo $lang->get('admin_help'); ?>"></i></a>
700 700
                         <?php if ($session_user_admin === 1) : ?><i class="fa-solid fa-bug infotip pointer text-info" title="<?php echo $lang->get('bugs_page'); ?>" onclick="generateBugReport()"></i><?php endif; ?>
@@ -843,7 +843,7 @@  discard block
 block discarded – undo
843 843
                                 </div>
844 844
                                 <div class="mt-3">                                    
845 845
                                     <label>
846
-                                        <span class="mr-2 pointer fw-normal"><i class="fa-solid fa-eye mr-2 text-orange"></i><?php echo $lang->get('show_user_password');?></span>
846
+                                        <span class="mr-2 pointer fw-normal"><i class="fa-solid fa-eye mr-2 text-orange"></i><?php echo $lang->get('show_user_password'); ?></span>
847 847
                                         <input type="checkbox" id="dialog-admin-change-user-password-do-show-password" class="pointer">
848 848
                                     </label>
849 849
                                 </div>
@@ -1002,34 +1002,34 @@  discard block
 block discarded – undo
1002 1002
                     if ($get['page'] === 'items') {
1003 1003
                         // SHow page with Items
1004 1004
                         if ((int) $session_user_admin !== 1) {
1005
-                            include $SETTINGS['cpassman_dir'] . '/pages/items.php';
1005
+                            include $SETTINGS['cpassman_dir'].'/pages/items.php';
1006 1006
                         } elseif ((int) $session_user_admin === 1) {
1007
-                            include $SETTINGS['cpassman_dir'] . '/pages/admin.php';
1007
+                            include $SETTINGS['cpassman_dir'].'/pages/admin.php';
1008 1008
                         } else {
1009 1009
                             $session->set('system-error_code', ERR_NOT_ALLOWED);
1010 1010
                             //not allowed page
1011
-                            include $SETTINGS['cpassman_dir'] . '/error.php';
1011
+                            include $SETTINGS['cpassman_dir'].'/error.php';
1012 1012
                         }
1013 1013
                     } elseif (in_array($get['page'], array_keys($mngPages)) === true) {
1014 1014
                         // Define if user is allowed to see management pages
1015 1015
                         if ($session_user_admin === 1) {
1016 1016
                             // deepcode ignore FileInclusion: $get['page'] is secured through usage of array_keys test bellow
1017
-                            include $SETTINGS['cpassman_dir'] . '/pages/' . basename($mngPages[$get['page']]);
1017
+                            include $SETTINGS['cpassman_dir'].'/pages/'.basename($mngPages[$get['page']]);
1018 1018
                         } elseif ($session_user_manager === 1 || $session_user_human_resources === 1) {
1019 1019
                             if ($get['page'] === 'manage_main' || $get['page'] === 'manage_settings'
1020 1020
                             ) {
1021 1021
                                 $session->set('system-error_code', ERR_NOT_ALLOWED);
1022 1022
                                 //not allowed page
1023
-                                include $SETTINGS['cpassman_dir'] . '/error.php';
1023
+                                include $SETTINGS['cpassman_dir'].'/error.php';
1024 1024
                             }
1025 1025
                         } else {
1026 1026
                             $session->set('system-error_code', ERR_NOT_ALLOWED);
1027 1027
                             //not allowed page
1028
-                            include $SETTINGS['cpassman_dir'] . '/error.php';
1028
+                            include $SETTINGS['cpassman_dir'].'/error.php';
1029 1029
                         }
1030
-                    } elseif (empty($get['page']) === false && file_exists($SETTINGS['cpassman_dir'] . '/pages/' . $get['page'] . '.php') === true) {
1030
+                    } elseif (empty($get['page']) === false && file_exists($SETTINGS['cpassman_dir'].'/pages/'.$get['page'].'.php') === true) {
1031 1031
                         // deepcode ignore FileInclusion: $get['page'] is tested against file_exists just below
1032
-                        include $SETTINGS['cpassman_dir'] . '/pages/' . basename($get['page'] . '.php');
1032
+                        include $SETTINGS['cpassman_dir'].'/pages/'.basename($get['page'].'.php');
1033 1033
                     } else {
1034 1034
                         $session->set('system-array_roles', ERR_NOT_EXIST);
1035 1035
                         //page doesn't exist
@@ -1065,7 +1065,7 @@  discard block
 block discarded – undo
1065 1065
             <footer class="main-footer">
1066 1066
                 <!-- To the right -->
1067 1067
                 <div class="float-right d-none d-sm-inline">
1068
-                    <?php echo $lang->get('version_alone'); ?>&nbsp;<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>
1068
+                    <?php echo $lang->get('version_alone'); ?>&nbsp;<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>
1069 1069
                 </div>
1070 1070
                 <!-- Default to the left -->
1071 1071
                 <strong>Copyright &copy; <?php echo TP_COPYRIGHT; ?> <a href="<?php echo TEAMPASS_URL; ?>"><?php echo TP_TOOL_NAME; ?></a>.</strong> All rights reserved.
@@ -1079,7 +1079,7 @@  discard block
 block discarded – undo
1079 1079
         echo '
1080 1080
 <input type="hidden" id="temps_restant" value="', $session->get('user-session_duration') ?? '', '" />';
1081 1081
 // display an item in the context of OTV link
1082
-} elseif ((null === $session->get('user-validite_pw')|| empty($session->get('user-validite_pw')) === true || empty($session->get('user-id')) === true)
1082
+} elseif ((null === $session->get('user-validite_pw') || empty($session->get('user-validite_pw')) === true || empty($session->get('user-id')) === true)
1083 1083
     && empty($get['otv']) === false
1084 1084
 ) {
1085 1085
     // case where one-shot viewer
@@ -1098,7 +1098,7 @@  discard block
 block discarded – undo
1098 1098
                 FILTER_SANITIZE_URL
1099 1099
             )
1100 1100
         );
1101
-        include $SETTINGS['cpassman_dir'] . '/error.php';
1101
+        include $SETTINGS['cpassman_dir'].'/error.php';
1102 1102
     }
1103 1103
 } elseif (//(empty($session->get('user-id')) === false && $session->get('user-id') !== null) ||
1104 1104
         empty($session->get('user-id')) === true
@@ -1130,7 +1130,7 @@  discard block
 block discarded – undo
1130 1130
     }
1131 1131
     
1132 1132
     // LOGIN form  
1133
-    include $SETTINGS['cpassman_dir'] . '/includes/core/login.php';
1133
+    include $SETTINGS['cpassman_dir'].'/includes/core/login.php';
1134 1134
     
1135 1135
 } else {
1136 1136
     // Clear session
@@ -1163,155 +1163,155 @@  discard block
 block discarded – undo
1163 1163
     <!-- REQUIRED SCRIPTS -->
1164 1164
 
1165 1165
     <!-- Font Awesome Icons -->
1166
-    <link href="plugins/fontawesome-free-6/css/fontawesome.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" rel="stylesheet">
1167
-    <link href="plugins/fontawesome-free-6/css/solid.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" rel="stylesheet">
1168
-    <link href="plugins/fontawesome-free-6/css/regular.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" rel="stylesheet">
1169
-    <link href="plugins/fontawesome-free-6/css/brands.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" rel="stylesheet">
1170
-    <link href="plugins/fontawesome-free-6/css/v5-font-face.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" rel="stylesheet" /> 
1166
+    <link href="plugins/fontawesome-free-6/css/fontawesome.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" rel="stylesheet">
1167
+    <link href="plugins/fontawesome-free-6/css/solid.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" rel="stylesheet">
1168
+    <link href="plugins/fontawesome-free-6/css/regular.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" rel="stylesheet">
1169
+    <link href="plugins/fontawesome-free-6/css/brands.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" rel="stylesheet">
1170
+    <link href="plugins/fontawesome-free-6/css/v5-font-face.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" rel="stylesheet" /> 
1171 1171
     <!-- jQuery -->
1172
-    <script src="plugins/jquery/jquery.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1173
-    <script src="plugins/jquery/jquery.cookie.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" type="text/javascript"></script>
1172
+    <script src="plugins/jquery/jquery.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1173
+    <script src="plugins/jquery/jquery.cookie.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" type="text/javascript"></script>
1174 1174
     <!-- jQuery UI -->
1175
-    <script src="plugins/jqueryUI/jquery-ui.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1176
-    <link rel="stylesheet" href="plugins/jqueryUI/jquery-ui.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
1175
+    <script src="plugins/jqueryUI/jquery-ui.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1176
+    <link rel="stylesheet" href="plugins/jqueryUI/jquery-ui.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
1177 1177
     <!-- Popper -->
1178
-    <script src="plugins/popper/umd/popper.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1178
+    <script src="plugins/popper/umd/popper.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1179 1179
     <!-- Bootstrap -->
1180
-    <script src="plugins/bootstrap/js/bootstrap.bundle.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1180
+    <script src="plugins/bootstrap/js/bootstrap.bundle.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1181 1181
     <!-- AdminLTE -->
1182
-    <script src="plugins/adminlte/js/adminlte.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1182
+    <script src="plugins/adminlte/js/adminlte.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1183 1183
     <!-- Altertify -->
1184 1184
     <!--<script type="text/javascript" src="plugins/alertifyjs/alertify.min.js"></script>-->
1185 1185
     <!-- Toastr -->
1186
-    <script type="text/javascript" src="plugins/toastr/toastr.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1186
+    <script type="text/javascript" src="plugins/toastr/toastr.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1187 1187
     <!-- STORE.JS -->
1188
-    <script type="text/javascript" src="plugins/store.js/dist/store.everything.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1188
+    <script type="text/javascript" src="plugins/store.js/dist/store.everything.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1189 1189
     <!-- cryptojs-aesphp -->
1190
-    <script type="text/javascript" src="includes/libraries/cryptojs/crypto-js.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1191
-    <script type="text/javascript" src="includes/libraries/cryptojs/encryption.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1190
+    <script type="text/javascript" src="includes/libraries/cryptojs/crypto-js.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1191
+    <script type="text/javascript" src="includes/libraries/cryptojs/encryption.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1192 1192
     <!-- pace -->
1193
-    <script type="text/javascript" data-pace-options='{ "ajax": true, "eventLag": false }' src="plugins/pace-progress/pace.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1193
+    <script type="text/javascript" data-pace-options='{ "ajax": true, "eventLag": false }' src="plugins/pace-progress/pace.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1194 1194
     <!-- clipboardjs -->
1195
-    <script type="text/javascript" src="plugins/clipboard/clipboard.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1195
+    <script type="text/javascript" src="plugins/clipboard/clipboard.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1196 1196
     <!-- select2 -->
1197
-    <script type="text/javascript" src="plugins/select2/js/select2.full.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1197
+    <script type="text/javascript" src="plugins/select2/js/select2.full.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1198 1198
     <!-- simplePassMeter -->
1199
-    <link rel="stylesheet" href="plugins/simplePassMeter/simplePassMeter.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" type="text/css" />
1200
-    <script type="text/javascript" src="plugins/simplePassMeter/simplePassMeter.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1199
+    <link rel="stylesheet" href="plugins/simplePassMeter/simplePassMeter.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" type="text/css" />
1200
+    <script type="text/javascript" src="plugins/simplePassMeter/simplePassMeter.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1201 1201
     <!-- platform -->
1202
-    <script type="text/javascript" src="plugins/platform/platform.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1202
+    <script type="text/javascript" src="plugins/platform/platform.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1203 1203
     <!-- radiobuttons -->
1204
-    <link rel="stylesheet" href="plugins/radioforbuttons/bootstrap-buttons.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" type="text/css" />
1205
-    <script type="text/javascript" src="plugins/radioforbuttons/jquery.radiosforbuttons.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1204
+    <link rel="stylesheet" href="plugins/radioforbuttons/bootstrap-buttons.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" type="text/css" />
1205
+    <script type="text/javascript" src="plugins/radioforbuttons/jquery.radiosforbuttons.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1206 1206
     <!-- ICHECK -->
1207 1207
     <!--<link rel="stylesheet" href="./plugins/icheck-material/icheck-material.min.css">-->
1208
-    <link rel="stylesheet" href="./plugins/icheck/skins/all.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
1209
-    <script type="text/javascript" src="./plugins/icheck/icheck.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1208
+    <link rel="stylesheet" href="./plugins/icheck/skins/all.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
1209
+    <script type="text/javascript" src="./plugins/icheck/icheck.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1210 1210
     <!-- bootstrap-add-clear -->
1211
-    <script type="text/javascript" src="plugins/bootstrap-add-clear/bootstrap-add-clear.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1211
+    <script type="text/javascript" src="plugins/bootstrap-add-clear/bootstrap-add-clear.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1212 1212
     <!-- DOMPurify -->
1213
-    <script type="text/javascript" src="plugins/DOMPurify/purify.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1213
+    <script type="text/javascript" src="plugins/DOMPurify/purify.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1214 1214
 
1215 1215
     <?php
1216 1216
     $get['page'] = $request->query->filter('page', null, FILTER_SANITIZE_SPECIAL_CHARS);
1217 1217
     if ($menuAdmin === true) {
1218 1218
         ?>
1219
-        <link rel="stylesheet" href="./plugins/toggles/css/toggles.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" />
1220
-        <link rel="stylesheet" href="./plugins/toggles/css/toggles-modern.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" />
1221
-        <script src="./plugins/toggles/toggles.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" type="text/javascript"></script>
1219
+        <link rel="stylesheet" href="./plugins/toggles/css/toggles.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" />
1220
+        <link rel="stylesheet" href="./plugins/toggles/css/toggles-modern.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" />
1221
+        <script src="./plugins/toggles/toggles.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" type="text/javascript"></script>
1222 1222
         <!-- InputMask -->
1223
-        <script src="./plugins/inputmask/jquery.inputmask.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1223
+        <script src="./plugins/inputmask/jquery.inputmask.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1224 1224
         <!-- Sortable -->
1225 1225
         <!--<script src="./plugins/sortable/jquery.sortable.js"></script>-->
1226 1226
         <!-- PLUPLOAD -->
1227
-        <script type="text/javascript" src="plugins/plupload/js/plupload.full.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1227
+        <script type="text/javascript" src="plugins/plupload/js/plupload.full.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1228 1228
         <!-- DataTables -->
1229
-        <link rel="stylesheet" src="./plugins/datatables/css/jquery.dataTables.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
1230
-        <link rel="stylesheet" src="./plugins/datatables/css/dataTables.bootstrap4.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
1231
-        <script type="text/javascript" src="./plugins/datatables/js/jquery.dataTables.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1232
-        <script type="text/javascript" src="./plugins/datatables/js/dataTables.bootstrap4.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1233
-        <link rel="stylesheet" src="./plugins/datatables/extensions/Responsive-2.2.2/css/responsive.bootstrap4.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
1234
-        <script type="text/javascript" src="./plugins/datatables/extensions/Responsive-2.2.2/js/dataTables.responsive.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1235
-        <script type="text/javascript" src="./plugins/datatables/extensions/Responsive-2.2.2/js/responsive.bootstrap4.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1236
-        <script type="text/javascript" src="./plugins/datatables/plugins/select.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1237
-        <link rel="stylesheet" src="./plugins/datatables/extensions/Scroller-1.5.0/css/scroller.bootstrap4.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
1238
-        <script type="text/javascript" src="./plugins/datatables/extensions/Scroller-1.5.0/js/dataTables.scroller.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1229
+        <link rel="stylesheet" src="./plugins/datatables/css/jquery.dataTables.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
1230
+        <link rel="stylesheet" src="./plugins/datatables/css/dataTables.bootstrap4.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
1231
+        <script type="text/javascript" src="./plugins/datatables/js/jquery.dataTables.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1232
+        <script type="text/javascript" src="./plugins/datatables/js/dataTables.bootstrap4.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1233
+        <link rel="stylesheet" src="./plugins/datatables/extensions/Responsive-2.2.2/css/responsive.bootstrap4.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
1234
+        <script type="text/javascript" src="./plugins/datatables/extensions/Responsive-2.2.2/js/dataTables.responsive.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1235
+        <script type="text/javascript" src="./plugins/datatables/extensions/Responsive-2.2.2/js/responsive.bootstrap4.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1236
+        <script type="text/javascript" src="./plugins/datatables/plugins/select.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1237
+        <link rel="stylesheet" src="./plugins/datatables/extensions/Scroller-1.5.0/css/scroller.bootstrap4.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
1238
+        <script type="text/javascript" src="./plugins/datatables/extensions/Scroller-1.5.0/js/dataTables.scroller.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1239 1239
     <?php
1240 1240
     } elseif (isset($get['page']) === true) {
1241 1241
         if (in_array($get['page'], ['items', 'import']) === true) {
1242 1242
             ?>
1243
-            <link rel="stylesheet" href="./plugins/jstree/themes/default/style.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" />
1244
-            <link rel="stylesheet" href="./plugins/jstree/themes/default-dark/style.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" />
1245
-            <script src="./plugins/jstree/jstree.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" type="text/javascript"></script>
1243
+            <link rel="stylesheet" href="./plugins/jstree/themes/default/style.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" />
1244
+            <link rel="stylesheet" href="./plugins/jstree/themes/default-dark/style.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" />
1245
+            <script src="./plugins/jstree/jstree.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" type="text/javascript"></script>
1246 1246
             <!-- countdownTimer -->
1247
-            <script src="./plugins/jquery.countdown360/jquery.countdown360.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1247
+            <script src="./plugins/jquery.countdown360/jquery.countdown360.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1248 1248
             <!-- SUMMERNOTE -->
1249
-            <link rel="stylesheet" href="./plugins/summernote/summernote-bs4.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
1250
-            <script src="./plugins/summernote/summernote-bs4.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1249
+            <link rel="stylesheet" href="./plugins/summernote/summernote-bs4.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
1250
+            <script src="./plugins/summernote/summernote-bs4.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1251 1251
             <!-- date-picker -->
1252
-            <link rel="stylesheet" href="./plugins/bootstrap-datepicker/css/bootstrap-datepicker3.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
1253
-            <script src="./plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1252
+            <link rel="stylesheet" href="./plugins/bootstrap-datepicker/css/bootstrap-datepicker3.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
1253
+            <script src="./plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1254 1254
             <!-- time-picker -->
1255
-            <link rel="stylesheet" href="./plugins/timepicker/bootstrap-timepicker.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
1256
-            <script src="./plugins/timepicker/bootstrap-timepicker.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1255
+            <link rel="stylesheet" href="./plugins/timepicker/bootstrap-timepicker.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
1256
+            <script src="./plugins/timepicker/bootstrap-timepicker.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1257 1257
             <!-- PLUPLOAD -->
1258
-            <script type="text/javascript" src="plugins/plupload/js/plupload.full.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1258
+            <script type="text/javascript" src="plugins/plupload/js/plupload.full.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1259 1259
             <!-- VALIDATE -->
1260
-            <script type="text/javascript" src="plugins/jquery-validation/jquery.validate.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1260
+            <script type="text/javascript" src="plugins/jquery-validation/jquery.validate.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1261 1261
             <!-- PWSTRENGHT -->
1262
-            <script type="text/javascript" src="plugins/zxcvbn/zxcvbn.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1263
-            <script type="text/javascript" src="plugins/jquery.pwstrength/pwstrength-bootstrap.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1262
+            <script type="text/javascript" src="plugins/zxcvbn/zxcvbn.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1263
+            <script type="text/javascript" src="plugins/jquery.pwstrength/pwstrength-bootstrap.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1264 1264
             <!-- TOGGLE -->
1265
-            <link rel="stylesheet" href="./plugins/toggles/css/toggles.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" />
1266
-            <link rel="stylesheet" href="./plugins/toggles/css/toggles-modern.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" />
1267
-            <script src="./plugins/toggles/toggles.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" type="text/javascript"></script>
1265
+            <link rel="stylesheet" href="./plugins/toggles/css/toggles.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" />
1266
+            <link rel="stylesheet" href="./plugins/toggles/css/toggles-modern.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" />
1267
+            <script src="./plugins/toggles/toggles.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" type="text/javascript"></script>
1268 1268
         <?php
1269 1269
         } elseif (in_array($get['page'], ['search', 'folders', 'users', 'roles', 'utilities.deletion', 'utilities.logs', 'utilities.database', 'utilities.renewal', 'tasks']) === true) {
1270 1270
             ?>
1271 1271
             <!-- DataTables -->
1272
-            <link rel="stylesheet" src="./plugins/datatables/css/jquery.dataTables.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
1273
-            <link rel="stylesheet" src="./plugins/datatables/css/dataTables.bootstrap4.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
1274
-            <script type="text/javascript" src="./plugins/datatables/js/jquery.dataTables.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1275
-            <script type="text/javascript" src="./plugins/datatables/js/dataTables.bootstrap4.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1276
-            <link rel="stylesheet" src="./plugins/datatables/extensions/Responsive-2.2.2/css/responsive.bootstrap4.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
1277
-            <script type="text/javascript" src="./plugins/datatables/extensions/Responsive-2.2.2/js/dataTables.responsive.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1278
-            <script type="text/javascript" src="./plugins/datatables/extensions/Responsive-2.2.2/js/responsive.bootstrap4.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1279
-            <script type="text/javascript" src="./plugins/datatables/plugins/select.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1280
-            <link rel="stylesheet" src="./plugins/datatables/extensions/Scroller-1.5.0/css/scroller.bootstrap4.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
1281
-            <script type="text/javascript" src="./plugins/datatables/extensions/Scroller-1.5.0/js/dataTables.scroller.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1272
+            <link rel="stylesheet" src="./plugins/datatables/css/jquery.dataTables.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
1273
+            <link rel="stylesheet" src="./plugins/datatables/css/dataTables.bootstrap4.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
1274
+            <script type="text/javascript" src="./plugins/datatables/js/jquery.dataTables.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1275
+            <script type="text/javascript" src="./plugins/datatables/js/dataTables.bootstrap4.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1276
+            <link rel="stylesheet" src="./plugins/datatables/extensions/Responsive-2.2.2/css/responsive.bootstrap4.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
1277
+            <script type="text/javascript" src="./plugins/datatables/extensions/Responsive-2.2.2/js/dataTables.responsive.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1278
+            <script type="text/javascript" src="./plugins/datatables/extensions/Responsive-2.2.2/js/responsive.bootstrap4.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1279
+            <script type="text/javascript" src="./plugins/datatables/plugins/select.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1280
+            <link rel="stylesheet" src="./plugins/datatables/extensions/Scroller-1.5.0/css/scroller.bootstrap4.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
1281
+            <script type="text/javascript" src="./plugins/datatables/extensions/Scroller-1.5.0/js/dataTables.scroller.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1282 1282
             <!-- dater picker -->
1283
-            <link rel="stylesheet" href="./plugins/bootstrap-datepicker/css/bootstrap-datepicker3.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
1284
-            <script src="./plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1283
+            <link rel="stylesheet" href="./plugins/bootstrap-datepicker/css/bootstrap-datepicker3.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
1284
+            <script src="./plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1285 1285
             <!-- daterange picker -->
1286
-            <link rel="stylesheet" href="./plugins/daterangepicker/daterangepicker.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
1287
-            <script src="./plugins/moment/moment.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1288
-            <script src="./plugins/daterangepicker/daterangepicker.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1286
+            <link rel="stylesheet" href="./plugins/daterangepicker/daterangepicker.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
1287
+            <script src="./plugins/moment/moment.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1288
+            <script src="./plugins/daterangepicker/daterangepicker.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1289 1289
             <!-- SlimScroll -->
1290
-            <script src="./plugins/slimScroll/jquery.slimscroll.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1290
+            <script src="./plugins/slimScroll/jquery.slimscroll.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1291 1291
             <!-- FastClick -->
1292
-            <script src="./plugins/fastclick/fastclick.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1292
+            <script src="./plugins/fastclick/fastclick.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1293 1293
         <?php
1294 1294
         } elseif ($get['page'] === 'profile') {
1295 1295
             ?>
1296 1296
             <!-- FILESAVER -->
1297
-            <script type="text/javascript" src="plugins/downloadjs/download.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1297
+            <script type="text/javascript" src="plugins/downloadjs/download.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1298 1298
             <!-- PLUPLOAD -->
1299
-            <script type="text/javascript" src="plugins/plupload/js/plupload.full.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1299
+            <script type="text/javascript" src="plugins/plupload/js/plupload.full.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1300 1300
         <?php
1301 1301
         } elseif ($get['page'] === 'export') {
1302 1302
             ?>
1303 1303
             <!-- FILESAVER -->
1304
-            <script type="text/javascript" src="plugins/downloadjs/download.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1304
+            <script type="text/javascript" src="plugins/downloadjs/download.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1305 1305
             <!-- PWSTRENGHT -->
1306
-            <script type="text/javascript" src="plugins/zxcvbn/zxcvbn.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1307
-            <script type="text/javascript" src="plugins/jquery.pwstrength/pwstrength-bootstrap.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1306
+            <script type="text/javascript" src="plugins/zxcvbn/zxcvbn.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1307
+            <script type="text/javascript" src="plugins/jquery.pwstrength/pwstrength-bootstrap.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1308 1308
         <?php
1309 1309
         }
1310 1310
     }
1311 1311
     ?>
1312 1312
     <!-- functions -->
1313
-    <script type="text/javascript" src="includes/js/functions.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1314
-    <script type="text/javascript" src="includes/js/CreateRandomString.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1313
+    <script type="text/javascript" src="includes/js/functions.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1314
+    <script type="text/javascript" src="includes/js/CreateRandomString.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1315 1315
     <input type="hidden" id="encryptClientServerStatus" value="<?php echo $SETTINGS['encryptClientServer'] ?? 1; ?>" />
1316 1316
 
1317 1317
     </body>
@@ -1401,65 +1401,65 @@  discard block
 block discarded – undo
1401 1401
 
1402 1402
 // Load links, css and javascripts
1403 1403
 if (isset($SETTINGS['cpassman_dir']) === true) {
1404
-    include_once $SETTINGS['cpassman_dir'] . '/includes/core/load.js.php';
1404
+    include_once $SETTINGS['cpassman_dir'].'/includes/core/load.js.php';
1405 1405
     if ($menuAdmin === true) {
1406
-        include_once $SETTINGS['cpassman_dir'] . '/pages/admin.js.php';
1406
+        include_once $SETTINGS['cpassman_dir'].'/pages/admin.js.php';
1407 1407
         if ($get['page'] === '2fa') {
1408
-            include_once $SETTINGS['cpassman_dir'] . '/pages/2fa.js.php';
1408
+            include_once $SETTINGS['cpassman_dir'].'/pages/2fa.js.php';
1409 1409
         } elseif ($get['page'] === 'api') {
1410
-            include_once $SETTINGS['cpassman_dir'] . '/pages/api.js.php';
1410
+            include_once $SETTINGS['cpassman_dir'].'/pages/api.js.php';
1411 1411
         } elseif ($get['page'] === 'backups') {
1412
-            include_once $SETTINGS['cpassman_dir'] . '/pages/backups.js.php';
1412
+            include_once $SETTINGS['cpassman_dir'].'/pages/backups.js.php';
1413 1413
         } elseif ($get['page'] === 'emails') {
1414
-            include_once $SETTINGS['cpassman_dir'] . '/pages/emails.js.php';
1414
+            include_once $SETTINGS['cpassman_dir'].'/pages/emails.js.php';
1415 1415
         } elseif ($get['page'] === 'ldap') {
1416
-            include_once $SETTINGS['cpassman_dir'] . '/pages/ldap.js.php';
1416
+            include_once $SETTINGS['cpassman_dir'].'/pages/ldap.js.php';
1417 1417
         } elseif ($get['page'] === 'uploads') {
1418
-            include_once $SETTINGS['cpassman_dir'] . '/pages/uploads.js.php';
1418
+            include_once $SETTINGS['cpassman_dir'].'/pages/uploads.js.php';
1419 1419
         } elseif ($get['page'] === 'fields') {
1420
-            include_once $SETTINGS['cpassman_dir'] . '/pages/fields.js.php';
1420
+            include_once $SETTINGS['cpassman_dir'].'/pages/fields.js.php';
1421 1421
         } elseif ($get['page'] === 'options') {
1422
-            include_once $SETTINGS['cpassman_dir'] . '/pages/options.js.php';
1422
+            include_once $SETTINGS['cpassman_dir'].'/pages/options.js.php';
1423 1423
         } elseif ($get['page'] === 'statistics') {
1424
-            include_once $SETTINGS['cpassman_dir'] . '/pages/statistics.js.php';
1424
+            include_once $SETTINGS['cpassman_dir'].'/pages/statistics.js.php';
1425 1425
         } elseif ($get['page'] === 'tasks') {
1426
-            include_once $SETTINGS['cpassman_dir'] . '/pages/tasks.js.php';
1426
+            include_once $SETTINGS['cpassman_dir'].'/pages/tasks.js.php';
1427 1427
         } elseif ($get['page'] === 'oauth' && WIP === true) {
1428
-            include_once $SETTINGS['cpassman_dir'] . '/pages/oauth.js.php';        
1428
+            include_once $SETTINGS['cpassman_dir'].'/pages/oauth.js.php';        
1429 1429
         } elseif ($get['page'] === 'tools') {
1430
-            include_once $SETTINGS['cpassman_dir'] . '/pages/tools.js.php';
1430
+            include_once $SETTINGS['cpassman_dir'].'/pages/tools.js.php';
1431 1431
         }
1432 1432
     } elseif (isset($get['page']) === true && $get['page'] !== '') {
1433 1433
         if ($get['page'] === 'items') {
1434
-            include_once $SETTINGS['cpassman_dir'] . '/pages/items.js.php';
1434
+            include_once $SETTINGS['cpassman_dir'].'/pages/items.js.php';
1435 1435
         } elseif ($get['page'] === 'import') {
1436
-            include_once $SETTINGS['cpassman_dir'] . '/pages/import.js.php';
1436
+            include_once $SETTINGS['cpassman_dir'].'/pages/import.js.php';
1437 1437
         } elseif ($get['page'] === 'export') {
1438
-            include_once $SETTINGS['cpassman_dir'] . '/pages/export.js.php';
1438
+            include_once $SETTINGS['cpassman_dir'].'/pages/export.js.php';
1439 1439
         } elseif ($get['page'] === 'offline') {
1440
-            include_once $SETTINGS['cpassman_dir'] . '/pages/offline.js.php';
1440
+            include_once $SETTINGS['cpassman_dir'].'/pages/offline.js.php';
1441 1441
         } elseif ($get['page'] === 'search') {
1442
-            include_once $SETTINGS['cpassman_dir'] . '/pages/search.js.php';
1442
+            include_once $SETTINGS['cpassman_dir'].'/pages/search.js.php';
1443 1443
         } elseif ($get['page'] === 'profile') {
1444
-            include_once $SETTINGS['cpassman_dir'] . '/pages/profile.js.php';
1444
+            include_once $SETTINGS['cpassman_dir'].'/pages/profile.js.php';
1445 1445
         } elseif ($get['page'] === 'favourites') {
1446
-            include_once $SETTINGS['cpassman_dir'] . '/pages/favorites.js.php';
1446
+            include_once $SETTINGS['cpassman_dir'].'/pages/favorites.js.php';
1447 1447
         } elseif ($get['page'] === 'folders') {
1448
-            include_once $SETTINGS['cpassman_dir'] . '/pages/folders.js.php';
1448
+            include_once $SETTINGS['cpassman_dir'].'/pages/folders.js.php';
1449 1449
         } elseif ($get['page'] === 'users') {
1450
-            include_once $SETTINGS['cpassman_dir'] . '/pages/users.js.php';
1450
+            include_once $SETTINGS['cpassman_dir'].'/pages/users.js.php';
1451 1451
         } elseif ($get['page'] === 'roles') {
1452
-            include_once $SETTINGS['cpassman_dir'] . '/pages/roles.js.php';
1452
+            include_once $SETTINGS['cpassman_dir'].'/pages/roles.js.php';
1453 1453
         } elseif ($get['page'] === 'utilities.deletion') {
1454
-            include_once $SETTINGS['cpassman_dir'] . '/pages/utilities.deletion.js.php';
1454
+            include_once $SETTINGS['cpassman_dir'].'/pages/utilities.deletion.js.php';
1455 1455
         } elseif ($get['page'] === 'utilities.logs') {
1456
-            include_once $SETTINGS['cpassman_dir'] . '/pages/utilities.logs.js.php';
1456
+            include_once $SETTINGS['cpassman_dir'].'/pages/utilities.logs.js.php';
1457 1457
         } elseif ($get['page'] === 'utilities.database') {
1458
-            include_once $SETTINGS['cpassman_dir'] . '/pages/utilities.database.js.php';
1458
+            include_once $SETTINGS['cpassman_dir'].'/pages/utilities.database.js.php';
1459 1459
         } elseif ($get['page'] === 'utilities.renewal') {
1460
-            include_once $SETTINGS['cpassman_dir'] . '/pages/utilities.renewal.js.php';
1460
+            include_once $SETTINGS['cpassman_dir'].'/pages/utilities.renewal.js.php';
1461 1461
         }
1462 1462
     } else {
1463
-        include_once $SETTINGS['cpassman_dir'] . '/includes/core/login.js.php';
1463
+        include_once $SETTINGS['cpassman_dir'].'/includes/core/login.js.php';
1464 1464
     }
1465 1465
 }
Please login to merge, or discard this patch.