@@ -18,15 +18,15 @@ discard block |
||
18 | 18 | |
19 | 19 | // Load config if $SETTINGS not defined |
20 | 20 | if (!isset($SETTINGS['cpassman_dir']) || empty($SETTINGS['cpassman_dir'])) { |
21 | - if (file_exists('../includes/config/tp.config.php')) { |
|
22 | - require_once '../includes/config/tp.config.php'; |
|
23 | - } elseif (file_exists('./includes/config/tp.config.php')) { |
|
24 | - require_once './includes/config/tp.config.php'; |
|
25 | - } elseif (file_exists('../../includes/config/tp.config.php')) { |
|
26 | - require_once '../../includes/config/tp.config.php'; |
|
27 | - } else { |
|
28 | - throw new Exception("Error file '/includes/config/tp.config.php' not exists", 1); |
|
29 | - } |
|
21 | + if (file_exists('../includes/config/tp.config.php')) { |
|
22 | + require_once '../includes/config/tp.config.php'; |
|
23 | + } elseif (file_exists('./includes/config/tp.config.php')) { |
|
24 | + require_once './includes/config/tp.config.php'; |
|
25 | + } elseif (file_exists('../../includes/config/tp.config.php')) { |
|
26 | + require_once '../../includes/config/tp.config.php'; |
|
27 | + } else { |
|
28 | + throw new Exception("Error file '/includes/config/tp.config.php' not exists", 1); |
|
29 | + } |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | // load phpCrypt |
@@ -1430,7 +1430,7 @@ discard block |
||
1430 | 1430 | // Can we use PHP7 random_int function? |
1431 | 1431 | if (version_compare(phpversion(), '7.0', '>=')) { |
1432 | 1432 | require_once $SETTINGS['cpassman_dir'].'/includes/libraries/PasswordGenerator/RandomGenerator/Php7RandomGenerator.php'; |
1433 | - $generator->setRandomGenerator(new PasswordGenerator\RandomGenerator\Php7RandomGenerator()); |
|
1433 | + $generator->setRandomGenerator(new PasswordGenerator\RandomGenerator\Php7RandomGenerator()); |
|
1434 | 1434 | } |
1435 | 1435 | |
1436 | 1436 | // init |