Passed
Push — teampass_3.0 ( 68cd42...3883de )
by Nils
07:00
created
index.php 1 patch
Spacing   +87 added lines, -87 removed lines patch added patch discarded remove patch
@@ -65,8 +65,8 @@  discard block
 block discarded – undo
65 65
 }
66 66
 
67 67
 // Include files
68
-require_once $SETTINGS['cpassman_dir'] . '/includes/config/settings.php';
69
-require_once $SETTINGS['cpassman_dir'] . '/includes/config/include.php';
68
+require_once $SETTINGS['cpassman_dir'].'/includes/config/settings.php';
69
+require_once $SETTINGS['cpassman_dir'].'/includes/config/include.php';
70 70
 
71 71
 // Quick major version check -> upgrade needed?
72 72
 if (isset($SETTINGS['cpassman_version']) === true && version_compare(TP_VERSION, $SETTINGS['cpassman_version']) > 0) {
@@ -80,9 +80,9 @@  discard block
 block discarded – undo
80 80
     exit();
81 81
 }
82 82
 
83
-require_once $SETTINGS['cpassman_dir'] . '/includes/libraries/protect/SuperGlobal/SuperGlobal.php';
83
+require_once $SETTINGS['cpassman_dir'].'/includes/libraries/protect/SuperGlobal/SuperGlobal.php';
84 84
 $superGlobal = new protect\SuperGlobal\SuperGlobal();
85
-require_once $SETTINGS['cpassman_dir'] . '/includes/libraries/voku/helper/AntiXSS.php';
85
+require_once $SETTINGS['cpassman_dir'].'/includes/libraries/voku/helper/AntiXSS.php';
86 86
 $antiXss = new voku\helper\AntiXSS();
87 87
 
88 88
 if (isset($SETTINGS['cpassman_url']) === false || $SETTINGS['cpassman_url'] === '') {
@@ -90,8 +90,8 @@  discard block
 block discarded – undo
90 90
 }
91 91
 
92 92
 // Include files
93
-require_once $SETTINGS['cpassman_dir'] . '/sources/SplClassLoader.php';
94
-require_once $SETTINGS['cpassman_dir'] . '/sources/main.functions.php';
93
+require_once $SETTINGS['cpassman_dir'].'/sources/SplClassLoader.php';
94
+require_once $SETTINGS['cpassman_dir'].'/sources/main.functions.php';
95 95
 
96 96
 // Open MYSQL database connection
97 97
 require_once './includes/libraries/Database/Meekrodb/db.class.php';
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 DB::$encoding = DB_ENCODING;
107 107
 
108 108
 // Load Core library
109
-require_once $SETTINGS['cpassman_dir'] . '/sources/core.php';
109
+require_once $SETTINGS['cpassman_dir'].'/sources/core.php';
110 110
 
111 111
 // Prepare POST variables
112 112
 $post_language = filter_input(INPUT_POST, 'language', FILTER_SANITIZE_STRING);
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
     // case of user has change language in the login page
151 151
     $dataLanguage = DB::queryFirstRow(
152 152
         'SELECT flag, name
153
-        FROM ' . prefixTable('languages') . '
153
+        FROM ' . prefixTable('languages').'
154 154
         WHERE name = %s',
155 155
         $_GET['language']
156 156
     );
@@ -160,8 +160,8 @@  discard block
 block discarded – undo
160 160
     //get default language
