Passed
Push — teampass_3.0 ( 20e792...92f563 )
by Nils
10:21
created
index.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,8 +68,8 @@
 block discarded – undo
68 68
 
69 69
 // Quick major version check -> upgrade needed?
70 70
 if (isset($SETTINGS['cpassman_version']) === true && version_compare(TP_VERSION, $SETTINGS['cpassman_version']) > 0) {
71
-	// Perform redirection
72
-	if (headers_sent()) {
71
+    // Perform redirection
72
+    if (headers_sent()) {
73 73
         echo '<script language="javascript" type="text/javascript">document.location.replace("install/install.php");</script>';
74 74
     } else {
75 75
         header('Location: install/upgrade.php');
Please login to merge, or discard this patch.
Spacing   +91 added lines, -91 removed lines patch added patch discarded remove patch
@@ -63,8 +63,8 @@  discard block
 block discarded – undo
63 63
 }
64 64
 
65 65
 // Include files
66
-require_once $SETTINGS['cpassman_dir'] . '/includes/config/settings.php';
67
-require_once $SETTINGS['cpassman_dir'] . '/includes/config/include.php';
66
+require_once $SETTINGS['cpassman_dir'].'/includes/config/settings.php';
67
+require_once $SETTINGS['cpassman_dir'].'/includes/config/include.php';
68 68
 
69 69
 // Quick major version check -> upgrade needed?
70 70
 if (isset($SETTINGS['cpassman_version']) === true && version_compare(TP_VERSION, $SETTINGS['cpassman_version']) > 0) {
@@ -78,9 +78,9 @@  discard block
 block discarded – undo
78 78
     exit();
79 79
 }
80 80
 
81
-require_once $SETTINGS['cpassman_dir'] . '/includes/libraries/protect/SuperGlobal/SuperGlobal.php';
81
+require_once $SETTINGS['cpassman_dir'].'/includes/libraries/protect/SuperGlobal/SuperGlobal.php';
82 82
 $superGlobal = new protect\SuperGlobal\SuperGlobal();
83
-require_once $SETTINGS['cpassman_dir'] . '/includes/libraries/voku/helper/AntiXSS.php';
83
+require_once $SETTINGS['cpassman_dir'].'/includes/libraries/voku/helper/AntiXSS.php';
84 84
 $antiXss = new voku\helper\AntiXSS();
85 85
 
86 86
 if (isset($SETTINGS['cpassman_url']) === false || $SETTINGS['cpassman_url'] === '') {
@@ -88,8 +88,8 @@  discard block
 block discarded – undo
88 88
 }
89 89
 
90 90
 // Include files
91
-require_once $SETTINGS['cpassman_dir'] . '/sources/SplClassLoader.php';
92
-require_once $SETTINGS['cpassman_dir'] . '/sources/main.functions.php';
91
+require_once $SETTINGS['cpassman_dir'].'/sources/SplClassLoader.php';
92
+require_once $SETTINGS['cpassman_dir'].'/sources/main.functions.php';
93 93
 
94 94
 // Open MYSQL database connection
95 95
 require_once './includes/libraries/Database/Meekrodb/db.class.php';
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 DB::$encoding = DB_ENCODING;
105 105
 
106 106
 // Load Core library
107
-require_once $SETTINGS['cpassman_dir'] . '/sources/core.php';
107
+require_once $SETTINGS['cpassman_dir'].'/sources/core.php';
108 108
 
109 109
 // Prepare POST variables
110 110
 $post_language = filter_input(INPUT_POST, 'language', FILTER_SANITIZE_STRING);
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
     // case of user has change language in the login page
149 149
     $dataLanguage = DB::queryFirstRow(
150 150
         'SELECT flag, name
151
-        FROM ' . prefixTable('languages') . '
151
+        FROM ' . prefixTable('languages').'
152 152
         WHERE name = %s',
153 153
         $_GET['language']
154 154
     );
@@ -158,8 +158,8 @@  discard block
 block discarded – undo
158 158
     //get default language
159 159
     $dataLanguage = DB::queryFirstRow(
160 160
         'SELECT m.valeur AS valeur, l.flag AS flag
161
-        FROM ' . prefixTable('misc') . ' AS m
162
-        INNER JOIN ' . prefixTable('languages') . ' AS l ON (m.valeur = l.name)
161
+        FROM ' . prefixTable('misc').' AS m
162
+        INNER JOIN ' . prefixTable('languages').' AS l ON (m.valeur = l.name)
163 163
         WHERE m.type=%s_type AND m.intitule=%s_intitule',
164 164
         [
165 165
             'type' => 'admin',
@@ -201,22 +201,22 @@  discard block
 block discarded – undo
201 201
 
202 202
 // Load user languages files
203 203
 if (in_array($session_user_language, $languagesList) === true) {
204
-    if (file_exists($SETTINGS['cpassman_dir'] . '/includes/language/' . $session_user_language . '.php') === true) {
205
-        $_SESSION['teampass']['lang'] = include $SETTINGS['cpassman_dir'] . '/includes/language/' . $session_user_language . '.php';
204
+    if (file_exists($SETTINGS['cpassman_dir'].'/includes/language/'.$session_user_language.'.php') === true) {
205
+        $_SESSION['teampass']['lang'] = include $SETTINGS['cpassman_dir'].'/includes/language/'.$session_user_language.'.php';
206 206
     }
207 207
 } else {
208 208
     $_SESSION['error']['code'] = ERR_NOT_ALLOWED; //not allowed page
209
-    include $SETTINGS['cpassman_dir'] . '/error.php';
209
+    include $SETTINGS['cpassman_dir'].'/error.php';
210 210
 }
211 211
 
212 212
 // load 2FA Google
213 213
 if (isset($SETTINGS['google_authentication']) === true && $SETTINGS['google_authentication'] === '1') {
214
-    include_once $SETTINGS['cpassman_dir'] . '/includes/libraries/Authentication/TwoFactorAuth/TwoFactorAuth.php';
214
+    include_once $SETTINGS['cpassman_dir'].'/includes/libraries/Authentication/TwoFactorAuth/TwoFactorAuth.php';
215 215
 }
216 216
 
217 217
 // load 2FA Yubico
218 218
 if (isset($SETTINGS['yubico_authentication']) === true && $SETTINGS['yubico_authentication'] === '1') {
219
-    include_once $SETTINGS['cpassman_dir'] . '/includes/libraries/Authentication/Yubico/Yubico.php';
219
+    include_once $SETTINGS['cpassman_dir'].'/includes/libraries/Authentication/Yubico/Yubico.php';
220 220
 }
221 221
 
222 222
 // Some template adjust
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
             ),
308 308
             'SESSION'
309 309
         );
310
-        include $SETTINGS['cpassman_dir'] . '/error.php';
310
+        include $SETTINGS['cpassman_dir'].'/error.php';
311 311
     }
312 312
 } elseif (
313 313
     $session_validite_pw !== null
@@ -320,13 +320,13 @@  discard block
 block discarded – undo
320 320
     // Do some template preparation
321 321
     // Avatar
322 322
     if ($session_user_avatar_thumb !== null && empty($session_user_avatar_thumb) === false) {
323
-        if (file_exists('includes/avatars/' . $session_user_avatar_thumb)) {
324
-            $avatar = $SETTINGS['cpassman_url'] . '/includes/avatars/' . $session_user_avatar_thumb;
323
+        if (file_exists('includes/avatars/'.$session_user_avatar_thumb)) {
324
+            $avatar = $SETTINGS['cpassman_url'].'/includes/avatars/'.$session_user_avatar_thumb;
325 325
         } else {
326
-            $avatar = $SETTINGS['cpassman_url'] . '/includes/images/photo.jpg';
326
+            $avatar = $SETTINGS['cpassman_url'].'/includes/images/photo.jpg';
327 327
         }
328 328
     } else {
329
-        $avatar = $SETTINGS['cpassman_url'] . '/includes/images/photo.jpg';
329
+        $avatar = $SETTINGS['cpassman_url'].'/includes/images/photo.jpg';
330 330
     } ?>
331 331
 
332 332
     <body class="hold-transition sidebar-mini layout-navbar-fixed layout-fixed">
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
                         <div class="dropdown show">
364 364
                             <a class="btn btn-primary dropdown-toggle" href="#" data-toggle="dropdown">
365 365
                                 <?php
366
-                                    echo $session_name . '&nbsp;' . $session_lastname; ?>
366
+                                    echo $session_name.'&nbsp;'.$session_lastname; ?>
367 367
                             </a>
368 368
 
369 369
                             <div class="dropdown-menu dropdown-menu-right">
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
             <!-- Main Sidebar Container -->
402 402
             <aside class="main-sidebar sidebar-dark-primary elevation-4">
403 403
                 <!-- Brand Logo -->
404
-                <a href="<?php echo $SETTINGS['cpassman_url'] . "/index.php?page=items"; ?>" class="brand-link">
404
+                <a href="<?php echo $SETTINGS['cpassman_url']."/index.php?page=items"; ?>" class="brand-link">
405 405
                     <img src="includes/images/logoTeampassHome.png" alt="Teampass Logo" class="brand-image">
406 406
                     <span class="brand-text font-weight-light"><?php echo TP_TOOL_NAME; ?></span>
407 407
                 </a>
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
                         <a href="#" data-name="items" class="nav-link', $pageSel === 'items' ? ' active' : '', '">
420 420
                         <i class="nav-icon fas fa-key"></i>
421 421
                         <p>
422
-                            ' . langHdl('pw') . '
422
+                            ' . langHdl('pw').'
423 423
                         </p>
424 424
                         </a>
425 425
                     </li>';
@@ -435,7 +435,7 @@  discard block
 block discarded – undo
435 435
                         <a href="#" data-name="import" class="nav-link', $pageSel === 'import' ? ' active' : '', '">
436 436
                         <i class="nav-icon fas fa-file-import"></i>
437 437
                         <p>
438
-                            ' . langHdl('import') . '
438
+                            ' . langHdl('import').'
439 439
                         </p>
440 440
                         </a>
441 441
                     </li>';
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
                         <a href="#" data-name="export" class="nav-link', $pageSel === 'export' ? ' active' : '', '">
453 453
                         <i class="nav-icon fas fa-file-export"></i>
454 454
                         <p>
455
-                            ' . langHdl('export') . '
455
+                            ' . langHdl('export').'
456 456
                         </p>
457 457
                         </a>
458 458
                     </li>';
@@ -479,7 +479,7 @@  discard block
 block discarded – undo
479 479
                         <a href="#" data-name="search" class="nav-link', $pageSel === 'search' ? ' active' : '', '">
480 480
                         <i class="nav-icon fas fa-search"></i>
481 481
                         <p>
482
-                            ' . langHdl('find') . '
482
+                            ' . langHdl('find').'
483 483
                         </p>
484 484
                         </a>
485 485
                     </li>';
@@ -496,7 +496,7 @@  discard block
 block discarded – undo
496 496
                         <a href="#" data-name="favourites" class="nav-link', $pageSel === 'admin' ? ' favourites' : '', '">
497 497
                         <i class="nav-icon fas fa-star"></i>
498 498
                         <p>
499
-                            ' . langHdl('favorites') . '
499
+                            ' . langHdl('favorites').'
500 500
                         </p>
501 501
                         </a>
502 502
                     </li>';
@@ -526,7 +526,7 @@  discard block
 block discarded – undo
526 526
                         <a href="#" data-name="suggestion" class="nav-link', $pageSel === 'suggestion' ? ' active' : '', '">
527 527
                         <i class="nav-icon fas fa-lightbulb"></i>
528 528
                         <p>
529
-                            ' . langHdl('suggestion_menu') . '
529
+                            ' . langHdl('suggestion_menu').'
530 530
                         </p>
531 531
                         </a>
532 532
                     </li>';
@@ -539,7 +539,7 @@  discard block
 block discarded – undo
539 539
                         <a href="#" data-name="admin" class="nav-link', $pageSel === 'admin' ? ' active' : '', '">
540 540
                         <i class="nav-icon fas fa-info"></i>
541 541
                         <p>
542
-                            ' . langHdl('admin_main') . '
542
+                            ' . langHdl('admin_main').'
543 543
                         </p>
544 544
                         </a>
545 545
                     </li>
@@ -547,7 +547,7 @@  discard block
 block discarded – undo
547 547
                         <a href="#" class="nav-link">
548 548
                             <i class="nav-icon fas fa-wrench"></i>
549 549
                             <p>
550
-                                ' . langHdl('admin_settings') . '
550
+                                ' . langHdl('admin_settings').'
551 551
                                 <i class="fas fa-angle-left right"></i>
552 552
                             </p>
553 553
                         </a>
@@ -555,55 +555,55 @@  discard block
 block discarded – undo
555 555
                             <li class="nav-item">
556 556
                                 <a href="#" data-name="options" class="nav-link', $pageSel === 'options' ? ' active' : '', '">
557 557
                                     <i class="fas fa-check-double nav-icon"></i>
558
-                                    <p>' . langHdl('options') . '</p>
558
+                                    <p>' . langHdl('options').'</p>
559 559
                                 </a>
560 560
                             </li>
561 561
                             <li class="nav-item">
562 562
                                 <a href="#" data-name="2fa" class="nav-link', $pageSel === '2fa' ? ' active' : '', '">
563 563
                                     <i class="fas fa-qrcode nav-icon"></i>
564
-                                    <p>' . langHdl('mfa_short') . '</p>
564
+                                    <p>' . langHdl('mfa_short').'</p>
565 565
                                 </a>
566 566
                             </li>
567 567
                             <li class="nav-item">
568 568
                                 <a href="#" data-name="api" class="nav-link', $pageSel === 'api' ? ' active' : '', '">
569 569
                                     <i class="fas fa-cubes nav-icon"></i>
570
-                                    <p>' . langHdl('api') . '</p>
570
+                                    <p>' . langHdl('api').'</p>
571 571
                                 </a>
572 572
                             </li>
573 573
                             <li class="nav-item">
574 574
                                 <a href="#" data-name="backups" class="nav-link', $pageSel === 'backups' ? ' active' : '', '">
575 575
                                     <i class="fas fa-database nav-icon"></i>
576
-                                    <p>' . langHdl('backups') . '</p>
576
+                                    <p>' . langHdl('backups').'</p>
577 577
                                 </a>
578 578
                             </li>
579 579
                             <li class="nav-item">
580 580
                                 <a href="#" data-name="emails" class="nav-link', $pageSel === 'emails' ? ' active' : '', '">
581 581
                                     <i class="fas fa-envelope nav-icon"></i>
582
-                                    <p>' . langHdl('emails') . '</p>
582
+                                    <p>' . langHdl('emails').'</p>
583 583
                                 </a>
584 584
                             </li>
585 585
                             <li class="nav-item">
586 586
                                 <a href="#" data-name="fields" class="nav-link', $pageSel === 'fields' ? ' active' : '', '">
587 587
                                     <i class="fas fa-keyboard nav-icon"></i>
588
-                                    <p>' . langHdl('fields') . '</p>
588
+                                    <p>' . langHdl('fields').'</p>
589 589
                                 </a>
590 590
                             </li>
591 591
                             <li class="nav-item">
592 592
                                 <a href="#" data-name="ldap" class="nav-link', $pageSel === 'ldap' ? ' active' : '', '">
593 593
                                     <i class="fas fa-id-card nav-icon"></i>
594
-                                    <p>' . langHdl('ldap') . '</p>
594
+                                    <p>' . langHdl('ldap').'</p>
595 595
                                 </a>
596 596
                             </li>
597 597
                             <li class="nav-item">
598 598
                                 <a href="#" data-name="uploads" class="nav-link', $pageSel === 'uploads' ? ' active' : '', '">
599 599
                                     <i class="fas fa-file-upload nav-icon"></i>
600
-                                    <p>' . langHdl('uploads') . '</p>
600
+                                    <p>' . langHdl('uploads').'</p>
601 601
                                 </a>
602 602
                             </li>
603 603
                             <li class="nav-item">
604 604
                                 <a href="#" data-name="statistics" class="nav-link', $pageSel === 'statistics' ? ' active' : '', '">
605 605
                                     <i class="fas fa-chart-bar nav-icon"></i>
606
-                                    <p>' . langHdl('statistics') . '</p>
606
+                                    <p>' . langHdl('statistics').'</p>
607 607
                                 </a>
608 608
                             </li>
609 609
                         </ul>
@@ -612,7 +612,7 @@  discard block
 block discarded – undo
612 612
                         <a href="#" data-name="actions" class="nav-link', $pageSel === 'actions' ? ' active' : '', '">
613 613
                         <i class="nav-icon fas fa-cogs"></i>
614 614
                         <p>
615
-                            ' . langHdl('actions') . '
615
+                            ' . langHdl('actions').'
616 616
                         </p>
617 617
                         </a>
618 618
                     </li>';
@@ -628,7 +628,7 @@  discard block
 block discarded – undo
628 628
                         <a href="#" data-name="folders" class="nav-link', $pageSel === 'folders' ? ' active' : '', '">
629 629
                         <i class="nav-icon fas fa-folder-open"></i>
630 630
                         <p>
631
-                            ' . langHdl('folders') . '
631
+                            ' . langHdl('folders').'
632 632
                         </p>
633 633
                         </a>
634 634
                     </li>
@@ -636,7 +636,7 @@  discard block
 block discarded – undo
636 636
                         <a href="#" data-name="roles" class="nav-link', $pageSel === 'roles' ? ' active' : '', '">
637 637
                         <i class="nav-icon fas fa-graduation-cap"></i>
638 638
                         <p>
639
-                            ' . langHdl('roles') . '
639
+                            ' . langHdl('roles').'
640 640
                         </p>
641 641
                         </a>
642 642
                     </li>
@@ -644,7 +644,7 @@  discard block
 block discarded – undo
644 644
                         <a href="#" data-name="users" class="nav-link', $pageSel === 'users' ? ' active' : '', '">
645 645
                         <i class="nav-icon fas fa-users"></i>
646 646
                         <p>
647
-                            ' . langHdl('users') . '
647
+                            ' . langHdl('users').'
648 648
                         </p>
649 649
                         </a>
650 650
                     </li>
@@ -652,7 +652,7 @@  discard block
 block discarded – undo
652 652
                         <a href="#" class="nav-link">
653 653
                         <i class="nav-icon fas fa-cubes"></i>
654 654
                         <p>
655
-                            ' . langHdl('admin_views') . '
655
+                            ' . langHdl('admin_views').'
656 656
                             <i class="fas fa-angle-left right"></i>
657 657
                         </p>
658 658
                         </a>
@@ -660,25 +660,25 @@  discard block
 block discarded – undo
660 660
                           <li class="nav-item">
661 661
                             <a href="#" data-name="utilities.renewal" class="nav-link', $pageSel === 'utilities.renewal' ? ' active' : '', '">
662 662
                               <i class="far fa-calendar-alt nav-icon"></i>
663
-                              <p>' . langHdl('renewal') . '</p>
663
+                              <p>' . langHdl('renewal').'</p>
664 664
                             </a>
665 665
                           </li>
666 666
                           <li class="nav-item">
667 667
                             <a href="#" data-name="utilities.deletion" class="nav-link', $pageSel === 'utilities.deletion' ? ' active' : '', '">
668 668
                               <i class="fas fa-trash-alt nav-icon"></i>
669
-                              <p>' . langHdl('deletion') . '</p>
669
+                              <p>' . langHdl('deletion').'</p>
670 670
                             </a>
671 671
                           </li>
672 672
                           <li class="nav-item">
673 673
                             <a href="#" data-name="utilities.logs" class="nav-link', $pageSel === 'utilities.logs' ? ' active' : '', '">
674 674
                               <i class="fas fa-history nav-icon"></i>
675
-                              <p>' . langHdl('logs') . '</p>
675
+                              <p>' . langHdl('logs').'</p>
676 676
                             </a>
677 677
                           </li>
678 678
                           <li class="nav-item">
679 679
                             <a href="#" data-name="utilities.database" class="nav-link', $pageSel === 'utilities.database' ? ' active' : '', '">
680 680
                               <i class="fas fa-database nav-icon"></i>
681
-                              <p>' . langHdl('database') . '</p>
681
+                              <p>' . langHdl('database').'</p>
682 682
                             </a>
683 683
                           </li>
684 684
                         </ul>
@@ -691,10 +691,10 @@  discard block
 block discarded – undo
691 691
                 <!-- /.sidebar -->
692 692
                 <div class="footer">
693 693
                     <div class="ml-3" id="sidebar-footer">
694
-                        <i class="fas fa-clock-o mr-2 infotip text-info pointer" title="<?php echo langHdl('server_time') . ' ' .
695
-                                                                                                @date($SETTINGS['date_format'], (string) $_SERVER['REQUEST_TIME']) . ' - ' .
694
+                        <i class="fas fa-clock-o mr-2 infotip text-info pointer" title="<?php echo langHdl('server_time').' '.
695
+                                                                                                @date($SETTINGS['date_format'], (string) $_SERVER['REQUEST_TIME']).' - '.
696 696
                                                                                                 @date($SETTINGS['time_format'], (string) $_SERVER['REQUEST_TIME']); ?>"></i>
697
-                        <i class="fas fa-users mr-2 infotip text-info pointer" title="<?php echo $session_nb_users_online . ' ' . langHdl('users_online'); ?>"></i>
697
+                        <i class="fas fa-users mr-2 infotip text-info pointer" title="<?php echo $session_nb_users_online.' '.langHdl('users_online'); ?>"></i>
698 698
                         <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>
699 699
                         <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>
700 700
                         <i class="fas fa-bug infotip pointer text-info" title="<?php echo langHdl('bugs_page'); ?>" onclick="generateBugReport()"></i>
@@ -720,9 +720,9 @@  discard block
 block discarded – undo
720 720
                                     <?php
721 721
                                         echo isset($SETTINGS['personal_saltkey_security_level']) === true
722 722
                                             && empty($SETTINGS['personal_saltkey_security_level']) === false ?
723
-                                            '<div class="text-info text-center"><i class="fas fa-info mr-3"></i>' .
724
-                                            langHdl('complex_asked') . ' : <b>' .
725
-                                            TP_PW_COMPLEXITY[$SETTINGS['personal_saltkey_security_level']][1] .
723
+                                            '<div class="text-info text-center"><i class="fas fa-info mr-3"></i>'.
724
+                                            langHdl('complex_asked').' : <b>'.
725
+                                            TP_PW_COMPLEXITY[$SETTINGS['personal_saltkey_security_level']][1].
726 726
                                             '</b></div>'
727 727
                                             : ''; ?>
728 728
                                 </h6>
@@ -731,7 +731,7 @@  discard block
 block discarded – undo
731 731
 
732 732
                                 <div class="text-center" style="margin: 10px 0 0 40%;">
733 733
                                     <?php
734
-                                        echo '<div id="psk_strength"></div>' .
734
+                                        echo '<div id="psk_strength"></div>'.
735 735
                                             '<input type="hidden" id="psk_strength_value" />'; ?>
736 736
                                 </div>
737 737
                             </div>
@@ -848,17 +848,17 @@  discard block
 block discarded – undo
848 848
                             || ((int) $session_user_admin === 1
849 849
                                 && TP_ADMIN_FULL_RIGHT === false)
850 850
                         ) {
851
-                            include $SETTINGS['cpassman_dir'] . '/pages/items.php';
851
+                            include $SETTINGS['cpassman_dir'].'/pages/items.php';
852 852
                         } elseif ((int) $session_user_admin === 1) {
853
-                            include $SETTINGS['cpassman_dir'] . '/pages/admin.php';
853
+                            include $SETTINGS['cpassman_dir'].'/pages/admin.php';
854 854
                         } else {
855 855
                             $_SESSION['error']['code'] = ERR_NOT_ALLOWED; //not allowed page
856
-                            include $SETTINGS['cpassman_dir'] . '/error.php';
856
+                            include $SETTINGS['cpassman_dir'].'/error.php';
857 857
                         }
858 858
                     } elseif (in_array($_GET['page'], array_keys($mngPages)) === true) {
859 859
                         // Define if user is allowed to see management pages
860 860
                         if ($session_user_admin === 1) {
861
-                            include $SETTINGS['cpassman_dir'] . '/pages/' . $mngPages[$_GET['page']];
861
+                            include $SETTINGS['cpassman_dir'].'/pages/'.$mngPages[$_GET['page']];
862 862
                         } elseif ($session_user_manager === 1 || $session_user_human_resources === 1) {
863 863
                             if (
864 864
                                 isset($_GET['page']) === true
@@ -866,20 +866,20 @@  discard block
 block discarded – undo
866 866
                                 && filter_var($_GET['page'], FILTER_SANITIZE_STRING) !== 'manage_main'
867 867
                                 && filter_var($_GET['page'], FILTER_SANITIZE_STRING) !== 'manage_settings'
868 868
                             ) {
869
-                                include $SETTINGS['cpassman_dir'] . '/pages/' . $mngPages[$_GET['page']];
869
+                                include $SETTINGS['cpassman_dir'].'/pages/'.$mngPages[$_GET['page']];
870 870
                             } else {
871 871
                                 $_SESSION['error']['code'] = ERR_NOT_ALLOWED; //not allowed page
872
-                                include $SETTINGS['cpassman_dir'] . '/error.php';
872
+                                include $SETTINGS['cpassman_dir'].'/error.php';
873 873
                             }
874 874
                         } else {
875 875
                             $_SESSION['error']['code'] = ERR_NOT_ALLOWED; //not allowed page
876
-                            include $SETTINGS['cpassman_dir'] . '/error.php';
876
+                            include $SETTINGS['cpassman_dir'].'/error.php';
877 877
                         }
878 878
                     } elseif (
879 879
                         isset($_GET['page']) === true
880 880
                         && filter_var($_GET['page'], FILTER_SANITIZE_STRING) !== false
881 881
                     ) {
882
-                        include $SETTINGS['cpassman_dir'] . '/pages/' . $_GET['page'] . '.php';
882
+                        include $SETTINGS['cpassman_dir'].'/pages/'.$_GET['page'].'.php';
883 883
                     } else {
884 884
                         $_SESSION['error']['code'] = ERR_NOT_EXIST; //page doesn't exist
885 885
                         //include $SETTINGS['cpassman_dir'].'/error.php';
@@ -974,7 +974,7 @@  discard block
 block discarded – undo
974 974
         }
975 975
 
976 976
         // LOGIN form
977
-        include $SETTINGS['cpassman_dir'] . '/includes/core/login.php';
977
+        include $SETTINGS['cpassman_dir'].'/includes/core/login.php';
978 978
     }
