Code Duplication    Length = 4-4 lines in 2 locations

sources/main.functions.php 1 location

@@ 23-26 (lines=4) @@
20
if (!isset($_SESSION['settings']['cpassman_dir']) || empty($_SESSION['settings']['cpassman_dir'])) {
21
    require_once '../includes/libraries/phpcrypt/phpCrypt.php';
22
    require_once '../includes/config/settings.php';
23
} else {
24
    require_once $_SESSION['settings']['cpassman_dir'].'/includes/libraries/phpcrypt/phpCrypt.php';
25
    require_once $_SESSION['settings']['cpassman_dir'].'/includes/config/settings.php';
26
}
27
28
// Prepare PHPCrypt class calls
29
use PHP_Crypt\PHP_Crypt as PHP_Crypt;

index.php 1 location

@@ 535-538 (lines=4) @@
532
                $_SESSION['error']['code'] = ERR_NOT_ALLOWED; //not allowed page
533
                include $_SESSION['settings']['cpassman_dir'].'/error.php';
534
            }
535
        } else {
536
            $_SESSION['error']['code'] = ERR_NOT_EXIST; //page doesn't exist
537
            include $_SESSION['settings']['cpassman_dir'].'/error.php';
538
        }
539
    // Case of password recovery
540
    } elseif (empty($_SESSION['user_id']) && isset($_GET['action']) && $_GET['action'] == "password_recovery") {
541
        // Case where user has asked new PW