Passed
Pull Request — master (#4546)
by
unknown
06:27
created
api/Controller/Api/ItemController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
             // SQL where clause with folders list
56 56
             if (isset($arrQueryStringParams['folders']) === true) {
57 57
                 // convert the folders to an array
58
-                $arrQueryStringParams['folders'] = explode(',', str_replace( array('[',']') , ''  , $arrQueryStringParams['folders']));
58
+                $arrQueryStringParams['folders'] = explode(',', str_replace(array('[', ']'), '', $arrQueryStringParams['folders']));
59 59
 
60 60
                 // ensure to only use the intersection
61 61
                 $foldersList = implode(',', array_intersect($arrQueryStringParams['folders'], $userData['folders_list']));
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
                 } else {
217 217
                     // Gérer le cas où les paramètres ne sont pas un tableau
218 218
                     $strErrorDesc = 'Data not consistent';
219
-                    $strErrorHeader = 'Expected array, received ' . gettype($arrQueryStringParams);
219
+                    $strErrorHeader = 'Expected array, received '.gettype($arrQueryStringParams);
220 220
                 }
221 221
             }
222 222
         } else {
@@ -263,10 +263,10 @@  discard block
 block discarded – undo
263 263
             // SQL where clause with item id
264 264
             if (isset($arrQueryStringParams['id']) === true) {
265 265
                 // build sql where clause by ID
266
-                $sqlExtra = ' WHERE i.id = '.$arrQueryStringParams['id'] . $sql_constraint;
266
+                $sqlExtra = ' WHERE i.id = '.$arrQueryStringParams['id'].$sql_constraint;
267 267
             } else if (isset($arrQueryStringParams['label']) === true) {
268 268
                 // build sql where clause by LABEL
269
-                $sqlExtra = ' WHERE i.label '.(isset($arrQueryStringParams['like']) === true && (int) $arrQueryStringParams['like'] === 1 ? ' LIKE '.$arrQueryStringParams['label'] : ' = '.$arrQueryStringParams['label']) . $sql_constraint;
269
+                $sqlExtra = ' WHERE i.label '.(isset($arrQueryStringParams['like']) === true && (int) $arrQueryStringParams['like'] === 1 ? ' LIKE '.$arrQueryStringParams['label'] : ' = '.$arrQueryStringParams['label']).$sql_constraint;
270 270
             } else if (isset($arrQueryStringParams['description']) === true) {
271 271
                 // build sql where clause by LABEL
272 272
                 $sqlExtra = ' WHERE i.description '.(isset($arrQueryStringParams['like']) === true && (int) $arrQueryStringParams['like'] === 1 ? ' LIKE '.$arrQueryStringParams['description'] : ' = '.$arrQueryStringParams['description']).$sql_constraint;
Please login to merge, or discard this patch.
index.php 2 patches
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
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 $SETTINGS = $antiXss->xss_clean($SETTINGS);
108 108
 
109 109
 // Load Core library
110
-require_once $SETTINGS['cpassman_dir'] . '/sources/core.php';
110
+require_once $SETTINGS['cpassman_dir'].'/sources/core.php';
111 111
 // Prepare POST variables
112 112
 $post_language = filter_input(INPUT_POST, 'language', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
113 113
 $session_user_language = $session->get('user-language');
@@ -146,8 +146,8 @@  discard block
 block discarded – undo
146 146
     //get default language
147 147
     $dataLanguage = DB::queryFirstRow(
148 148
         'SELECT m.valeur AS valeur, l.flag AS flag
149
-        FROM ' . prefixTable('misc') . ' AS m
150
-        INNER JOIN ' . prefixTable('languages') . ' AS l ON (m.valeur = l.name)
149
+        FROM ' . prefixTable('misc').' AS m
150
+        INNER JOIN ' . prefixTable('languages').' AS l ON (m.valeur = l.name)
151 151
         WHERE m.type=%s_type AND m.intitule=%s_intitule',
152 152
         [
153 153
             'type' => 'admin',
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
         $session_user_language = $SETTINGS['default_language'];
179 179
     }
180 180
 }
181
-$lang = new Language($session_user_language, __DIR__. '/includes/language/'); 
181
+$lang = new Language($session_user_language, __DIR__.'/includes/language/'); 
182 182
 
183 183
 if (isset($SETTINGS['cpassman_dir']) === false || $SETTINGS['cpassman_dir'] === '') {
184 184
     $SETTINGS['cpassman_dir'] = __DIR__;
@@ -252,29 +252,29 @@  discard block
 block discarded – undo
252 252
     </script>
253 253
 
254 254
     <!-- IonIcons -->
255
-    <link rel="stylesheet" href="includes/css/ionicons.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
255
+    <link rel="stylesheet" href="includes/css/ionicons.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
256 256
     <!-- Theme style -->
257
-    <link rel="stylesheet" href="plugins/adminlte/css/adminlte.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
258
-    <link rel="stylesheet" href="plugins/pace-progress/themes/corner-indicator.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" type="text/css" />
259
-    <link rel="stylesheet" href="plugins/select2/css/select2.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" type="text/css" />
260
-    <link rel="stylesheet" href="plugins/select2/theme/select2-bootstrap4.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" type="text/css" />
257
+    <link rel="stylesheet" href="plugins/adminlte/css/adminlte.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
258
+    <link rel="stylesheet" href="plugins/pace-progress/themes/corner-indicator.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" type="text/css" />
259
+    <link rel="stylesheet" href="plugins/select2/css/select2.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" type="text/css" />
260
+    <link rel="stylesheet" href="plugins/select2/theme/select2-bootstrap4.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" type="text/css" />
261 261
     <!-- Theme style -->
262
-    <link rel="stylesheet" href="includes/css/teampass.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
262
+    <link rel="stylesheet" href="includes/css/teampass.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
263 263
     <!-- Google Font: Source Sans Pro -->
264
-    <link rel="stylesheet" type="text/css" href="includes/fonts/fonts.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
264
+    <link rel="stylesheet" type="text/css" href="includes/fonts/fonts.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
265 265
     <!-- Altertify -->
266
-    <link rel="stylesheet" href="plugins/alertifyjs/css/alertify.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" />
267
-    <link rel="stylesheet" href="plugins/alertifyjs/css/themes/bootstrap.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" />
266
+    <link rel="stylesheet" href="plugins/alertifyjs/css/alertify.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" />
267
+    <link rel="stylesheet" href="plugins/alertifyjs/css/themes/bootstrap.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" />
268 268
     <!-- Toastr -->
269
-    <link rel="stylesheet" href="plugins/toastr/toastr.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" />
269
+    <link rel="stylesheet" href="plugins/toastr/toastr.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" />
270 270
     <!-- favicon -->
271
-    <link rel="shortcut icon" type="image/png" href="<?php echo $favicon;?>"/>
271
+    <link rel="shortcut icon" type="image/png" href="<?php echo $favicon; ?>"/>
272 272
     <!-- manifest (PWA) -->
273
-    <link rel="manifest" href="manifest.json?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
273
+    <link rel="manifest" href="manifest.json?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
274 274
     <!-- Custom style -->
275 275
     <?php
276
-    if (file_exists(__DIR__ . '/includes/css/custom.css') === true) {?>
277
-        <link rel="stylesheet" href="includes/css/custom.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
276
+    if (file_exists(__DIR__.'/includes/css/custom.css') === true) {?>
277
+        <link rel="stylesheet" href="includes/css/custom.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
278 278
     <?php
279 279
     } ?>
280 280
 </head>
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
                         <div class="dropdown show">
323 323
                             <a class="btn btn-primary dropdown-toggle" href="#" data-toggle="dropdown">
324 324
                                 <?php
325
-                                    echo $session_name . '&nbsp;' . $session_lastname; ?>
325
+                                    echo $session_name.'&nbsp;'.$session_lastname; ?>
326 326
                             </a>
327 327
 
328 328
                             <div class="dropdown-menu dropdown-menu-right">
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
                                     </a>
347 347
                                 <?php
348 348
                                     } ?>
349
-                                <a class="dropdown-item user-menu<?php echo (int) $session_user_admin === 1 ? ' hidden' : '';?>" href="#" data-name="generate-new_keys">
349
+                                <a class="dropdown-item user-menu<?php echo (int) $session_user_admin === 1 ? ' hidden' : ''; ?>" href="#" data-name="generate-new_keys">
350 350
                                     <i class="fa-solid fa-spray-can-sparkles fa-fw mr-2"></i><?php echo $lang->get('generate_new_keys'); ?>
351 351
                                 </a>
352 352
 
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
             <!-- Main Sidebar Container -->
381 381
             <aside class="main-sidebar sidebar-dark-primary elevation-4">
382 382
                 <!-- Brand Logo -->
383
-                <a href="<?php echo $cpassman_url . '/index.php?page=' . ((int) $session_user_admin === 1 ? 'admin' : 'items'); ?>" class="brand-link">
383
+                <a href="<?php echo $cpassman_url.'/index.php?page='.((int) $session_user_admin === 1 ? 'admin' : 'items'); ?>" class="brand-link">
384 384
                     <img src="includes/images/teampass-logo2-home.png" alt="Teampass Logo" class="brand-image">
385 385
                     <span class="brand-text font-weight-light"><?php echo TP_TOOL_NAME; ?></span>
386 386
                 </a>
@@ -398,20 +398,20 @@  discard block
 block discarded – undo
398 398
                         <a href="#" data-name="items" class="nav-link', $get['page'] === 'items' ? ' active' : '', '">
399 399
                         <i class="nav-icon fa-solid fa-key"></i>
400 400
                         <p>
401
-                            ' . $lang->get('pw') . '
401
+                            ' . $lang->get('pw').'
402 402
                         </p>
403 403
                         </a>
404 404
                     </li>';
405 405
                                 }
406 406
 
407 407
     // IMPORT menu
408
-    if (isset($SETTINGS['allow_import']) === true && (int) $SETTINGS['allow_import'] === 1&& $session_user_admin === 0) {
408
+    if (isset($SETTINGS['allow_import']) === true && (int) $SETTINGS['allow_import'] === 1 && $session_user_admin === 0) {
409 409
         echo '
410 410
                     <li class="nav-item">
411 411
                         <a href="#" data-name="import" class="nav-link', $get['page'] === 'import' ? ' active' : '', '">
412 412
                         <i class="nav-icon fa-solid fa-file-import"></i>
413 413
                         <p>
414
-                            ' . $lang->get('import') . '
414
+                            ' . $lang->get('import').'
415 415
                         </p>
416 416
                         </a>
417 417
                     </li>';
@@ -432,7 +432,7 @@  discard block
 block discarded – undo
432 432
                         <a href="#" data-name="export" class="nav-link', $get['page'] === 'export' ? ' active' : '', '">
433 433
                         <i class="nav-icon fa-solid fa-file-export"></i>
434 434
                         <p>
435
-                            ' . $lang->get('export') . '
435
+                            ' . $lang->get('export').'
436 436
                         </p>
437 437
                         </a>
438 438
                     </li>';
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
                         <a href="#" data-name="search" class="nav-link', $get['page'] === 'search' ? ' active' : '', '">
460 460
                         <i class="nav-icon fa-solid fa-search"></i>
461 461
                         <p>
462
-                            ' . $lang->get('find') . '
462
+                            ' . $lang->get('find').'
463 463
                         </p>
464 464
                         </a>
465 465
                     </li>';
@@ -475,7 +475,7 @@  discard block
 block discarded – undo
475 475
                         <a href="#" data-name="favourites" class="nav-link', $get['page'] === 'favourites' ? ' active' : '', '">
476 476
                         <i class="nav-icon fa-solid fa-star"></i>
477 477
                         <p>
478
-                            ' . $lang->get('favorites') . '
478
+                            ' . $lang->get('favorites').'
479 479
                         </p>
480 480
                         </a>
481 481
                     </li>';
@@ -505,7 +505,7 @@  discard block
 block discarded – undo
505 505
                         <a href="#" data-name="suggestion" class="nav-link', $get['page'] === 'suggestion' ? ' active' : '', '">
506 506
                         <i class="nav-icon fa-solid fa-lightbulb"></i>
507 507
                         <p>
508
-                            ' . $lang->get('suggestion_menu') . '
508
+                            ' . $lang->get('suggestion_menu').'
509 509
                         </p>
510 510
                         </a>
511 511
                     </li>';
@@ -518,7 +518,7 @@  discard block
 block discarded – undo
518 518
                         <a href="#" data-name="admin" class="nav-link', $get['page'] === 'admin' ? ' active' : '', '">
519 519
                         <i class="nav-icon fa-solid fa-info"></i>
520 520
                         <p>
521
-                            ' . $lang->get('admin_main') . '
521
+                            ' . $lang->get('admin_main').'
522 522
                         </p>
523 523
                         </a>
524 524
                     </li>
@@ -526,7 +526,7 @@  discard block
 block discarded – undo
526 526
                         <a href="#" class="nav-link">
527 527
                             <i class="nav-icon fa-solid fa-wrench"></i>
528 528
                             <p>
529
-                                ' . $lang->get('admin_settings') . '
529
+                                ' . $lang->get('admin_settings').'
530 530
                                 <i class="fa-solid fa-angle-left right"></i>
531 531
                             </p>
532 532
                         </a>
@@ -534,63 +534,63 @@  discard block
 block discarded – undo
534 534
                             <li class="nav-item">
535 535
                                 <a href="#" data-name="options" class="nav-link', $get['page'] === 'options' ? ' active' : '', '">
536 536
                                     <i class="fa-solid fa-check-double nav-icon"></i>
537
-                                    <p>' . $lang->get('options') . '</p>
537
+                                    <p>' . $lang->get('options').'</p>
538 538
                                 </a>
539 539
                             </li>
540 540
                             <li class="nav-item">
541 541
                                 <a href="#" data-name="2fa" class="nav-link', $get['page'] === '2fa' ? ' active' : '', '">
542 542
                                     <i class="fa-solid fa-qrcode nav-icon"></i>
543
-                                    <p>' . $lang->get('mfa_short') . '</p>
543
+                                    <p>' . $lang->get('mfa_short').'</p>
544 544
                                 </a>
545 545
                             </li>
546 546
                             <li class="nav-item">
547 547
                                 <a href="#" data-name="api" class="nav-link', $get['page'] === 'api' ? ' active' : '', '">
548 548
                                     <i class="fa-solid fa-cubes nav-icon"></i>
549
-                                    <p>' . $lang->get('api') . '</p>
549
+                                    <p>' . $lang->get('api').'</p>
550 550
                                 </a>
551 551
                             </li>
552 552
                             <li class="nav-item">
553 553
                                 <a href="#" data-name="backups" class="nav-link', $get['page'] === 'backups' ? ' active' : '', '">
554 554
                                     <i class="fa-solid fa-database nav-icon"></i>
555
-                                    <p>' . $lang->get('backups') . '</p>
555
+                                    <p>' . $lang->get('backups').'</p>
556 556
                                 </a>
557 557
                             </li>
558 558
                             <li class="nav-item">
559 559
                                 <a href="#" data-name="emails" class="nav-link', $get['page'] === 'emails' ? ' active' : '', '">
560 560
                                     <i class="fa-solid fa-envelope nav-icon"></i>
561
-                                    <p>' . $lang->get('emails') . '</p>
561
+                                    <p>' . $lang->get('emails').'</p>
562 562
                                 </a>
563 563
                             </li>
564 564
                             <li class="nav-item">
565 565
                                 <a href="#" data-name="fields" class="nav-link', $get['page'] === 'fields' ? ' active' : '', '">
566 566
                                     <i class="fa-solid fa-keyboard nav-icon"></i>
567
-                                    <p>' . $lang->get('fields') . '</p>
567
+                                    <p>' . $lang->get('fields').'</p>
568 568
                                 </a>
569 569
                             </li>
570 570
                             <li class="nav-item">
571 571
                                 <a href="#" data-name="ldap" class="nav-link', $get['page'] === 'ldap' ? ' active' : '', '">
572 572
                                     <i class="fa-solid fa-id-card nav-icon"></i>
573
-                                    <p>' . $lang->get('ldap') . '</p>
573
+                                    <p>' . $lang->get('ldap').'</p>
574 574
                                 </a>
575 575
                             </li>
576 576
 
577 577
                             <li class="nav-item">
578 578
                                 <a href="#" data-name="oauth" class="nav-link', $get['page'] === 'oauth' ? ' active' : '', '">
579 579
                                     <i class="fa-solid fa-plug nav-icon"></i>
580
-                                    <p>' . $lang->get('oauth') . '</p>
580
+                                    <p>' . $lang->get('oauth').'</p>
581 581
                                 </a>
582 582
                             </li>
583 583
                             
584 584
                             <li class="nav-item">
585 585
                                 <a href="#" data-name="uploads" class="nav-link', $get['page'] === 'uploads' ? ' active' : '', '">
586 586
                                     <i class="fa-solid fa-file-upload nav-icon"></i>
587
-                                    <p>' . $lang->get('uploads') . '</p>
587
+                                    <p>' . $lang->get('uploads').'</p>
588 588
                                 </a>
589 589
                             </li>
590 590
                             <li class="nav-item">
591 591
                                 <a href="#" data-name="statistics" class="nav-link', $get['page'] === 'statistics' ? ' active' : '', '">
592 592
                                     <i class="fa-solid fa-chart-bar nav-icon"></i>
593
-                                    <p>' . $lang->get('statistics') . '</p>
593
+                                    <p>' . $lang->get('statistics').'</p>
594 594
                                 </a>
595 595
                             </li>
596 596
                         </ul>
@@ -601,7 +601,7 @@  discard block
 block discarded – undo
601 601
                     <li class="nav-item">
602 602
                         <a href="#" data-name="tasks" class="nav-link', $get['page'] === 'tasks' ? ' active' : '', '">
603 603
                         <i class="fa-solid fa-tasks nav-icon"></i>
604
-                        <p>' . $lang->get('tasks') . '</p>
604
+                        <p>' . $lang->get('tasks').'</p>
605 605
                         </a>
606 606
                     </li>';
607 607
         }
@@ -612,7 +612,7 @@  discard block
 block discarded – undo
612 612
                         <a href="#" data-name="tools" class="nav-link', $get['page'] === 'tools' ? ' active' : '', '">
613 613
                         <i class="nav-icon fa-solid fa-screwdriver-wrench"></i>
614 614
                         <p>
615
-                            ' . $lang->get('tools') . '
615
+                            ' . $lang->get('tools').'
616 616
                         </p>
617 617
                         </a>
618 618
                     </li>';
@@ -629,7 +629,7 @@  discard block
 block discarded – undo
629 629
                         <a href="#" data-name="folders" class="nav-link', $get['page'] === 'folders' ? ' active' : '', '">
630 630
                         <i class="nav-icon fa-solid fa-folder-open"></i>
631 631
                         <p>
632
-                            ' . $lang->get('folders') . '
632
+                            ' . $lang->get('folders').'
633 633
                         </p>
634 634
                         </a>
635 635
                     </li>
@@ -637,7 +637,7 @@  discard block
 block discarded – undo
637 637
                         <a href="#" data-name="roles" class="nav-link', $get['page'] === 'roles' ? ' active' : '', '">
638 638
                         <i class="nav-icon fa-solid fa-graduation-cap"></i>
639 639
                         <p>
640
-                            ' . $lang->get('roles') . '
640
+                            ' . $lang->get('roles').'
641 641
                         </p>
642 642
                         </a>
643 643
                     </li>
@@ -645,38 +645,38 @@  discard block
 block discarded – undo
645 645
                         <a href="#" data-name="users" class="nav-link', $get['page'] === 'users' ? ' active' : '', '">
646 646
                         <i class="nav-icon fa-solid fa-users"></i>
647 647
                         <p>
648
-                            ' . $lang->get('users') . '
648
+                            ' . $lang->get('users').'
649 649
                         </p>
650 650
                         </a>
651 651
                     </li>
652 652
                     <li class="nav-item has-treeview', $menuUtilities === true ? ' menu-open' : '', '">
653 653
                         <a href="#" class="nav-link">
654 654
                         <i class="nav-icon fa-solid fa-cubes"></i>
655
-                        <p>' . $lang->get('admin_views') . '<i class="fa-solid fa-angle-left right"></i></p>
655
+                        <p>' . $lang->get('admin_views').'<i class="fa-solid fa-angle-left right"></i></p>
656 656
                         </a>
657 657
                         <ul class="nav nav-treeview">
658 658
                             <li class="nav-item">
659 659
                                 <a href="#" data-name="utilities.renewal" class="nav-link', $get['page'] === 'utilities.renewal' ? ' active' : '', '">
660 660
                                 <i class="far fa-calendar-alt nav-icon"></i>
661
-                                <p>' . $lang->get('renewal') . '</p>
661
+                                <p>' . $lang->get('renewal').'</p>
662 662
                                 </a>
663 663
                             </li>
664 664
                             <li class="nav-item">
665 665
                                 <a href="#" data-name="utilities.deletion" class="nav-link', $get['page'] === 'utilities.deletion' ? ' active' : '', '">
666 666
                                 <i class="fa-solid fa-trash-alt nav-icon"></i>
667
-                                <p>' . $lang->get('deletion') . '</p>
667
+                                <p>' . $lang->get('deletion').'</p>
668 668
                                 </a>
669 669
                             </li>
670 670
                             <li class="nav-item">
671 671
                                 <a href="#" data-name="utilities.logs" class="nav-link', $get['page'] === 'utilities.logs' ? ' active' : '', '">
672 672
                                 <i class="fa-solid fa-history nav-icon"></i>
673
-                                <p>' . $lang->get('logs') . '</p>
673
+                                <p>' . $lang->get('logs').'</p>
674 674
                                 </a>
675 675
                             </li>
676 676
                             <li class="nav-item">
677 677
                                 <a href="#" data-name="utilities.database" class="nav-link', $get['page'] === 'utilities.database' ? ' active' : '', '">
678 678
                                 <i class="fa-solid fa-database nav-icon"></i>
679
-                                <p>' . $lang->get('database') . '</p>
679
+                                <p>' . $lang->get('database').'</p>
680 680
                                 </a>
681 681
                             </li>
682 682
                         </ul>
@@ -687,10 +687,10 @@  discard block
 block discarded – undo
687 687
                     <!-- /.sidebar-menu -->
688 688
                 <div class="menu-footer">
689 689
                     <div class="" id="sidebar-footer">
690
-                        <i class="fa-solid fa-clock-o mr-2 infotip text-info pointer" title="<?php echo htmlspecialchars($lang->get('server_time') . ' ' .
691
-                            date($date_format, (int) $server['request_time']) . ' - ' .
690
+                        <i class="fa-solid fa-clock-o mr-2 infotip text-info pointer" title="<?php echo htmlspecialchars($lang->get('server_time').' '.
691
+                            date($date_format, (int) $server['request_time']).' - '.
692 692
                             date($time_format, (int) $server['request_time']), ENT_QUOTES, 'UTF-8'); ?>"></i>
693
-                        <i class="fa-solid fa-users mr-2 infotip text-info pointer" title="<?php echo $session_nb_users_online . ' ' . $lang->get('users_online'); ?>"></i>
693
+                        <i class="fa-solid fa-users mr-2 infotip text-info pointer" title="<?php echo $session_nb_users_online.' '.$lang->get('users_online'); ?>"></i>
694 694
                         <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>
695 695
                         <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>
696 696
                         <?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; ?>
@@ -839,7 +839,7 @@  discard block
 block discarded – undo
839 839
                                 </div>
840 840
                                 <div class="mt-3">                                    
841 841
                                     <label>
842
-                                        <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>
842
+                                        <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>
843 843
                                         <input type="checkbox" id="dialog-admin-change-user-password-do-show-password" class="pointer">
844 844
                                     </label>
845 845
                                 </div>
@@ -998,34 +998,34 @@  discard block
 block discarded – undo
998 998
                     if ($get['page'] === 'items') {
999 999
                         // SHow page with Items
1000 1000
                         if ((int) $session_user_admin !== 1) {
1001
-                            include $SETTINGS['cpassman_dir'] . '/pages/items.php';
1001
+                            include $SETTINGS['cpassman_dir'].'/pages/items.php';
1002 1002
                         } elseif ((int) $session_user_admin === 1) {
1003
-                            include $SETTINGS['cpassman_dir'] . '/pages/admin.php';
1003
+                            include $SETTINGS['cpassman_dir'].'/pages/admin.php';
1004 1004
                         } else {
1005 1005
                             $session->set('system-error_code', ERR_NOT_ALLOWED);
1006 1006
                             //not allowed page
1007
-                            include $SETTINGS['cpassman_dir'] . '/error.php';
1007
+                            include $SETTINGS['cpassman_dir'].'/error.php';
1008 1008
                         }
1009 1009
                     } elseif (in_array($get['page'], array_keys($mngPages)) === true) {
1010 1010
                         // Define if user is allowed to see management pages
1011 1011
                         if ($session_user_admin === 1) {
1012 1012
                             // deepcode ignore FileInclusion: $get['page'] is secured through usage of array_keys test bellow
1013
-                            include $SETTINGS['cpassman_dir'] . '/pages/' . basename($mngPages[$get['page']]);
1013
+                            include $SETTINGS['cpassman_dir'].'/pages/'.basename($mngPages[$get['page']]);
1014 1014
                         } elseif ($session_user_manager === 1 || $session_user_human_resources === 1) {
1015 1015
                             if ($get['page'] === 'manage_main' || $get['page'] === 'manage_settings'
1016 1016
                             ) {
1017 1017
                                 $session->set('system-error_code', ERR_NOT_ALLOWED);
1018 1018
                                 //not allowed page
1019
-                                include $SETTINGS['cpassman_dir'] . '/error.php';
1019
+                                include $SETTINGS['cpassman_dir'].'/error.php';
1020 1020
                             }
1021 1021
                         } else {
1022 1022
                             $session->set('system-error_code', ERR_NOT_ALLOWED);
1023 1023
                             //not allowed page
1024
-                            include $SETTINGS['cpassman_dir'] . '/error.php';
1024
+                            include $SETTINGS['cpassman_dir'].'/error.php';
1025 1025
                         }
1026
-                    } elseif (empty($get['page']) === false && file_exists($SETTINGS['cpassman_dir'] . '/pages/' . $get['page'] . '.php') === true) {
1026
+                    } elseif (empty($get['page']) === false && file_exists($SETTINGS['cpassman_dir'].'/pages/'.$get['page'].'.php') === true) {
1027 1027
                         // deepcode ignore FileInclusion: $get['page'] is tested against file_exists just below
1028
-                        include $SETTINGS['cpassman_dir'] . '/pages/' . basename($get['page'] . '.php');
1028
+                        include $SETTINGS['cpassman_dir'].'/pages/'.basename($get['page'].'.php');
1029 1029
                     } else {
1030 1030
                         $session->set('system-array_roles', ERR_NOT_EXIST);
1031 1031
                         //page doesn't exist
@@ -1061,7 +1061,7 @@  discard block
 block discarded – undo
1061 1061
             <footer class="main-footer">
1062 1062
                 <!-- To the right -->
1063 1063
                 <div class="float-right d-none d-sm-inline">
1064
-                    <?php echo $lang->get('version_alone'); ?>&nbsp;<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>
1064
+                    <?php echo $lang->get('version_alone'); ?>&nbsp;<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>
1065 1065
                 </div>
1066 1066
                 <!-- Default to the left -->
1067 1067
                 <strong>Copyright &copy; <?php echo TP_COPYRIGHT; ?> <a href="<?php echo TEAMPASS_URL; ?>"><?php echo TP_TOOL_NAME; ?></a>.</strong> All rights reserved.
@@ -1075,7 +1075,7 @@  discard block
 block discarded – undo
1075 1075
         echo '
1076 1076
 <input type="hidden" id="temps_restant" value="', $session->get('user-session_duration') ?? '', '" />';
1077 1077
 // display an item in the context of OTV link
1078
-} elseif ((null === $session->get('user-validite_pw')|| empty($session->get('user-validite_pw')) === true || empty($session->get('user-id')) === true)
1078
+} elseif ((null === $session->get('user-validite_pw') || empty($session->get('user-validite_pw')) === true || empty($session->get('user-id')) === true)
1079 1079
     && empty($get['otv']) === false
1080 1080
 ) {
1081 1081
     // case where one-shot viewer
@@ -1094,7 +1094,7 @@  discard block
 block discarded – undo
1094 1094
                 FILTER_SANITIZE_URL
1095 1095
             )
1096 1096
         );
1097
-        include $SETTINGS['cpassman_dir'] . '/error.php';
1097
+        include $SETTINGS['cpassman_dir'].'/error.php';
1098 1098
     }
1099 1099
 } elseif (//(empty($session->get('user-id')) === false && $session->get('user-id') !== null) ||
1100 1100
         empty($session->get('user-id')) === true
@@ -1126,7 +1126,7 @@  discard block
 block discarded – undo
1126 1126
     }