161 161
     $dataLanguage = DB::queryFirstRow(
162 162
         'SELECT m.valeur AS valeur, l.flag AS flag
163
-        FROM ' . prefixTable('misc') . ' AS m
164
-        INNER JOIN ' . prefixTable('languages') . ' AS l ON (m.valeur = l.name)
163
+        FROM ' . prefixTable('misc').' AS m
164
+        INNER JOIN ' . prefixTable('languages').' AS l ON (m.valeur = l.name)
165 165
         WHERE m.type=%s_type AND m.intitule=%s_intitule',
166 166
         [
167 167
             'type' => 'admin',
@@ -203,22 +203,22 @@  discard block
 block discarded – undo
203 203
 
204 204
 // Load user languages files
205 205
 if (in_array($session_user_language, $languagesList) === true) {
206
-    if (file_exists($SETTINGS['cpassman_dir'] . '/includes/language/' . $session_user_language . '.php') === true) {
207
-        $_SESSION['teampass']['lang'] = include $SETTINGS['cpassman_dir'] . '/includes/language/' . $session_user_language . '.php';
206
+    if (file_exists($SETTINGS['cpassman_dir'].'/includes/language/'.$session_user_language.'.php') === true) {
207
+        $_SESSION['teampass']['lang'] = include $SETTINGS['cpassman_dir'].'/includes/language/'.$session_user_language.'.php';
208 208
     }
209 209
 } else {
210 210
     $_SESSION['error']['code'] = ERR_NOT_ALLOWED; //not allowed page
211
-    include $SETTINGS['cpassman_dir'] . '/error.php';
211
+    include $SETTINGS['cpassman_dir'].'/error.php';
212 212
 }
213 213
 
214 214
 // load 2FA Google
215 215
 if (isset($SETTINGS['google_authentication']) === true && $SETTINGS['google_authentication'] === '1') {
216
-    include_once $SETTINGS['cpassman_dir'] . '/includes/libraries/Authentication/TwoFactorAuth/TwoFactorAuth.php';
216
+    include_once $SETTINGS['cpassman_dir'].'/includes/libraries/Authentication/TwoFactorAuth/TwoFactorAuth.php';
217 217
 }
218 218
 
219 219
 // load 2FA Yubico
220 220
 if (isset($SETTINGS['yubico_authentication']) === true && $SETTINGS['yubico_authentication'] === '1') {
221
-    include_once $SETTINGS['cpassman_dir'] . '/includes/libraries/Authentication/Yubico/Yubico.php';
221
+    include_once $SETTINGS['cpassman_dir'].'/includes/libraries/Authentication/Yubico/Yubico.php';
222 222
 }
223 223
 
224 224
 // Some template adjust
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
     <!-- Toastr -->
276 276
     <link rel="stylesheet" href="plugins/toastr/toastr.min.css" />
277 277
     <!-- favicon -->
278
-    <link rel="shortcut icon" type="image/png" href="<?php echo $SETTINGS['favicon'];?>"/>
278
+    <link rel="shortcut icon" type="image/png" href="<?php echo $SETTINGS['favicon']; ?>"/>
279 279
 </head>
280 280
 
281 281
 
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
             ),
317 317
             'SESSION'
318 318
         );
319
-        include $SETTINGS['cpassman_dir'] . '/error.php';
319
+        include $SETTINGS['cpassman_dir'].'/error.php';
320 320
     }
