Remove legacy encrypt_decrypt.php - bootstrap.php already provides encryptionHelper
This commit is contained in:
@@ -6,20 +6,8 @@
|
||||
require_once __DIR__ . '/../../core/bootstrap.php';
|
||||
require_once __DIR__ . '/../../functions.php';
|
||||
|
||||
// تحميل التشفير بأمان
|
||||
$encFile = realpath(__DIR__ . '/../../encrypt_decrypt.php');
|
||||
if ($encFile && file_exists($encFile)) {
|
||||
require_once $encFile;
|
||||
}
|
||||
|
||||
// $encryptionHelper is already initialized by bootstrap.php (lines 159, 182)
|
||||
global $encryptionHelper;
|
||||
if (!isset($encryptionHelper) || $encryptionHelper === null) {
|
||||
if (class_exists('EncryptionHelper')) {
|
||||
$key = getenv('ENC_KEY') ?: '';
|
||||
$iv = getenv('initializationVector') ?: '';
|
||||
$encryptionHelper = new EncryptionHelper($key, $iv);
|
||||
}
|
||||
}
|
||||
|
||||
$fingerprint = filterRequest('fingerprint');
|
||||
$password = filterRequest('password');
|
||||
|
||||
Reference in New Issue
Block a user