1127 1127
     
1128 1128
     // LOGIN form  
1129
-    include $SETTINGS['cpassman_dir'] . '/includes/core/login.php';
1129
+    include $SETTINGS['cpassman_dir'].'/includes/core/login.php';
1130 1130
     
1131 1131
 } else {
1132 1132
     // Clear session
@@ -1159,155 +1159,155 @@  discard block
 block discarded – undo
1159 1159
     <!-- REQUIRED SCRIPTS -->
1160 1160
 
1161 1161
     <!-- Font Awesome Icons -->
1162
-    <link href="plugins/fontawesome-free-6/css/fontawesome.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" rel="stylesheet">
1163
-    <link href="plugins/fontawesome-free-6/css/solid.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" rel="stylesheet">
1164
-    <link href="plugins/fontawesome-free-6/css/regular.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" rel="stylesheet">
1165
-    <link href="plugins/fontawesome-free-6/css/brands.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" rel="stylesheet">
1166
-    <link href="plugins/fontawesome-free-6/css/v5-font-face.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" rel="stylesheet" /> 
1162
+    <link href="plugins/fontawesome-free-6/css/fontawesome.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" rel="stylesheet">
1163
+    <link href="plugins/fontawesome-free-6/css/solid.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" rel="stylesheet">
1164
+    <link href="plugins/fontawesome-free-6/css/regular.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" rel="stylesheet">
1165
+    <link href="plugins/fontawesome-free-6/css/brands.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" rel="stylesheet">
1166
+    <link href="plugins/fontawesome-free-6/css/v5-font-face.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" rel="stylesheet" /> 
1167 1167
     <!-- jQuery -->
1168
-    <script src="plugins/jquery/jquery.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1169
-    <script src="plugins/jquery/jquery.cookie.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" type="text/javascript"></script>
1168
+    <script src="plugins/jquery/jquery.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1169
+    <script src="plugins/jquery/jquery.cookie.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" type="text/javascript"></script>
1170 1170
     <!-- jQuery UI -->
1171
-    <script src="plugins/jqueryUI/jquery-ui.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1172
-    <link rel="stylesheet" href="plugins/jqueryUI/jquery-ui.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
1171
+    <script src="plugins/jqueryUI/jquery-ui.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1172
+    <link rel="stylesheet" href="plugins/jqueryUI/jquery-ui.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
1173 1173
     <!-- Popper -->
1174
-    <script src="plugins/popper/umd/popper.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1174
+    <script src="plugins/popper/umd/popper.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1175 1175
     <!-- Bootstrap -->
1176
-    <script src="plugins/bootstrap/js/bootstrap.bundle.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1176
+    <script src="plugins/bootstrap/js/bootstrap.bundle.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1177 1177
     <!-- AdminLTE -->
1178
-    <script src="plugins/adminlte/js/adminlte.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1178
+    <script src="plugins/adminlte/js/adminlte.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1179 1179
     <!-- Altertify -->
1180 1180
     <!--<script type="text/javascript" src="plugins/alertifyjs/alertify.min.js"></script>-->
1181 1181
     <!-- Toastr -->
1182
-    <script type="text/javascript" src="plugins/toastr/toastr.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1182
+    <script type="text/javascript" src="plugins/toastr/toastr.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1183 1183
     <!-- STORE.JS -->
1184
-    <script type="text/javascript" src="plugins/store.js/dist/store.everything.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1184
+    <script type="text/javascript" src="plugins/store.js/dist/store.everything.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1185 1185
     <!-- cryptojs-aesphp -->
1186
-    <script type="text/javascript" src="includes/libraries/cryptojs/crypto-js.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1187
-    <script type="text/javascript" src="includes/libraries/cryptojs/encryption.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1186
+    <script type="text/javascript" src="includes/libraries/cryptojs/crypto-js.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1187
+    <script type="text/javascript" src="includes/libraries/cryptojs/encryption.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1188 1188
     <!-- pace -->
1189
-    <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>
1189
+    <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>
1190 1190
     <!-- clipboardjs -->
1191
-    <script type="text/javascript" src="plugins/clipboard/clipboard.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1191
+    <script type="text/javascript" src="plugins/clipboard/clipboard.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1192 1192
     <!-- select2 -->
1193
-    <script type="text/javascript" src="plugins/select2/js/select2.full.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1193
+    <script type="text/javascript" src="plugins/select2/js/select2.full.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1194 1194
     <!-- simplePassMeter -->
1195
-    <link rel="stylesheet" href="plugins/simplePassMeter/simplePassMeter.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" type="text/css" />
1196
-    <script type="text/javascript" src="plugins/simplePassMeter/simplePassMeter.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1195
+    <link rel="stylesheet" href="plugins/simplePassMeter/simplePassMeter.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" type="text/css" />
1196
+    <script type="text/javascript" src="plugins/simplePassMeter/simplePassMeter.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1197 1197
     <!-- platform -->
1198
-    <script type="text/javascript" src="plugins/platform/platform.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1198
+    <script type="text/javascript" src="plugins/platform/platform.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1199 1199
     <!-- radiobuttons -->
1200
-    <link rel="stylesheet" href="plugins/radioforbuttons/bootstrap-buttons.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" type="text/css" />
1201
-    <script type="text/javascript" src="plugins/radioforbuttons/jquery.radiosforbuttons.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1200
+    <link rel="stylesheet" href="plugins/radioforbuttons/bootstrap-buttons.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" type="text/css" />
1201
+    <script type="text/javascript" src="plugins/radioforbuttons/jquery.radiosforbuttons.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1202 1202
     <!-- ICHECK -->
1203 1203
     <!--<link rel="stylesheet" href="./plugins/icheck-material/icheck-material.min.css">-->
1204
-    <link rel="stylesheet" href="./plugins/icheck/skins/all.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
1205
-    <script type="text/javascript" src="./plugins/icheck/icheck.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1204
+    <link rel="stylesheet" href="./plugins/icheck/skins/all.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
1205
+    <script type="text/javascript" src="./plugins/icheck/icheck.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1206 1206
     <!-- bootstrap-add-clear -->
1207
-    <script type="text/javascript" src="plugins/bootstrap-add-clear/bootstrap-add-clear.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1207
+    <script type="text/javascript" src="plugins/bootstrap-add-clear/bootstrap-add-clear.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1208 1208
     <!-- DOMPurify -->
1209
-    <script type="text/javascript" src="plugins/DOMPurify/purify.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1209
+    <script type="text/javascript" src="plugins/DOMPurify/purify.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1210 1210
 
1211 1211
     <?php
1212 1212
     $get['page'] = $request->query->filter('page', null, FILTER_SANITIZE_SPECIAL_CHARS);
1213 1213
     if ($menuAdmin === true) {
1214 1214
         ?>
1215
-        <link rel="stylesheet" href="./plugins/toggles/css/toggles.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" />
1216
-        <link rel="stylesheet" href="./plugins/toggles/css/toggles-modern.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" />
1217
-        <script src="./plugins/toggles/toggles.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" type="text/javascript"></script>
1215
+        <link rel="stylesheet" href="./plugins/toggles/css/toggles.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" />
1216
+        <link rel="stylesheet" href="./plugins/toggles/css/toggles-modern.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" />
1217
+        <script src="./plugins/toggles/toggles.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" type="text/javascript"></script>
1218 1218
         <!-- InputMask -->
1219
-        <script src="./plugins/inputmask/jquery.inputmask.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1219
+        <script src="./plugins/inputmask/jquery.inputmask.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1220 1220
         <!-- Sortable -->
1221 1221
         <!--<script src="./plugins/sortable/jquery.sortable.js"></script>-->
1222 1222
         <!-- PLUPLOAD -->
1223
-        <script type="text/javascript" src="plugins/plupload/js/plupload.full.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1223
+        <script type="text/javascript" src="plugins/plupload/js/plupload.full.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1224 1224
         <!-- DataTables -->
1225
-        <link rel="stylesheet" src="./plugins/datatables/css/jquery.dataTables.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
1226
-        <link rel="stylesheet" src="./plugins/datatables/css/dataTables.bootstrap4.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
1227
-        <script type="text/javascript" src="./plugins/datatables/js/jquery.dataTables.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1228
-        <script type="text/javascript" src="./plugins/datatables/js/dataTables.bootstrap4.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1229
-        <link rel="stylesheet" src="./plugins/datatables/extensions/Responsive-2.2.2/css/responsive.bootstrap4.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
1230
-        <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>
1231
-        <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>
1232
-        <script type="text/javascript" src="./plugins/datatables/plugins/select.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1233
-        <link rel="stylesheet" src="./plugins/datatables/extensions/Scroller-1.5.0/css/scroller.bootstrap4.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
1234
-        <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>
1225
+        <link rel="stylesheet" src="./plugins/datatables/css/jquery.dataTables.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
1226
+        <link rel="stylesheet" src="./plugins/datatables/css/dataTables.bootstrap4.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
1227
+        <script type="text/javascript" src="./plugins/datatables/js/jquery.dataTables.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1228
+        <script type="text/javascript" src="./plugins/datatables/js/dataTables.bootstrap4.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1229
+        <link rel="stylesheet" src="./plugins/datatables/extensions/Responsive-2.2.2/css/responsive.bootstrap4.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
1230
+        <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>
1231
+        <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>
1232
+        <script type="text/javascript" src="./plugins/datatables/plugins/select.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1233
+        <link rel="stylesheet" src="./plugins/datatables/extensions/Scroller-1.5.0/css/scroller.bootstrap4.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
1234
+        <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>
1235 1235
     <?php
1236 1236
     } elseif (isset($get['page']) === true) {
1237 1237
         if (in_array($get['page'], ['items', 'import']) === true) {
1238 1238
             ?>
1239
-            <link rel="stylesheet" href="./plugins/jstree/themes/default/style.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" />
1240
-            <link rel="stylesheet" href="./plugins/jstree/themes/default-dark/style.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" />
1241
-            <script src="./plugins/jstree/jstree.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" type="text/javascript"></script>
1239
+            <link rel="stylesheet" href="./plugins/jstree/themes/default/style.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" />
1240
+            <link rel="stylesheet" href="./plugins/jstree/themes/default-dark/style.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" />
1241
+            <script src="./plugins/jstree/jstree.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" type="text/javascript"></script>
1242 1242
             <!-- countdownTimer -->
1243
-            <script src="./plugins/jquery.countdown360/jquery.countdown360.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1243
+            <script src="./plugins/jquery.countdown360/jquery.countdown360.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1244 1244
             <!-- SUMMERNOTE -->
1245
-            <link rel="stylesheet" href="./plugins/summernote/summernote-bs4.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
1246
-            <script src="./plugins/summernote/summernote-bs4.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1245
+            <link rel="stylesheet" href="./plugins/summernote/summernote-bs4.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
1246
+            <script src="./plugins/summernote/summernote-bs4.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1247 1247
             <!-- date-picker -->
1248
-            <link rel="stylesheet" href="./plugins/bootstrap-datepicker/css/bootstrap-datepicker3.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
1249
-            <script src="./plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1248
+            <link rel="stylesheet" href="./plugins/bootstrap-datepicker/css/bootstrap-datepicker3.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
1249
+            <script src="./plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1250 1250
             <!-- time-picker -->
1251
-            <link rel="stylesheet" href="./plugins/timepicker/bootstrap-timepicker.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
1252
-            <script src="./plugins/timepicker/bootstrap-timepicker.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1251
+            <link rel="stylesheet" href="./plugins/timepicker/bootstrap-timepicker.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
1252
+            <script src="./plugins/timepicker/bootstrap-timepicker.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1253 1253
             <!-- PLUPLOAD -->
1254
-            <script type="text/javascript" src="plugins/plupload/js/plupload.full.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1254
+            <script type="text/javascript" src="plugins/plupload/js/plupload.full.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1255 1255
             <!-- VALIDATE -->
1256
-            <script type="text/javascript" src="plugins/jquery-validation/jquery.validate.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1256
+            <script type="text/javascript" src="plugins/jquery-validation/jquery.validate.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1257 1257
             <!-- PWSTRENGHT -->
1258
-            <script type="text/javascript" src="plugins/zxcvbn/zxcvbn.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1259
-            <script type="text/javascript" src="plugins/jquery.pwstrength/pwstrength-bootstrap.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1258
+            <script type="text/javascript" src="plugins/zxcvbn/zxcvbn.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1259
+            <script type="text/javascript" src="plugins/jquery.pwstrength/pwstrength-bootstrap.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1260 1260
             <!-- TOGGLE -->
1261
-            <link rel="stylesheet" href="./plugins/toggles/css/toggles.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" />
1262
-            <link rel="stylesheet" href="./plugins/toggles/css/toggles-modern.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" />
1263
-            <script src="./plugins/toggles/toggles.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" type="text/javascript"></script>
1261
+            <link rel="stylesheet" href="./plugins/toggles/css/toggles.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" />
1262
+            <link rel="stylesheet" href="./plugins/toggles/css/toggles-modern.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" />
1263
+            <script src="./plugins/toggles/toggles.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" type="text/javascript"></script>
1264 1264
         <?php
1265 1265
         } elseif (in_array($get['page'], ['search', 'folders', 'users', 'roles', 'utilities.deletion', 'utilities.logs', 'utilities.database', 'utilities.renewal', 'tasks']) === true) {
1266 1266
             ?>
1267 1267
             <!-- DataTables -->
1268
-            <link rel="stylesheet" src="./plugins/datatables/css/jquery.dataTables.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
1269
-            <link rel="stylesheet" src="./plugins/datatables/css/dataTables.bootstrap4.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
1270
-            <script type="text/javascript" src="./plugins/datatables/js/jquery.dataTables.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1271
-            <script type="text/javascript" src="./plugins/datatables/js/dataTables.bootstrap4.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1272
-            <link rel="stylesheet" src="./plugins/datatables/extensions/Responsive-2.2.2/css/responsive.bootstrap4.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
1273
-            <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>
1274
-            <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>
1275
-            <script type="text/javascript" src="./plugins/datatables/plugins/select.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1276
-            <link rel="stylesheet" src="./plugins/datatables/extensions/Scroller-1.5.0/css/scroller.bootstrap4.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
1277
-            <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>
1268
+            <link rel="stylesheet" src="./plugins/datatables/css/jquery.dataTables.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
1269
+            <link rel="stylesheet" src="./plugins/datatables/css/dataTables.bootstrap4.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
1270
+            <script type="text/javascript" src="./plugins/datatables/js/jquery.dataTables.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1271
+            <script type="text/javascript" src="./plugins/datatables/js/dataTables.bootstrap4.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1272
+            <link rel="stylesheet" src="./plugins/datatables/extensions/Responsive-2.2.2/css/responsive.bootstrap4.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
1273
+            <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>
1274
+            <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>
1275
+            <script type="text/javascript" src="./plugins/datatables/plugins/select.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1276
+            <link rel="stylesheet" src="./plugins/datatables/extensions/Scroller-1.5.0/css/scroller.bootstrap4.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
1277
+            <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>
1278 1278
             <!-- dater picker -->
1279
-            <link rel="stylesheet" href="./plugins/bootstrap-datepicker/css/bootstrap-datepicker3.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
1280
-            <script src="./plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1279
+            <link rel="stylesheet" href="./plugins/bootstrap-datepicker/css/bootstrap-datepicker3.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
1280
+            <script src="./plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1281 1281
             <!-- daterange picker -->
1282
-            <link rel="stylesheet" href="./plugins/daterangepicker/daterangepicker.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>">
1283
-            <script src="./plugins/moment/moment.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1284
-            <script src="./plugins/daterangepicker/daterangepicker.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1282
+            <link rel="stylesheet" href="./plugins/daterangepicker/daterangepicker.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>">
1283
+            <script src="./plugins/moment/moment.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1284
+            <script src="./plugins/daterangepicker/daterangepicker.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1285 1285
             <!-- SlimScroll -->
1286
-            <script src="./plugins/slimScroll/jquery.slimscroll.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1286
+            <script src="./plugins/slimScroll/jquery.slimscroll.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1287 1287
             <!-- FastClick -->
1288
-            <script src="./plugins/fastclick/fastclick.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1288
+            <script src="./plugins/fastclick/fastclick.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1289 1289
         <?php
1290 1290
         } elseif ($get['page'] === 'profile') {
1291 1291
             ?>
1292 1292
             <!-- FILESAVER -->
1293
-            <script type="text/javascript" src="plugins/downloadjs/download.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1293
+            <script type="text/javascript" src="plugins/downloadjs/download.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1294 1294
             <!-- PLUPLOAD -->
1295
-            <script type="text/javascript" src="plugins/plupload/js/plupload.full.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1295
+            <script type="text/javascript" src="plugins/plupload/js/plupload.full.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1296 1296
         <?php
1297 1297
         } elseif ($get['page'] === 'export') {
1298 1298
             ?>
1299 1299
             <!-- FILESAVER -->
1300
-            <script type="text/javascript" src="plugins/downloadjs/download.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1300
+            <script type="text/javascript" src="plugins/downloadjs/download.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1301 1301
             <!-- PWSTRENGHT -->
1302
-            <script type="text/javascript" src="plugins/zxcvbn/zxcvbn.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1303
-            <script type="text/javascript" src="plugins/jquery.pwstrength/pwstrength-bootstrap.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1302
+            <script type="text/javascript" src="plugins/zxcvbn/zxcvbn.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1303
+            <script type="text/javascript" src="plugins/jquery.pwstrength/pwstrength-bootstrap.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1304 1304
         <?php
1305 1305
         }
1306 1306
     }
1307 1307
     ?>
1308 1308
     <!-- functions -->
1309
-    <script type="text/javascript" src="includes/js/functions.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1310
-    <script type="text/javascript" src="includes/js/CreateRandomString.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script>
1309
+    <script type="text/javascript" src="includes/js/functions.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1310
+    <script type="text/javascript" src="includes/js/CreateRandomString.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script>
1311 1311
     <input type="hidden" id="encryptClientServerStatus" value="<?php echo $SETTINGS['encryptClientServer'] ?? 1; ?>" />
1312 1312
 
1313 1313
     </body>
@@ -1397,65 +1397,65 @@  discard block
 block discarded – undo
1397 1397
 
1398 1398
 // Load links, css and javascripts
1399 1399
 if (isset($SETTINGS['cpassman_dir']) === true) {
1400
-    include_once $SETTINGS['cpassman_dir'] . '/includes/core/load.js.php';
1400
+    include_once $SETTINGS['cpassman_dir'].'/includes/core/load.js.php';
1401 1401
     if ($menuAdmin === true) {
1402
-        include_once $SETTINGS['cpassman_dir'] . '/pages/admin.js.php';
1402
+        include_once $SETTINGS['cpassman_dir'].'/pages/admin.js.php';
1403 1403
         if ($get['page'] === '2fa') {
1404
-            include_once $SETTINGS['cpassman_dir'] . '/pages/2fa.js.php';
1404
+            include_once $SETTINGS['cpassman_dir'].'/pages/2fa.js.php';
1405 1405
         } elseif ($get['page'] === 'api') {
1406
-            include_once $SETTINGS['cpassman_dir'] . '/pages/api.js.php';
1406
+            include_once $SETTINGS['cpassman_dir'].'/pages/api.js.php';
1407 1407
         } elseif ($get['page'] === 'backups') {
1408
-            include_once $SETTINGS['cpassman_dir'] . '/pages/backups.js.php';
1408
+            include_once $SETTINGS['cpassman_dir'].'/pages/backups.js.php';
1409 1409
         } elseif ($get['page'] === 'emails') {
1410
-            include_once $SETTINGS['cpassman_dir'] . '/pages/emails.js.php';
1410
+            include_once $SETTINGS['cpassman_dir'].'/pages/emails.js.php';
1411 1411
         } elseif ($get['page'] === 'ldap') {
1412
-            include_once $SETTINGS['cpassman_dir'] . '/pages/ldap.js.php';
1412
+            include_once $SETTINGS['cpassman_dir'].'/pages/ldap.js.php';
1413 1413
         } elseif ($get['page'] === 'uploads') {
1414
-            include_once $SETTINGS['cpassman_dir'] . '/pages/uploads.js.php';
1414
+            include_once $SETTINGS['cpassman_dir'].'/pages/uploads.js.php';
1415 1415
         } elseif ($get['page'] === 'fields') {
1416
-            include_once $SETTINGS['cpassman_dir'] . '/pages/fields.js.php';
1416
+            include_once $SETTINGS['cpassman_dir'].'/pages/fields.js.php';
1417 1417
         } elseif ($get['page'] === 'options') {
1418
-            include_once $SETTINGS['cpassman_dir'] . '/pages/options.js.php';
1418
+            include_once $SETTINGS['cpassman_dir'].'/pages/options.js.php';
1419 1419
         } elseif ($get['page'] === 'statistics') {
1420
-            include_once $SETTINGS['cpassman_dir'] . '/pages/statistics.js.php';
1420
+            include_once $SETTINGS['cpassman_dir'].'/pages/statistics.js.php';
1421 1421
         } elseif ($get['page'] === 'tasks') {
1422
-            include_once $SETTINGS['cpassman_dir'] . '/pages/tasks.js.php';
1422
+            include_once $SETTINGS['cpassman_dir'].'/pages/tasks.js.php';
1423 1423
         } elseif ($get['page'] === 'oauth' && WIP === true) {
1424
-            include_once $SETTINGS['cpassman_dir'] . '/pages/oauth.js.php';        
1424
+            include_once $SETTINGS['cpassman_dir'].'/pages/oauth.js.php';        
1425 1425
         } elseif ($get['page'] === 'tools') {
1426
-            include_once $SETTINGS['cpassman_dir'] . '/pages/tools.js.php';
1426
+            include_once $SETTINGS['cpassman_dir'].'/pages/tools.js.php';
1427 1427
         }
1428 1428
     } elseif (isset($get['page']) === true && $get['page'] !== '') {
1429 1429
         if ($get['page'] === 'items') {
1430
-            include_once $SETTINGS['cpassman_dir'] . '/pages/items.js.php';
1430
+            include_once $SETTINGS['cpassman_dir'].'/pages/items.js.php';
1431 1431
         } elseif ($get['page'] === 'import') {
1432
-            include_once $SETTINGS['cpassman_dir'] . '/pages/import.js.php';
1432
+            include_once $SETTINGS['cpassman_dir'].'/pages/import.js.php';
1433 1433
         } elseif ($get['page'] === 'export') {
1434
-            include_once $SETTINGS['cpassman_dir'] . '/pages/export.js.php';
1434
+            include_once $SETTINGS['cpassman_dir'].'/pages/export.js.php';
1435 1435
         } elseif ($get['page'] === 'offline') {
1436
-            include_once $SETTINGS['cpassman_dir'] . '/pages/offline.js.php';
1436
+            include_once $SETTINGS['cpassman_dir'].'/pages/offline.js.php';
1437 1437
         } elseif ($get['page'] === 'search') {
1438
-            include_once $SETTINGS['cpassman_dir'] . '/pages/search.js.php';
1438
+            include_once $SETTINGS['cpassman_dir'].'/pages/search.js.php';
1439 1439
         } elseif ($get['page'] === 'profile') {
1440
-            include_once $SETTINGS['cpassman_dir'] . '/pages/profile.js.php';
1440
+            include_once $SETTINGS['cpassman_dir'].'/pages/profile.js.php';
1441 1441
         } elseif ($get['page'] === 'favourites') {
1442
-            include_once $SETTINGS['cpassman_dir'] . '/pages/favorites.js.php';
1442
+            include_once $SETTINGS['cpassman_dir'].'/pages/favorites.js.php';
1443 1443
         } elseif ($get['page'] === 'folders') {
1444
-            include_once $SETTINGS['cpassman_dir'] . '/pages/folders.js.php';
1444
+            include_once $SETTINGS['cpassman_dir'].'/pages/folders.js.php';
1445 1445
         } elseif ($get['page'] === 'users') {
1446
-            include_once $SETTINGS['cpassman_dir'] . '/pages/users.js.php';
1446
+            include_once $SETTINGS['cpassman_dir'].'/pages/users.js.php';
1447 1447
         } elseif ($get['page'] === 'roles') {
1448
-            include_once $SETTINGS['cpassman_dir'] . '/pages/roles.js.php';
1448
+            include_once $SETTINGS['cpassman_dir'].'/pages/roles.js.php';
1449 1449
         } elseif ($get['page'] === 'utilities.deletion') {
1450
-            include_once $SETTINGS['cpassman_dir'] . '/pages/utilities.deletion.js.php';
1450
+            include_once $SETTINGS['cpassman_dir'].'/pages/utilities.deletion.js.php';
1451 1451
         } elseif ($get['page'] === 'utilities.logs') {
1452
-            include_once $SETTINGS['cpassman_dir'] . '/pages/utilities.logs.js.php';
1452
+            include_once $SETTINGS['cpassman_dir'].'/pages/utilities.logs.js.php';
1453 1453
         } elseif ($get['page'] === 'utilities.database') {
1454
-            include_once $SETTINGS['cpassman_dir'] . '/pages/utilities.database.js.php';
1454
+            include_once $SETTINGS['cpassman_dir'].'/pages/utilities.database.js.php';
1455 1455
         } elseif ($get['page'] === 'utilities.renewal') {
1456
-            include_once $SETTINGS['cpassman_dir'] . '/pages/utilities.renewal.js.php';
1456
+            include_once $SETTINGS['cpassman_dir'].'/pages/utilities.renewal.js.php';
1457 1457
         }
1458 1458
     } else {
1459
-        include_once $SETTINGS['cpassman_dir'] . '/includes/core/login.js.php';
1459
+        include_once $SETTINGS['cpassman_dir'].'/includes/core/login.js.php';
1460 1460
     }
1461 1461
 }
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,8 +81,9 @@  discard block
 block discarded – undo
81 81
 $session = SessionManager::getSession();
82 82
 
83 83
 // Random encryption key
84
-if ($session->get('key') === null)
84
+if ($session->get('key') === null) {
85 85
     $session->set('key', generateQuickPassword(30, false));
86
+}
86 87
 
87 88
 $request = SymfonyRequest::createFromGlobals();
88 89
 $configManager = new ConfigManager(__DIR__, $request->getRequestUri());
@@ -943,7 +944,10 @@  discard block
 block discarded – undo
943 944
                                     <input type="password" class="form-control" id="dialog-ldap-user-build-keys-database-code">
944 945
                                     <br/>
945 946
                                 </div>
946
-                                <div class="input-group mb-3<?php if ($session_auth_type === 'oauth2') echo ' hidden'; ?>">
947
+                                <div class="input-group mb-3<?php if ($session_auth_type === 'oauth2') {
948
+    echo ' hidden';
949
+}
950
+?>">
947 951
                                     <div class="input-group-prepend">