979 979
 
980 980
     ?>
@@ -1163,60 +1163,60 @@  discard block
 block discarded – undo
1163 1163
     isset($_SESSION['CPM']) === true
1164 1164
     && isset($SETTINGS['cpassman_dir']) === true
1165 1165
 ) {
1166
-    include_once $SETTINGS['cpassman_dir'] . '/includes/core/load.js.php';
1166
+    include_once $SETTINGS['cpassman_dir'].'/includes/core/load.js.php';
1167 1167
 
1168 1168
     if ($menuAdmin === true) {
1169
-        include_once $SETTINGS['cpassman_dir'] . '/pages/admin.js.php';
1169
+        include_once $SETTINGS['cpassman_dir'].'/pages/admin.js.php';
1170 1170
         if ($pageSel === '2fa') {
1171
-            include_once $SETTINGS['cpassman_dir'] . '/pages/2fa.js.php';
1171
+            include_once $SETTINGS['cpassman_dir'].'/pages/2fa.js.php';
1172 1172
         } elseif ($pageSel === 'api') {
1173
-            include_once $SETTINGS['cpassman_dir'] . '/pages/api.js.php';
1173
+            include_once $SETTINGS['cpassman_dir'].'/pages/api.js.php';
1174 1174
         } elseif ($pageSel === 'backups') {
1175
-            include_once $SETTINGS['cpassman_dir'] . '/pages/backups.js.php';
1175
+            include_once $SETTINGS['cpassman_dir'].'/pages/backups.js.php';
1176 1176
         } elseif ($pageSel === 'emails') {
1177
-            include_once $SETTINGS['cpassman_dir'] . '/pages/emails.js.php';
1177
+            include_once $SETTINGS['cpassman_dir'].'/pages/emails.js.php';
1178 1178
         } elseif ($pageSel === 'ldap') {
1179
-            include_once $SETTINGS['cpassman_dir'] . '/pages/ldap.js.php';
1179
+            include_once $SETTINGS['cpassman_dir'].'/pages/ldap.js.php';
1180 1180
         } elseif ($pageSel === 'uploads') {
1181
-            include_once $SETTINGS['cpassman_dir'] . '/pages/uploads.js.php';
1181
+            include_once $SETTINGS['cpassman_dir'].'/pages/uploads.js.php';
1182 1182
         } elseif ($pageSel === 'actions') {
1183
-            include_once $SETTINGS['cpassman_dir'] . '/pages/actions.js.php';
1183
+            include_once $SETTINGS['cpassman_dir'].'/pages/actions.js.php';
1184 1184
         } elseif ($pageSel === 'fields') {
1185
-            include_once $SETTINGS['cpassman_dir'] . '/pages/fields.js.php';
1185
+            include_once $SETTINGS['cpassman_dir'].'/pages/fields.js.php';
1186 1186
         } elseif ($pageSel === 'options') {
1187
-            include_once $SETTINGS['cpassman_dir'] . '/pages/options.js.php';
1187
+            include_once $SETTINGS['cpassman_dir'].'/pages/options.js.php';
1188 1188
         } elseif ($pageSel === 'statistics') {
1189
-            include_once $SETTINGS['cpassman_dir'] . '/pages/statistics.js.php';
1189
+            include_once $SETTINGS['cpassman_dir'].'/pages/statistics.js.php';
1190 1190
         }
1191 1191
     } elseif ($pageSel === 'items') {
1192
-        include_once $SETTINGS['cpassman_dir'] . '/pages/items.js.php';
1192
+        include_once $SETTINGS['cpassman_dir'].'/pages/items.js.php';
1193 1193
     } elseif ($pageSel === 'import') {
1194
-        include_once $SETTINGS['cpassman_dir'] . '/pages/import.js.php';
1194
+        include_once $SETTINGS['cpassman_dir'].'/pages/import.js.php';
1195 1195
     } elseif ($pageSel === 'export') {
1196
-        include_once $SETTINGS['cpassman_dir'] . '/pages/export.js.php';
1196
+        include_once $SETTINGS['cpassman_dir'].'/pages/export.js.php';
1197 1197
     } elseif ($pageSel === 'offline') {
1198
-        include_once $SETTINGS['cpassman_dir'] . '/pages/offline.js.php';
1198
+        include_once $SETTINGS['cpassman_dir'].'/pages/offline.js.php';
1199 1199
     } elseif ($pageSel === 'search') {
1200
-        include_once $SETTINGS['cpassman_dir'] . '/pages/search.js.php';
1200
+        include_once $SETTINGS['cpassman_dir'].'/pages/search.js.php';
1201 1201
     } elseif ($pageSel === 'profile') {
1202
-        include_once $SETTINGS['cpassman_dir'] . '/pages/profile.js.php';
1202
+        include_once $SETTINGS['cpassman_dir'].'/pages/profile.js.php';
1203 1203
     } elseif ($pageSel === 'favourites') {
1204
-        include_once $SETTINGS['cpassman_dir'] . '/pages/favorites.js.php';
1204
+        include_once $SETTINGS['cpassman_dir'].'/pages/favorites.js.php';
1205 1205
     } elseif ($pageSel === 'folders') {
1206
-        include_once $SETTINGS['cpassman_dir'] . '/pages/folders.js.php';
1206
+        include_once $SETTINGS['cpassman_dir'].'/pages/folders.js.php';
1207 1207
     } elseif ($pageSel === 'users') {
1208
-        include_once $SETTINGS['cpassman_dir'] . '/pages/users.js.php';
1208
+        include_once $SETTINGS['cpassman_dir'].'/pages/users.js.php';
1209 1209
     } elseif ($pageSel === 'roles') {
1210
-        include_once $SETTINGS['cpassman_dir'] . '/pages/roles.js.php';
1210
+        include_once $SETTINGS['cpassman_dir'].'/pages/roles.js.php';
1211 1211
     } elseif ($pageSel === 'utilities.deletion') {
1212
-        include_once $SETTINGS['cpassman_dir'] . '/pages/utilities.deletion.js.php';
1212
+        include_once $SETTINGS['cpassman_dir'].'/pages/utilities.deletion.js.php';
1213 1213
     } elseif ($pageSel === 'utilities.logs') {
1214
-        include_once $SETTINGS['cpassman_dir'] . '/pages/utilities.logs.js.php';
1214
+        include_once $SETTINGS['cpassman_dir'].'/pages/utilities.logs.js.php';
1215 1215
     } elseif ($pageSel === 'utilities.database') {
1216
-        include_once $SETTINGS['cpassman_dir'] . '/pages/utilities.database.js.php';
1216
+        include_once $SETTINGS['cpassman_dir'].'/pages/utilities.database.js.php';
1217 1217
     } elseif ($pageSel === 'utilities.renewal') {
1218
-        include_once $SETTINGS['cpassman_dir'] . '/pages/utilities.renewal.js.php';
1218
+        include_once $SETTINGS['cpassman_dir'].'/pages/utilities.renewal.js.php';
1219 1219
     } else {
1220
-        include_once $SETTINGS['cpassman_dir'] . '/includes/core/login.js.php';
1220
+        include_once $SETTINGS['cpassman_dir'].'/includes/core/login.js.php';
1221 1221
     }
1222 1222
 }
Please login to merge, or discard this patch.