Update: 2026-06-11 13:47:39
This commit is contained in:
@@ -59,7 +59,7 @@ if (isset($_FILES['image']) && $_FILES['image']['error'] === UPLOAD_ERR_OK) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$linkImage = 'https://intaleq.xyz/intaleq/Admin/adminUser/invoice_images/' . $new_filename;
|
||||
$linkImage = 'https://intaleq.xyz/siro/Admin/adminUser/invoice_images/' . $new_filename;
|
||||
error_log("[add_invoice.php] ✅ Image uploaded successfully: $linkImage");
|
||||
}
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ try {
|
||||
}
|
||||
|
||||
// 5. التحقق من PHP error log الأخير
|
||||
$logPath = '/home/intaleq-api/logs/php_errors.log';
|
||||
$logPath = '/home/siro-api/logs/php_errors.log';
|
||||
if (file_exists($logPath)) {
|
||||
$lines = file($logPath);
|
||||
$checks['last_5_errors'] = array_map('trim', array_slice($lines, -5));
|
||||
|
||||
@@ -23,11 +23,11 @@ if ($admin->role !== 'admin' && $admin->role !== 'super_admin') {
|
||||
|
||||
try {
|
||||
// جلب المفتاح المشترك لسيرفر المحفظة
|
||||
$payKeyPath = '/home/intaleq-api/.secret_key_pay';
|
||||
$payKeyPath = '/home/siro-api/.secret_key_pay';
|
||||
$payKey = file_exists($payKeyPath) ? trim(file_get_contents($payKeyPath)) : getenv('SECRET_KEY_PAY');
|
||||
|
||||
if (empty($payKey)) {
|
||||
$payKey = trim(@file_get_contents('/home/intaleq-api/.secret_key'));
|
||||
$payKey = trim(@file_get_contents('/home/siro-api/.secret_key'));
|
||||
}
|
||||
|
||||
if (empty($payKey)) {
|
||||
|
||||
@@ -36,8 +36,8 @@ foreach ($keysToCheck as $key) {
|
||||
echo "\n\n=== فحص الملفات المباشرة ===\n\n";
|
||||
|
||||
$filesToCheck = [
|
||||
'/home/intaleq-api/.internal_socket_key',
|
||||
'/home/intaleq-api/.secret_key_pay'
|
||||
'/home/siro-api/.internal_socket_key',
|
||||
'/home/siro-api/.secret_key_pay'
|
||||
];
|
||||
|
||||
foreach ($filesToCheck as $file) {
|
||||
|
||||
Reference in New Issue
Block a user