948 952
                                         <span class="input-group-text"><?php echo $lang->get('provide_your_current_password'); ?></span>
949 953
                                     </div>
Please login to merge, or discard this patch.
sources/import.queries.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 ) {
79 79
     // Not allowed page
80 80
     $session->set('system-error_code', ERR_NOT_ALLOWED);
81
-    include $SETTINGS['cpassman_dir'] . '/error.php';
81
+    include $SETTINGS['cpassman_dir'].'/error.php';
82 82
     exit;
83 83
 }
84 84
 
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
             $lexer = new Lexer($config);
167 167
             $config->setIgnoreHeaderLine('true');
168 168
             $interpreter = new Interpreter();
169
-            $interpreter->addObserver(function (array $row) use (&$valuesToImport,$header) {
169
+            $interpreter->addObserver(function(array $row) use (&$valuesToImport, $header) {
170 170
                 $rowData = array_combine($header, $row);
171 171
                 $valuesToImport[] = array(
172 172
                     'Label' => $rowData['label'],
@@ -707,7 +707,7 @@  discard block
 block discarded – undo
707 707
         ];
708 708
         $startPathLevel = 1;
709 709
 
710
-        foreach($post_folders as $folder) {
710
+        foreach ($post_folders as $folder) {
711 711
             // get parent id
712 712
             $parentId = $arrFolders[$folder['parentFolderId']];
713 713
 
@@ -778,7 +778,7 @@  discard block
 block discarded – undo
778 778
         DB::startTransaction();
779 779
 
780 780
         // Import all items
781
-        foreach($post_items as $item) {
781
+        foreach ($post_items as $item) {
782 782
             // get info about this folder
783 783
             $destinationFolderMore = DB::queryFirstRow(
784 784
                 'SELECT title FROM '.prefixTable('nested_tree').' WHERE id = %i',
@@ -1019,7 +1019,7 @@  discard block
 block discarded – undo
1019 1019
     ];
1020 1020
 }
1021 1021
 
1022
-spl_autoload_register(function ($class) {
1022
+spl_autoload_register(function($class) {
1023 1023
     $prefix = 'League\\Csv\\';
1024 1024
     $base_dir = __DIR__.'/src/';
1025 1025
     $len = strlen($prefix);
Please login to merge, or discard this patch.
api/inc/jwt_utils.php 1 patch
Indentation   +51 added lines, -51 removed lines patch added patch discarded remove patch
@@ -37,45 +37,45 @@  discard block
 block discarded – undo
37 37
  * @return boolean
38 38
  */
39 39
 function is_jwt_valid($jwt) {
40
-	try {
41
-		$decoded = (array) JWT::decode($jwt, new Key(DB_PASSWD, 'HS256'));
40
+    try {
41
+        $decoded = (array) JWT::decode($jwt, new Key(DB_PASSWD, 'HS256'));
42 42
 
43
-		// Check if expiration is reached
44
-		if ($decoded['exp'] - time() < 0) {
45
-			return false;
46
-		}
43
+        // Check if expiration is reached
44
+        if ($decoded['exp'] - time() < 0) {
45
+            return false;
46
+        }
47 47
 /*
48 48
 		$decoded1 = JWT::decode($jwt, new Key(DB_PASSWD, 'HS256'), $headers = new stdClass());
49 49
 		print_r($headers);
50 50
 */
51 51
 
52
-		return true;
53
-	} catch (InvalidArgumentException $e) {
54
-		// provided key/key-array is empty or malformed.
55
-		return false;
56
-	} catch (DomainException $e) {
57
-		// provided algorithm is unsupported OR
58
-		// provided key is invalid OR
59
-		// unknown error thrown in openSSL or libsodium OR
60
-		// libsodium is required but not available.
61
-		return false;
62
-	} catch (SignatureInvalidException $e) {
63
-		// provided JWT signature verification failed.
64
-		return false;
65
-	} catch (BeforeValidException $e) {
66
-		// provided JWT is trying to be used before "nbf" claim OR
67
-		// provided JWT is trying to be used before "iat" claim.
68
-		return false;
69
-	} catch (ExpiredException $e) {
70
-		// provided JWT is trying to be used after "exp" claim.
71
-		return false;
72
-	} catch (UnexpectedValueException $e) {
73
-		// provided JWT is malformed OR
74
-		// provided JWT is missing an algorithm / using an unsupported algorithm OR
75
-		// provided JWT algorithm does not match provided key OR
76
-		// provided key ID in key/key-array is empty or invalid.
77
-		return false;
78
-	}
52
+        return true;
53
+    } catch (InvalidArgumentException $e) {
54
+        // provided key/key-array is empty or malformed.
55
+        return false;
56
+    } catch (DomainException $e) {
57
+        // provided algorithm is unsupported OR
58
+        // provided key is invalid OR
59
+        // unknown error thrown in openSSL or libsodium OR
60
+        // libsodium is required but not available.
61
+        return false;
62
+    } catch (SignatureInvalidException $e) {
63
+        // provided JWT signature verification failed.
64
+        return false;
65
+    } catch (BeforeValidException $e) {
66
+        // provided JWT is trying to be used before "nbf" claim OR
67
+        // provided JWT is trying to be used before "iat" claim.
68
+        return false;
69
+    } catch (ExpiredException $e) {
70
+        // provided JWT is trying to be used after "exp" claim.
71
+        return false;
72
+    } catch (UnexpectedValueException $e) {
73
+        // provided JWT is malformed OR
74
+        // provided JWT is missing an algorithm / using an unsupported algorithm OR
75
+        // provided JWT algorithm does not match provided key OR
76
+        // provided key ID in key/key-array is empty or invalid.
77
+        return false;
78
+    }
79 79
 }
80 80
 
81 81
 function base64url_encode($data) {
@@ -84,24 +84,24 @@  discard block
 block discarded – undo
84 84
 
85 85
 function get_authorization_header()
86 86
 {
87
-	$request = symfonyRequest::createFromGlobals();
88
-	$authorizationHeader = $request->headers->get('Authorization');
89
-	$headers = null;
87
+    $request = symfonyRequest::createFromGlobals();
88
+    $authorizationHeader = $request->headers->get('Authorization');
89
+    $headers = null;
90 90
 	
91
-	// Check if the authorization header is not empty
92
-	if (!empty($authorizationHeader)) {
93
-		$headers = trim($authorizationHeader);
94
-	} else if (function_exists('apache_request_headers') === true) {
95
-		$requestHeaders = (array) apache_request_headers();
96
-		// Server-side fix for bug in old Android versions (a nice side-effect of this fix means we don't care about capitalization for Authorization)
97
-		$requestHeaders = array_combine(array_map('ucwords', array_keys($requestHeaders)), array_values($requestHeaders));
98
-		//print_r($requestHeaders);
99
-		if (isset($requestHeaders['Authorization']) === true) {
100
-			$headers = trim($requestHeaders['Authorization']);
101
-		}
102
-	}
91
+    // Check if the authorization header is not empty
92
+    if (!empty($authorizationHeader)) {
93
+        $headers = trim($authorizationHeader);
94
+    } else if (function_exists('apache_request_headers') === true) {
95
+        $requestHeaders = (array) apache_request_headers();
96
+        // Server-side fix for bug in old Android versions (a nice side-effect of this fix means we don't care about capitalization for Authorization)
97
+        $requestHeaders = array_combine(array_map('ucwords', array_keys($requestHeaders)), array_values($requestHeaders));
98
+        //print_r($requestHeaders);
99
+        if (isset($requestHeaders['Authorization']) === true) {
100
+            $headers = trim($requestHeaders['Authorization']);
101
+        }
102
+    }
103 103
 	
104
-	return $headers;
104
+    return $headers;
105 105
 }
106 106
 
107 107
 function get_bearer_token() {
@@ -118,8 +118,8 @@  discard block
 block discarded – undo
118 118
 
119 119
 function get_bearer_data($jwt) {
120 120
     // split the jwt
121
-	$tokenParts = explode('.', $jwt);
122
-	$payload = base64_decode($tokenParts[1]);
121
+    $tokenParts = explode('.', $jwt);
122
+    $payload = base64_decode($tokenParts[1]);
123 123
 	
124 124
     // HEADER: Get the access token from the header
125 125
     if (empty($payload) === false) {
Please login to merge, or discard this patch.
api/index.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -39,13 +39,13 @@  discard block
 block discarded – undo
39 39
 header("Access-Control-Allow-Methods: POST, GET");
40 40
 header("Access-Control-Max-Age: 3600");
41 41
 header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With");
42
-require __DIR__ . "/inc/bootstrap.php";
42
+require __DIR__."/inc/bootstrap.php";
43 43
 
44 44
 // sanitize url segments
45 45
 $base = new BaseController();
46 46
 $uri = $base->getUriSegments();
47 47
 if (!is_array($uri)) {
48
-    $uri = [$uri];  // ensure $uril is table
48
+    $uri = [$uri]; // ensure $uril is table
49 49
 }
50 50
 
51 51
 // Prepare DB password
@@ -61,9 +61,9 @@  discard block
 block discarded – undo
61 61
 if ($uri[0] === 'authorize') {
62 62
     // Is API enabled in Teampass settings
63 63
     if ($apiStatus['error'] === false) {
64
-        require API_ROOT_PATH . "/Controller/Api/AuthController.php";
64
+        require API_ROOT_PATH."/Controller/Api/AuthController.php";
65 65
         $objFeedController = new AuthController();
66
-        $strMethodName = $uri[0] . 'Action';
66
+        $strMethodName = $uri[0].'Action';
67 67
         $objFeedController->{$strMethodName}();
68 68
     } else {
69 69
         // Error management
@@ -89,9 +89,9 @@  discard block
 block discarded – undo
89 89
 
90 90
     // action related to USER
91 91
     } elseif ($controller === 'user') {
92
-        require API_ROOT_PATH . "/Controller/Api/UserController.php";
92
+        require API_ROOT_PATH."/Controller/Api/UserController.php";
93 93
         $objFeedController = new UserController();
94
-        $strMethodName = (string) $action . 'Action';
94
+        $strMethodName = (string) $action.'Action';
95 95
         $objFeedController->{$strMethodName}();
96 96
 
97 97
     // action related to ITEM
Please login to merge, or discard this patch.
sources/roles.queries.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 ) {
78 78
     // Not allowed page
79 79
     $session->set('system-error_code', ERR_NOT_ALLOWED);
80
-    include $SETTINGS['cpassman_dir'] . '/error.php';
80
+    include $SETTINGS['cpassman_dir'].'/error.php';
81 81
     exit;
82 82
 }
83 83
 
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
                         );
463 463
 
464 464
                         // add new role to user
465
-                        $tmp = $data_tmp['fonction_id'] . (substr($data_tmp['fonction_id'], -1) == ';' ? $role_id : ';' . $role_id);
465
+                        $tmp = $data_tmp['fonction_id'].(substr($data_tmp['fonction_id'], -1) == ';' ? $role_id : ';'.$role_id);
466 466
                         $session->set('user-roles', str_replace(';;', ';', $tmp));
467 467
 
468 468
                         // store in DB
@@ -723,7 +723,7 @@  discard block
 block discarded – undo
723 723
                         $groupsData = $openLdapExtra->getADGroups($ldapConnection, $SETTINGS);
724 724
                         break;
725 725
                     default:
726
-                        throw new Exception("Unsupported LDAP type: " . $SETTINGS['ldap_type']);
726
+                        throw new Exception("Unsupported LDAP type: ".$SETTINGS['ldap_type']);
727 727
                 }
728 728
             } catch (Exception $e) {
729 729
                 if (defined('LOG_TO_SERVER') && LOG_TO_SERVER === true) {
@@ -743,7 +743,7 @@  discard block
 block discarded – undo
743 743
             } else {
744 744
                 // Handle successful retrieval of groups
745 745
                 // exists in Teampass
746
-                foreach($groupsData['userGroups'] as $key => $group) {
746
+                foreach ($groupsData['userGroups'] as $key => $group) {
747 747
                     $role_detail = DB::queryfirstrow(
748 748
                         'SELECT a.increment_id as increment_id, a.role_id as role_id, r.title as title
749 749
                         FROM '.prefixTable('ldap_groups_roles').' AS a
@@ -768,7 +768,7 @@  discard block
 block discarded – undo
768 768
             
769 769
             // Get all groups in Teampass
770 770
             $teampassRoles = array();
771
-            $rows = DB::query('SELECT id,title FROM ' . prefixTable('roles_title'));
771
+            $rows = DB::query('SELECT id,title FROM '.prefixTable('roles_title'));
772 772
             foreach ($rows as $record) {
773 773
                 array_push(
774 774
                     $teampassRoles,
Please login to merge, or discard this patch.
sources/ldap.queries.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 ) {
81 81
     // Not allowed page
82 82
     $session->set('system-error_code', ERR_NOT_ALLOWED);
83
-    include $SETTINGS['cpassman_dir'] . '/error.php';
83
+    include $SETTINGS['cpassman_dir'].'/error.php';
84 84
     exit;
85 85
 }
86 86
 
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
                     $openLdapExtra = new OpenLdapExtra();
155 155
                     break;
156 156
                 default:
157
-                    throw new Exception("Unsupported LDAP type: " . $SETTINGS['ldap_type']);
157
+                    throw new Exception("Unsupported LDAP type: ".$SETTINGS['ldap_type']);
158 158
             }
159 159
         } catch (Exception $e) {
160 160
             if (defined('LOG_TO_SERVER') && LOG_TO_SERVER === true) {
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
             // 2- Get user info from AD
174 174
             // We want to isolate attribute ldap_user_attribute or mostly samAccountName
175 175
             $userADInfos = $ldapConnection->query()
176
-                ->where((isset($SETTINGS['ldap_user_attribute']) ===true && empty($SETTINGS['ldap_user_attribute']) === false) ? $SETTINGS['ldap_user_attribute'] : 'samaccountname', '=', $post_username)
176
+                ->where((isset($SETTINGS['ldap_user_attribute']) === true && empty($SETTINGS['ldap_user_attribute']) === false) ? $SETTINGS['ldap_user_attribute'] : 'samaccountname', '=', $post_username)
177 177
                 ->firstOrFail();
178 178
 
179 179
             // Is user enabled? Only ActiveDirectory
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
         } catch (\LdapRecord\Query\ObjectNotFoundException $e) {
195 195
             $error = $e->getDetailedError();
196 196
             if ($error && defined('LOG_TO_SERVER') && LOG_TO_SERVER === true) {
197
-                error_log('TEAMPASS Error - LDAP - '.$error->getErrorCode()." - ".$error->getErrorMessage(). " - ".$error->getDiagnosticMessage());
197
+                error_log('TEAMPASS Error - LDAP - '.$error->getErrorCode()." - ".$error->getErrorMessage()." - ".$error->getDiagnosticMessage());
198 198
             } 
199 199
             // deepcode ignore ServerLeak: No important data is sent and is encrypted before being sent
200 200
             echo prepareExchangedData(
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
             // For OpenLDAP and others, we use attribute dn
214 214
             $userAuthAttempt = $ldapConnection->auth()->attempt(
215 215
                 $SETTINGS['ldap_type'] === 'ActiveDirectory' ?
216
-                    $userADInfos['userprincipalname'][0] :  // refering to https://ldaprecord.com/docs/core/v2/authentication#basic-authentication
216
+                    $userADInfos['userprincipalname'][0] : // refering to https://ldaprecord.com/docs/core/v2/authentication#basic-authentication
217 217
                     $userADInfos['dn'],
218 218
                 $post_password
219 219
             );
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
         } catch (\LdapRecord\Query\ObjectNotFoundException $e) {
233 233
             $error = $e->getDetailedError();
234 234
             if ($error && defined('LOG_TO_SERVER') && LOG_TO_SERVER === true) {
235
-                error_log('TEAMPASS Error - LDAP - '.$error->getErrorCode()." - ".$error->getErrorMessage(). " - ".$error->getDiagnosticMessage());
235
+                error_log('TEAMPASS Error - LDAP - '.$error->getErrorCode()." - ".$error->getErrorMessage()." - ".$error->getDiagnosticMessage());
236 236
             }
237 237
             // deepcode ignore ServerLeak: No important data is sent and is encrypted before being sent
238 238
             echo prepareExchangedData(
Please login to merge, or discard this patch.
scripts/background_tasks___functions.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -102,11 +102,11 @@  discard block
 block discarded – undo
102 102
 function provideLog(string $message, array $SETTINGS)
103 103
 {
104 104
     if (defined('LOG_TO_SERVER') && LOG_TO_SERVER === true) {
105
-        error_log((string) date($SETTINGS['date_format'] . ' ' . $SETTINGS['time_format'], time()) . ' - '.$message);
105
+        error_log((string) date($SETTINGS['date_format'].' '.$SETTINGS['time_format'], time()).' - '.$message);
106 106
     }
107 107
 }
108 108
 
109
-function performVisibleFoldersHtmlUpdate (int $user_id)
109
+function performVisibleFoldersHtmlUpdate(int $user_id)
110 110
 {
111 111
     $html = [];
112 112
 
@@ -116,10 +116,10 @@  discard block
 block discarded – undo
116 116
 
117 117
     // get current folders visible for user
118 118
     $cache_tree = DB::queryFirstRow(
119
-        'SELECT increment_id, data FROM ' . prefixTable('cache_tree') . ' WHERE user_id = %i',
119
+        'SELECT increment_id, data FROM '.prefixTable('cache_tree').' WHERE user_id = %i',
120 120
         $user_id
121 121
     );
122
-    $folders = json_decode($cache_tree['data'], true);//print_r($folders);
122
+    $folders = json_decode($cache_tree['data'], true); //print_r($folders);
123 123
     foreach ($folders as $folder) {
124 124
         $idFolder = (int) explode("li_", $folder['id'])[1];
125 125
 
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 
133 133
         // get folder info
134 134
         $folder = DB::queryFirstRow(
135
-            'SELECT title, parent_id, personal_folder FROM ' . prefixTable('nested_tree') . ' WHERE id = %i',
135
+            'SELECT title, parent_id, personal_folder FROM '.prefixTable('nested_tree').' WHERE id = %i',
136 136
             $idFolder
137 137
         );
138 138
 
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 function subTaskStatus($taskId)
168 168
 {
169 169
     $subTasks = DB::query(
170
-        'SELECT * FROM ' . prefixTable('background_subtasks') . ' WHERE task_id = %i',
170
+        'SELECT * FROM '.prefixTable('background_subtasks').' WHERE task_id = %i',
171 171
         $taskId
172 172
     );
173 173
 
Please login to merge, or discard this patch.
pages/tasks.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -149,8 +149,7 @@
 block discarded – undo
149 149
                                             </div>
150 150
         <?php
151 151
     }
152
-}
153
-catch (Exception $e) {
152
+} catch (Exception $e) {
154 153
     if (defined('LOG_TO_SERVER') && LOG_TO_SERVER === true) {
155 154
         error_log('TEAMPASS Error - tasks page - '.$e->getMessage());
156 155
     }
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('tasks') === false) {
65 65
     // Not allowed page
66 66
     $session->set('system-error_code', ERR_NOT_ALLOWED);
67
-    include $SETTINGS['cpassman_dir'] . '/error.php';
67
+    include $SETTINGS['cpassman_dir'].'/error.php';
68 68
     exit;
69 69
 }
70 70
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     // Get last cron execution timestamp
127 127
     DB::query(
128 128
         'SELECT valeur
129
-        FROM ' . prefixTable('misc') . '
129
+        FROM ' . prefixTable('misc').'
130 130
         WHERE type = %s AND intitule = %s and valeur >= %d',
131 131
         'admin',
132 132
         'last_cron_exec',
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
                                             $task = isset($SETTINGS['users_personal_folder_task']) === true ? explode(";", $SETTINGS['users_personal_folder_task']) : [];
235 235
                                             ?>
236 236
                                             <input type='text' disabled class='form-control form-control-sm' id='users_personal_folder_task_parameter' value='<?php echo isset($task[0]) === true && empty($task[0]) === false ? $lang->get($task[0])." ".(isset($task[2]) === true ? strtolower($lang->get('day')).' '.$task[2].' ' : '').$lang->get('at')." ".(isset($task[1]) === true ? $task[1] : '') : $lang->get('not_defined') ?>'>
237
-                                            <input type='hidden' disabled class='form-control form-control-sm' id='users_personal_folder_task_parameter_value' value='<?php echo isset($task[0]) === true ? $task[0].";".(isset($task[1]) === true ? $task[1] : '').(isset($task[2]) === true ? $task[2] : '') : '';?>'>
237
+                                            <input type='hidden' disabled class='form-control form-control-sm' id='users_personal_folder_task_parameter_value' value='<?php echo isset($task[0]) === true ? $task[0].";".(isset($task[1]) === true ? $task[1] : '').(isset($task[2]) === true ? $task[2] : '') : ''; ?>'>
238 238
                                         </div>
239 239
                                         <div class='col-2'>
240 240
                                             <button class="btn btn-primary task-define" data-task="users_personal_folder_task">
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
                                             $task = isset($SETTINGS['clean_orphan_objects_task']) === true ? explode(";", $SETTINGS['clean_orphan_objects_task']) : [];
257 257
                                             ?>
258 258
                                             <input type='text' disabled class='form-control form-control-sm' id='clean_orphan_objects_task_parameter' value='<?php echo isset($task[0]) === true && empty($task[0]) === false ? $lang->get($task[0])." ".(isset($task[2]) === true ? strtolower($lang->get('day')).' '.$task[2].' ' : '').$lang->get('at')." ".(isset($task[1]) === true ? $task[1] : '') : $lang->get('not_defined') ?>'>
259
-                                            <input type='hidden' disabled class='form-control form-control-sm' id='clean_orphan_objects_task_parameter_value' value='<?php echo isset($task[0]) === true ? $task[0].";".(isset($task[1]) === true ? $task[1] : '').(isset($task[2]) === true ? $task[2] : '') : '';?>'>
259
+                                            <input type='hidden' disabled class='form-control form-control-sm' id='clean_orphan_objects_task_parameter_value' value='<?php echo isset($task[0]) === true ? $task[0].";".(isset($task[1]) === true ? $task[1] : '').(isset($task[2]) === true ? $task[2] : '') : ''; ?>'>
260 260
                                         </div>
261 261
                                         <div class='col-2'>
262 262
                                             <button class="btn btn-primary task-define" data-task="clean_orphan_objects_task">
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
                                             $task = isset($SETTINGS['purge_temporary_files_task']) === true ? explode(";", $SETTINGS['purge_temporary_files_task']) : [];
279 279
                                             ?>
280 280
                                             <input type='text' disabled class='form-control form-control-sm' id='purge_temporary_files_task_parameter' value='<?php echo isset($task[0]) === true && empty($task[0]) === false ? $lang->get($task[0])." ".(isset($task[2]) === true ? strtolower($lang->get('day')).' '.$task[2].' ' : '').$lang->get('at')." ".(isset($task[1]) === true ? $task[1] : '') : $lang->get('not_defined') ?>'>
281
-                                            <input type='hidden' disabled class='form-control form-control-sm' id='purge_temporary_files_task_parameter_value' value='<?php echo isset($task[0]) === true ? $task[0].";".(isset($task[1]) === true ? $task[1] : '').(isset($task[2]) === true ? $task[2] : '') : '';?>'>
281
+                                            <input type='hidden' disabled class='form-control form-control-sm' id='purge_temporary_files_task_parameter_value' value='<?php echo isset($task[0]) === true ? $task[0].";".(isset($task[1]) === true ? $task[1] : '').(isset($task[2]) === true ? $task[2] : '') : ''; ?>'>
282 282
                                         </div>
283 283
                                         <div class='col-2'>
284 284
                                             <button class="btn btn-primary task-define" data-task="purge_temporary_files_task">
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
                                             $task = isset($SETTINGS['reload_cache_table_task']) === true ? explode(";", $SETTINGS['reload_cache_table_task']) : [];
301 301
                                             ?>
302 302
                                             <input type='text' disabled class='form-control form-control-sm' id='reload_cache_table_task_parameter' value='<?php echo isset($task[0]) === true && empty($task[0]) === false ? $lang->get($task[0])." ".(isset($task[2]) === true ? strtolower($lang->get('day')).' '.$task[2].' ' : '').$lang->get('at')." ".(isset($task[1]) === true ? $task[1] : '') : $lang->get('not_defined') ?>'>
303
-                                            <input type='hidden' disabled class='form-control form-control-sm' id='reload_cache_table_task_parameter_value' value='<?php echo isset($task[0]) === true ? $task[0].";".(isset($task[1]) === true ? $task[1] : '').(isset($task[2]) === true ? $task[2] : '') : '';?>'>
303
+                                            <input type='hidden' disabled class='form-control form-control-sm' id='reload_cache_table_task_parameter_value' value='<?php echo isset($task[0]) === true ? $task[0].";".(isset($task[1]) === true ? $task[1] : '').(isset($task[2]) === true ? $task[2] : '') : ''; ?>'>
304 304
                                         </div>
305 305
                                         <div class='col-2'>
306 306
                                             <button class="btn btn-primary task-define" data-task="reload_cache_table_task">
@@ -517,7 +517,7 @@  discard block
 block discarded – undo
517 517
                         <h5><?php echo $lang->get('day_of_month'); ?></h5>              
518 518
                         <select class='form-control form-control-sm no-save' id='task-define-modal-parameter-monthly-value' style="width:100%;">
519 519
                             <?php
520
-                            for ($i=1; $i<=31; $i++) {
520
+                            for ($i = 1; $i <= 31; $i++) {
521 521
                                 echo '<option value="'.$i.'">'.$lang->get('day').' '.$i.'</option>';
522 522
                             }
523 523
                             ?>
Please login to merge, or discard this patch.