321 321
 } elseif (
322 322
     $session_validite_pw !== null
@@ -329,13 +329,13 @@  discard block
 block discarded – undo
329 329
     // Do some template preparation
330 330
     // Avatar
331 331
     if ($session_user_avatar_thumb !== null && empty($session_user_avatar_thumb) === false) {
332
-        if (file_exists('includes/avatars/' . $session_user_avatar_thumb)) {
333
-            $avatar = $SETTINGS['cpassman_url'] . '/includes/avatars/' . $session_user_avatar_thumb;
332
+        if (file_exists('includes/avatars/'.$session_user_avatar_thumb)) {
333
+            $avatar = $SETTINGS['cpassman_url'].'/includes/avatars/'.$session_user_avatar_thumb;
334 334
         } else {
335
-            $avatar = $SETTINGS['cpassman_url'] . '/includes/images/photo.jpg';
335
+            $avatar = $SETTINGS['cpassman_url'].'/includes/images/photo.jpg';
336 336
         }
337 337
     } else {
338
-        $avatar = $SETTINGS['cpassman_url'] . '/includes/images/photo.jpg';
338
+        $avatar = $SETTINGS['cpassman_url'].'/includes/images/photo.jpg';
339 339
     }
340 340
     ?>
341 341
 
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
                         <div class="dropdown show">
374 374
                             <a class="btn btn-primary dropdown-toggle" href="#" data-toggle="dropdown">
375 375
                                 <?php
376
-                                    echo $session_name . '&nbsp;' . $session_lastname; ?>
376
+                                    echo $session_name.'&nbsp;'.$session_lastname; ?>
377 377
                             </a>
378 378
 
379 379
                             <div class="dropdown-menu dropdown-menu-right">
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
             <!-- Main Sidebar Container -->
412 412
             <aside class="main-sidebar sidebar-dark-primary elevation-4">
413 413
                 <!-- Brand Logo -->
414
-                <a href="<?php echo $SETTINGS['cpassman_url'] . "/index.php?page=items"; ?>" class="brand-link">
414
+                <a href="<?php echo $SETTINGS['cpassman_url']."/index.php?page=items"; ?>" class="brand-link">
415 415
                     <img src="includes/images/teampass-logo2-home.png" alt="Teampass Logo" class="brand-image">
416 416
                     <span class="brand-text font-weight-light"><?php echo TP_TOOL_NAME; ?></span>
417 417
                 </a>
@@ -429,7 +429,7 @@  discard block
 block discarded – undo
429 429
                         <a href="#" data-name="items" class="nav-link', $pageSel === 'items' ? ' active' : '', '">
430 430
                         <i class="nav-icon fas fa-key"></i>
431 431
                         <p>
432
-                            ' . langHdl('pw') . '
432
+                            ' . langHdl('pw').'
433 433
                         </p>
434 434
                         </a>
435 435
                     </li>';
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
                         <a href="#" data-name="import" class="nav-link', $pageSel === 'import' ? ' active' : '', '">
446 446
                         <i class="nav-icon fas fa-file-import"></i>
447 447
                         <p>
448
-                            ' . langHdl('import') . '
448
+                            ' . langHdl('import').'
449 449
                         </p>
450 450
                         </a>
451 451
                     </li>';
@@ -466,7 +466,7 @@  discard block
 block discarded – undo
466 466
                         <a href="#" data-name="export" class="nav-link', $pageSel === 'export' ? ' active' : '', '">
467 467
                         <i class="nav-icon fas fa-file-export"></i>
468 468
                         <p>
469
-                            ' . langHdl('export') . '
469
+                            ' . langHdl('export').'
470 470
                         </p>
471 471
                         </a>
472 472
                     </li>';
@@ -493,7 +493,7 @@  discard block
 block discarded – undo
493 493
                         <a href="#" data-name="search" class="nav-link', $pageSel === 'search' ? ' active' : '', '">
494 494
                         <i class="nav-icon fas fa-search"></i>
495 495
                         <p>
496
-                            ' . langHdl('find') . '
496
+                            ' . langHdl('find').'
497 497
                         </p>
498 498
                         </a>
499 499
                     </li>';
@@ -510,7 +510,7 @@  discard block
 block discarded – undo
510 510
                         <a href="#" data-name="favourites" class="nav-link', $pageSel === 'admin' ? ' favourites' : '', '">
511 511
                         <i class="nav-icon fas fa-star"></i>
512 512
                         <p>
513
-                            ' . langHdl('favorites') . '
513
+                            ' . langHdl('favorites').'
514 514
                         </p>
515 515
                         </a>
516 516
                     </li>';
@@ -540,7 +540,7 @@  discard block
 block discarded – undo
540 540
                         <a href="#" data-name="suggestion" class="nav-link', $pageSel === 'suggestion' ? ' active' : '', '">
541 541
                         <i class="nav-icon fas fa-lightbulb"></i>
542 542
                         <p>
543
-                            ' . langHdl('suggestion_menu') . '
543
+                            ' . langHdl('suggestion_menu').'
544 544
                         </p>
545 545
                         </a>
546 546
                     </li>';
@@ -553,7 +553,7 @@  discard block
 block discarded – undo
553 553
                         <a href="#" data-name="admin" class="nav-link', $pageSel === 'admin' ? ' active' : '', '">
554 554
                         <i class="nav-icon fas fa-info"></i>
555 555
                         <p>
556
-                            ' . langHdl('admin_main') . '
556
+                            ' . langHdl('admin_main').'
557 557
                         </p>
558 558
                         </a>
559 559
                     </li>
@@ -561,7 +561,7 @@  discard block
 block discarded – undo
561 561
                         <a href="#" class="nav-link">
562 562
                             <i class="nav-icon fas fa-wrench"></i>
563 563
                             <p>
564
-                                ' . langHdl('admin_settings') . '
564
+                                ' . langHdl('admin_settings').'
565 565
                                 <i class="fas fa-angle-left right"></i>
566 566
                             </p>
567 567
                         </a>
@@ -569,55 +569,55 @@  discard block
 block discarded – undo
569 569
                             <li class="nav-item">
570 570
                                 <a href="#" data-name="options" class="nav-link', $pageSel === 'options' ? ' active' : '', '">
571 571
                                     <i class="fas fa-check-double nav-icon"></i>
572
-                                    <p>' . langHdl('options') . '</p>
572
+                                    <p>' . langHdl('options').'</p>
573 573
                                 </a>
574 574
                             </li>
575 575
                             <li class="nav-item">
576 576
                                 <a href="#" data-name="2fa" class="nav-link', $pageSel === '2fa' ? ' active' : '', '">
577 577
                                     <i class="fas fa-qrcode nav-icon"></i>
578
-                                    <p>' . langHdl('mfa_short') . '</p>
578
+                                    <p>' . langHdl('mfa_short').'</p>
579 579
                                 </a>
580 580
                             </li>
581 581
                             <li class="nav-item">
582 582
                                 <a href="#" data-name="api" class="nav-link', $pageSel === 'api' ? ' active' : '', '">
583 583
                                     <i class="fas fa-cubes nav-icon"></i>
584
-                                    <p>' . langHdl('api') . '</p>
584
+                                    <p>' . langHdl('api').'</p>
585 585
                                 </a>
586 586
                             </li>
587 587
                             <li class="nav-item">
588 588
                                 <a href="#" data-name="backups" class="nav-link', $pageSel === 'backups' ? ' active' : '', '">
589 589
                                     <i class="fas fa-database nav-icon"></i>
590
-                                    <p>' . langHdl('backups') . '</p>
590
+                                    <p>' . langHdl('backups').'</p>
591 591
                                 </a>
592 592
                             </li>
593 593
                             <li class="nav-item">
594 594
                                 <a href="#" data-name="emails" class="nav-link', $pageSel === 'emails' ? ' active' : '', '">
595 595
                                     <i class="fas fa-envelope nav-icon"></i>
596
-                                    <p>' . langHdl('emails') . '</p>
596
+                                    <p>' . langHdl('emails').'</p>
597 597
                                 </a>
598 598
                             </li>
599 599
                             <li class="nav-item">
600 600
                                 <a href="#" data-name="fields" class="nav-link', $pageSel === 'fields' ? ' active' : '', '">
601 601
                                     <i class="fas fa-keyboard nav-icon"></i>
602
-                                    <p>' . langHdl('fields') . '</p>
602
+                                    <p>' . langHdl('fields').'</p>
603 603
                                 </a>
604 604
                             </li>
605 605
                             <li class="nav-item">
606 606
                                 <a href="#" data-name="ldap" class="nav-link', $pageSel === 'ldap' ? ' active' : '', '">
607 607
                                     <i class="fas fa-id-card nav-icon"></i>
608
-                                    <p>' . langHdl('ldap') . '</p>
608
+                                    <p>' . langHdl('ldap').'</p>
609 609
                                 </a>
610 610
                             </li>
611 611
                             <li class="nav-item">
612 612
                                 <a href="#" data-name="uploads" class="nav-link', $pageSel === 'uploads' ? ' active' : '', '">
613 613
                                     <i class="fas fa-file-upload nav-icon"></i>
614
-                                    <p>' . langHdl('uploads') . '</p>
614
+                                    <p>' . langHdl('uploads').'</p>
615 615
                                 </a>
616 616
                             </li>
617 617
                             <li class="nav-item">
618 618
                                 <a href="#" data-name="statistics" class="nav-link', $pageSel === 'statistics' ? ' active' : '', '">
619 619
                                     <i class="fas fa-chart-bar nav-icon"></i>
620
-                                    <p>' . langHdl('statistics') . '</p>
620
+                                    <p>' . langHdl('statistics').'</p>
621 621
                                 </a>
622 622
                             </li>
623 623
                         </ul>
@@ -626,7 +626,7 @@  discard block
 block discarded – undo
626 626
                         <a href="#" data-name="actions" class="nav-link', $pageSel === 'actions' ? ' active' : '', '">
627 627
                         <i class="nav-icon fas fa-cogs"></i>
628 628
                         <p>
629
-                            ' . langHdl('actions') . '
629
+                            ' . langHdl('actions').'
630 630
                         </p>
631 631
                         </a>
632 632
                     </li>';
@@ -642,7 +642,7 @@  discard block
 block discarded – undo
642 642
                         <a href="#" data-name="folders" class="nav-link', $pageSel === 'folders' ? ' active' : '', '">
643 643
                         <i class="nav-icon fas fa-folder-open"></i>
644 644
                         <p>
645
-                            ' . langHdl('folders') . '
645
+                            ' . langHdl('folders').'
646 646
                         </p>
647 647
                         </a>
648 648
                     </li>
@@ -650,7 +650,7 @@  discard block
 block discarded – undo
650 650
                         <a href="#" data-name="roles" class="nav-link', $pageSel === 'roles' ? ' active' : '', '">
651 651
                         <i class="nav-icon fas fa-graduation-cap"></i>
652 652
                         <p>
653
-                            ' . langHdl('roles') . '
653
+                            ' . langHdl('roles').'
654 654
                         </p>
655 655
                         </a>
656 656
                     </li>
@@ -658,38 +658,38 @@  discard block
 block discarded – undo
658 658
                         <a href="#" data-name="users" class="nav-link', $pageSel === 'users' ? ' active' : '', '">
659 659
                         <i class="nav-icon fas fa-users"></i>
660 660
                         <p>
661
-                            ' . langHdl('users') . '
661
+                            ' . langHdl('users').'
662 662
                         </p>
663 663
                         </a>
664 664
                     </li>
665 665
                     <li class="nav-item has-treeview', $menuUtilities === true ? ' menu-open' : '', '">
666 666
                         <a href="#" class="nav-link">
667 667
                         <i class="nav-icon fas fa-cubes"></i>
668
-                        <p>' . langHdl('admin_views') . '<i class="fas fa-angle-left right"></i></p>
668
+                        <p>' . langHdl('admin_views').'<i class="fas fa-angle-left right"></i></p>
669 669
                         </a>
670 670
                         <ul class="nav nav-treeview">
671 671
                           <li class="nav-item">
672 672
                             <a href="#" data-name="utilities.renewal" class="nav-link', $pageSel === 'utilities.renewal' ? ' active' : '', '">
673 673
                               <i class="far fa-calendar-alt nav-icon"></i>
674
-                              <p>' . langHdl('renewal') . '</p>
674
+                              <p>' . langHdl('renewal').'</p>
675 675
                             </a>
676 676
                           </li>
677 677
                           <li class="nav-item">
678 678
                             <a href="#" data-name="utilities.deletion" class="nav-link', $pageSel === 'utilities.deletion' ? ' active' : '', '">
679 679
                               <i class="fas fa-trash-alt nav-icon"></i>
680
-                              <p>' . langHdl('deletion') . '</p>
680
+                              <p>' . langHdl('deletion').'</p>
681 681
                             </a>
682 682
                           </li>
683 683
                           <li class="nav-item">
684 684
                             <a href="#" data-name="utilities.logs" class="nav-link', $pageSel === 'utilities.logs' ? ' active' : '', '">
685 685
                               <i class="fas fa-history nav-icon"></i>
686
-                              <p>' . langHdl('logs') . '</p>
686
+                              <p>' . langHdl('logs').'</p>
687 687
                             </a>
688 688
                           </li>
689 689
                           <li class="nav-item">
690 690
                             <a href="#" data-name="utilities.database" class="nav-link', $pageSel === 'utilities.database' ? ' active' : '', '">
691 691
                               <i class="fas fa-database nav-icon"></i>
692
-                              <p>' . langHdl('database') . '</p>
692
+                              <p>' . langHdl('database').'</p>
693 693
                             </a>
694 694
                           </li>
695 695
                         </ul>
@@ -700,10 +700,10 @@  discard block
 block discarded – undo
700 700
                     <!-- /.sidebar-menu -->
701 701
                 <div class="menu-footer">
702 702
                     <div class="" id="sidebar-footer">
703
-                        <i class="fas fa-clock-o mr-2 infotip text-info pointer" title="<?php echo langHdl('server_time') . ' ' .
704
-                                                                                                @date($SETTINGS['date_format'], (string) $_SERVER['REQUEST_TIME']) . ' - ' .
703
+                        <i class="fas fa-clock-o mr-2 infotip text-info pointer" title="<?php echo langHdl('server_time').' '.
704
+                                                                                                @date($SETTINGS['date_format'], (string) $_SERVER['REQUEST_TIME']).' - '.
705 705
                                                                                                 @date($SETTINGS['time_format'], (string) $_SERVER['REQUEST_TIME']); ?>"></i>
706
-                        <i class="fas fa-users mr-2 infotip text-info pointer" title="<?php echo $session_nb_users_online . ' ' . langHdl('users_online'); ?>"></i>
706
+                        <i class="fas fa-users mr-2 infotip text-info pointer" title="<?php echo $session_nb_users_online.' '.langHdl('users_online'); ?>"></i>
707 707
                         <a href="<?php echo READTHEDOC_URL; ?>" target="_blank" class="text-info"><i class="fas fa-book mr-2 infotip" title="<?php echo langHdl('documentation_canal'); ?> ReadTheDocs"></i></a>
708 708
                         <a href="<?php echo REDDIT_URL; ?>" target="_blank" class="text-info"><i class="fab fa-reddit-alien mr-2 infotip" title="<?php echo langHdl('admin_help'); ?>"></i></a>
709 709
                         <i class="fas fa-bug infotip pointer text-info" title="<?php echo langHdl('bugs_page'); ?>" onclick="generateBugReport()"></i>
@@ -1012,17 +1012,17 @@  discard block
 block discarded – undo
1012 1012
                         if (
1013 1013
                             (int) $session_user_admin !== 1
1014 1014
                         ) {
1015
-                            include $SETTINGS['cpassman_dir'] . '/pages/items.php';
1015
+                            include $SETTINGS['cpassman_dir'].'/pages/items.php';
1016 1016
                         } elseif ((int) $session_user_admin === 1) {
1017
-                            include $SETTINGS['cpassman_dir'] . '/pages/admin.php';
1017
+                            include $SETTINGS['cpassman_dir'].'/pages/admin.php';
1018 1018
                         } else {
1019 1019
                             $_SESSION['error']['code'] = ERR_NOT_ALLOWED; //not allowed page
1020
-                            include $SETTINGS['cpassman_dir'] . '/error.php';
1020
+                            include $SETTINGS['cpassman_dir'].'/error.php';
1021 1021
                         }
1022 1022
                     } elseif (in_array($_GET['page'], array_keys($mngPages)) === true) {
1023 1023
                         // Define if user is allowed to see management pages
1024 1024
                         if ($session_user_admin === 1) {
1025
-                            include $SETTINGS['cpassman_dir'] . '/pages/' . $mngPages[$_GET['page']];
1025
+                            include $SETTINGS['cpassman_dir'].'/pages/'.$mngPages[$_GET['page']];
1026 1026
                         } elseif ($session_user_manager === 1 || $session_user_human_resources === 1) {
1027 1027
                             if (
1028 1028
                                 isset($_GET['page']) === true
@@ -1033,17 +1033,17 @@  discard block
 block discarded – undo
1033 1033
                                 //include $SETTINGS['cpassman_dir'] . '/pages/' . $mngPages[$_GET['page']];
1034 1034
                             } else {
1035 1035
                                 $_SESSION['error']['code'] = ERR_NOT_ALLOWED; //not allowed page
1036
-                                include $SETTINGS['cpassman_dir'] . '/error.php';
1036
+                                include $SETTINGS['cpassman_dir'].'/error.php';
1037 1037
                             }
1038 1038
                         } else {
1039 1039
                             $_SESSION['error']['code'] = ERR_NOT_ALLOWED; //not allowed page
1040
-                            include $SETTINGS['cpassman_dir'] . '/error.php';
1040
+                            include $SETTINGS['cpassman_dir'].'/error.php';
1041 1041
                         }
1042 1042
                     } elseif (
1043 1043
                         isset($_GET['page']) === true
1044 1044
                         && filter_var($_GET['page'], FILTER_SANITIZE_STRING) !== false
1045 1045
                     ) {
1046
-                        include $SETTINGS['cpassman_dir'] . '/pages/' . $_GET['page'] . '.php';
1046
+                        include $SETTINGS['cpassman_dir'].'/pages/'.$_GET['page'].'.php';
1047 1047
                     } else {
1048 1048
                         $_SESSION['error']['code'] = ERR_NOT_EXIST; //page doesn't exist
1049 1049
                         include $SETTINGS['cpassman_dir'].'/error.php';
@@ -1138,7 +1138,7 @@  discard block
 block discarded – undo
1138 1138
         }
1139 1139
 
1140 1140
         // LOGIN form
1141
-        include $SETTINGS['cpassman_dir'] . '/includes/core/login.php';
1141
+        include $SETTINGS['cpassman_dir'].'/includes/core/login.php';
1142 1142
     }
