diff --git a/charity-settings.php b/charity-settings.php index 1f88b0c..98daee6 100644 --- a/charity-settings.php +++ b/charity-settings.php @@ -138,6 +138,13 @@ if (isset($_SESSION['error'])) { $statuses = db()->query("SELECT * FROM mailbox_statuses ORDER BY id ASC")->fetchAll(); $email_logs = db()->query("SELECT * FROM email_logs ORDER BY id DESC LIMIT 50")->fetchAll(); + +// System Info +$php_version = phpversion(); +$mysql_version = db()->query("SELECT VERSION()")->fetchColumn(); +$server_addr = $_SERVER['SERVER_ADDR'] ?? '127.0.0.1'; +$upload_max = ini_get('upload_max_filesize'); +$post_max = ini_get('post_max_size'); ?>
| الحالة | كود اللون | افتراضية | الإجراء |
|---|---|---|---|
| + + = htmlspecialchars($status['name']) ?> + + | += $status['color'] ?> |
+ + + نعم + + - + + | +
+
+
+ |
+
| الوقت والتاريخ | +المستلم | +الموضوع | +الحالة | +تفاصيل الخطأ | +
|---|---|---|---|---|
| = date('Y-m-d H:i:s', strtotime($log['created_at'])) ?> | += htmlspecialchars($log['recipient']) ?> | += htmlspecialchars($log['subject']) ?> | ++ + = $log['status'] === 'success' ? 'تم الإرسال' : 'فشل' ?> + + | += htmlspecialchars($log['error_message'] ?? '-') ?> | +
| لا يوجد سجلات حالياً | ||||
| نسخة PHP: | = $php_version ?> |
| نسخة MySQL: | = $mysql_version ?> |
| نظام التشغيل: | = PHP_OS ?> |
| عنوان الخادم: | = $server_addr ?> |
| أقصى حجم رفع: | = $upload_max ?> |
| أقصى حجم POST: | = $post_max ?> |
| ترميز قاعدة البيانات: | utf8mb4_unicode_ci |
| نطاق النظام: | = $_SERVER['HTTP_HOST'] ?> |
هذه الأدوات مخصصة لمدير النظام فقط. يرجى توخي الحذر عند الاستخدام.
+| الاسم | اللون | افتراضية | الإجراء |
|---|---|---|---|
| = htmlspecialchars($status['name']) ?> | -= $status['color'] ?> |
- = $status['is_default'] ? '' : '' ?> | -
-
- |
-
| الوقت | -المستلم | -الموضوع | -الحالة | -الخطأ | -
|---|---|---|---|---|
| = date('Y-m-d H:i', strtotime($log['created_at'])) ?> | -= htmlspecialchars($log['recipient']) ?> | -= htmlspecialchars($log['subject']) ?> | -- - = $log['status'] === 'success' ? 'نجاح' : 'فشل' ?> - - | -= htmlspecialchars($log['error_message'] ?? '') ?> | -