Remove legacy encrypt_decrypt.php - bootstrap.php already provides encryptionHelper

This commit is contained in:
Hamza-Ayed
2026-07-25 00:23:27 +03:00
parent 032e1edda5
commit 4c738e8f43
+1 -13
View File
@@ -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');