1143 1143
 
1144 1144
     ?>
@@ -1322,60 +1322,60 @@  discard block
 block discarded – undo
1322 1322
     isset($_SESSION['CPM']) === true
1323 1323
     && isset($SETTINGS['cpassman_dir']) === true
1324 1324
 ) {
1325
-    include_once $SETTINGS['cpassman_dir'] . '/includes/core/load.js.php';
1325
+    include_once $SETTINGS['cpassman_dir'].'/includes/core/load.js.php';
1326 1326
 
1327 1327
     if ($menuAdmin === true) {
1328
-        include_once $SETTINGS['cpassman_dir'] . '/pages/admin.js.php';
1328
+        include_once $SETTINGS['cpassman_dir'].'/pages/admin.js.php';
1329 1329
         if ($pageSel === '2fa') {
1330
-            include_once $SETTINGS['cpassman_dir'] . '/pages/2fa.js.php';
1330
+            include_once $SETTINGS['cpassman_dir'].'/pages/2fa.js.php';
1331 1331
         } elseif ($pageSel === 'api') {
1332
-            include_once $SETTINGS['cpassman_dir'] . '/pages/api.js.php';
1332
+            include_once $SETTINGS['cpassman_dir'].'/pages/api.js.php';
1333 1333
         } elseif ($pageSel === 'backups') {
1334
-            include_once $SETTINGS['cpassman_dir'] . '/pages/backups.js.php';
1334
+            include_once $SETTINGS['cpassman_dir'].'/pages/backups.js.php';
1335 1335
         } elseif ($pageSel === 'emails') {
1336
-            include_once $SETTINGS['cpassman_dir'] . '/pages/emails.js.php';
1336
+            include_once $SETTINGS['cpassman_dir'].'/pages/emails.js.php';
1337 1337
         } elseif ($pageSel === 'ldap') {
1338
-            include_once $SETTINGS['cpassman_dir'] . '/pages/ldap.js.php';
1338
+            include_once $SETTINGS['cpassman_dir'].'/pages/ldap.js.php';
1339 1339
         } elseif ($pageSel === 'uploads') {
1340
-            include_once $SETTINGS['cpassman_dir'] . '/pages/uploads.js.php';
1340
+            include_once $SETTINGS['cpassman_dir'].'/pages/uploads.js.php';
1341 1341
         } elseif ($pageSel === 'actions') {
1342
-            include_once $SETTINGS['cpassman_dir'] . '/pages/actions.js.php';
1342
+            include_once $SETTINGS['cpassman_dir'].'/pages/actions.js.php';
1343 1343
         } elseif ($pageSel === 'fields') {
1344
-            include_once $SETTINGS['cpassman_dir'] . '/pages/fields.js.php';
1344
+            include_once $SETTINGS['cpassman_dir'].'/pages/fields.js.php';
1345 1345
         } elseif ($pageSel === 'options') {
1346
-            include_once $SETTINGS['cpassman_dir'] . '/pages/options.js.php';
1346
+            include_once $SETTINGS['cpassman_dir'].'/pages/options.js.php';
1347 1347
         } elseif ($pageSel === 'statistics') {
1348
-            include_once $SETTINGS['cpassman_dir'] . '/pages/statistics.js.php';
1348
+            include_once $SETTINGS['cpassman_dir'].'/pages/statistics.js.php';
1349 1349
         }
1350 1350
     } elseif ($pageSel === 'items') {
1351
-        include_once $SETTINGS['cpassman_dir'] . '/pages/items.js.php';
1351
+        include_once $SETTINGS['cpassman_dir'].'/pages/items.js.php';
1352 1352
     } elseif ($pageSel === 'import') {
1353
-        include_once $SETTINGS['cpassman_dir'] . '/pages/import.js.php';
1353
+        include_once $SETTINGS['cpassman_dir'].'/pages/import.js.php';
1354 1354
     } elseif ($pageSel === 'export') {
1355
-        include_once $SETTINGS['cpassman_dir'] . '/pages/export.js.php';
1355
+        include_once $SETTINGS['cpassman_dir'].'/pages/export.js.php';
1356 1356
     } elseif ($pageSel === 'offline') {
1357
-        include_once $SETTINGS['cpassman_dir'] . '/pages/offline.js.php';
1357
+        include_once $SETTINGS['cpassman_dir'].'/pages/offline.js.php';
1358 1358
     } elseif ($pageSel === 'search') {
1359
-        include_once $SETTINGS['cpassman_dir'] . '/pages/search.js.php';
1359
+        include_once $SETTINGS['cpassman_dir'].'/pages/search.js.php';
1360 1360
     } elseif ($pageSel === 'profile') {
1361
-        include_once $SETTINGS['cpassman_dir'] . '/pages/profile.js.php';
1361
+        include_once $SETTINGS['cpassman_dir'].'/pages/profile.js.php';
1362 1362
     } elseif ($pageSel === 'favourites') {
1363
-        include_once $SETTINGS['cpassman_dir'] . '/pages/favorites.js.php';
1363
+        include_once $SETTINGS['cpassman_dir'].'/pages/favorites.js.php';
1364 1364
     } elseif ($pageSel === 'folders') {
1365
-        include_once $SETTINGS['cpassman_dir'] . '/pages/folders.js.php';
1365
+        include_once $SETTINGS['cpassman_dir'].'/pages/folders.js.php';
1366 1366
     } elseif ($pageSel === 'users') {
1367
-        include_once $SETTINGS['cpassman_dir'] . '/pages/users.js.php';
1367
+        include_once $SETTINGS['cpassman_dir'].'/pages/users.js.php';
1368 1368
     } elseif ($pageSel === 'roles') {
1369
-        include_once $SETTINGS['cpassman_dir'] . '/pages/roles.js.php';
1369
+        include_once $SETTINGS['cpassman_dir'].'/pages/roles.js.php';
1370 1370
     } elseif ($pageSel === 'utilities.deletion') {
1371
-        include_once $SETTINGS['cpassman_dir'] . '/pages/utilities.deletion.js.php';
1371
+        include_once $SETTINGS['cpassman_dir'].'/pages/utilities.deletion.js.php';
1372 1372
     } elseif ($pageSel === 'utilities.logs') {
1373
-        include_once $SETTINGS['cpassman_dir'] . '/pages/utilities.logs.js.php';
1373
+        include_once $SETTINGS['cpassman_dir'].'/pages/utilities.logs.js.php';
1374 1374
     } elseif ($pageSel === 'utilities.database') {
1375
-        include_once $SETTINGS['cpassman_dir'] . '/pages/utilities.database.js.php';
1375
+        include_once $SETTINGS['cpassman_dir'].'/pages/utilities.database.js.php';
1376 1376
     } elseif ($pageSel === 'utilities.renewal') {
1377
-        include_once $SETTINGS['cpassman_dir'] . '/pages/utilities.renewal.js.php';
1377
+        include_once $SETTINGS['cpassman_dir'].'/pages/utilities.renewal.js.php';
1378 1378
     } else {
1379
-        include_once $SETTINGS['cpassman_dir'] . '/includes/core/login.js.php';
1379
+        include_once $SETTINGS['cpassman_dir'].'/includes/core/login.js.php';
1380 1380
     }
1381 1381
 }
Please login to merge, or discard this patch.