diff --git a/admin_classes.php b/admin_classes.php index d5ed423..8bebf24 100644 --- a/admin_classes.php +++ b/admin_classes.php @@ -137,19 +137,19 @@ $items = $stmt->fetchAll(PDO::FETCH_ASSOC);
- +
- +
- +
- +
@@ -203,19 +203,19 @@ $items = $stmt->fetchAll(PDO::FETCH_ASSOC);
- +
- +
- +
- +
diff --git a/admin_courses.php b/admin_courses.php index 1c6df1c..1028cf5 100644 --- a/admin_courses.php +++ b/admin_courses.php @@ -286,19 +286,19 @@ $items = $stmt->fetchAll(PDO::FETCH_ASSOC);
- +
- +
- +
- +
@@ -375,19 +375,19 @@ $items = $stmt->fetchAll(PDO::FETCH_ASSOC);
- +
- +
- +
- +
diff --git a/admin_plans.php b/admin_plans.php index d71c6c9..e9ee24d 100644 --- a/admin_plans.php +++ b/admin_plans.php @@ -148,11 +148,11 @@ $items = $stmt->fetchAll(PDO::FETCH_ASSOC);
- +
- +
@@ -227,11 +227,11 @@ $items = $stmt->fetchAll(PDO::FETCH_ASSOC);
- +
- +
diff --git a/dashboard.php b/dashboard.php index a395f93..f083159 100644 --- a/dashboard.php +++ b/dashboard.php @@ -82,7 +82,7 @@ render_nav('dashboard.php');

- LIVE + diff --git a/includes/app.php b/includes/app.php index 1834784..5aa34c5 100644 --- a/includes/app.php +++ b/includes/app.php @@ -66,8 +66,8 @@ function landing_setting(string $key, string $default_en, string $default_ar = " } function current_lang(): string { - $lang = $_GET['lang'] ?? $_SESSION['lang'] ?? 'en'; - $lang = in_array($lang, ['en', 'ar'], true) ? $lang : 'en'; + $lang = $_GET['lang'] ?? $_SESSION['lang'] ?? 'ar'; + $lang = in_array($lang, ['en', 'ar'], true) ? $lang : 'ar'; $_SESSION['lang'] = $lang; return $lang; } diff --git a/live_lesson.php b/live_lesson.php index 5466075..f80f723 100644 --- a/live_lesson.php +++ b/live_lesson.php @@ -92,7 +92,7 @@ render_head(

- LIVE + -

diff --git a/reset_password.php b/reset_password.php index b4061a7..172e44b 100644 --- a/reset_password.php +++ b/reset_password.php @@ -27,7 +27,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { $resetUrl = app_url('reset_password.php', ['action' => 'reset', 'token' => $newToken]); $fullResetUrl = 'http://' . $_SERVER['HTTP_HOST'] . '/' . ltrim($resetUrl, '/'); - $htmlBody = "

You requested a password reset. Click the link below to reset it:

{$fullResetUrl}

Link expires in 1 hour.

"; + $htmlBody = current_lang() === 'ar' ? "

لقد طلبت إعادة تعيين كلمة المرور. انقر على الرابط أدناه لإعادة تعيينها:

{$fullResetUrl}

ينتهي الرابط خلال ساعة واحدة.

" : "

You requested a password reset. Click the link below to reset it:

{$fullResetUrl}

Link expires in 1 hour.

"; MailService::sendMail($email, "Password Reset", $htmlBody); } diff --git a/teacher.php b/teacher.php index 288a175..ead6357 100644 --- a/teacher.php +++ b/teacher.php @@ -272,19 +272,19 @@ render_nav('teacher.php');
- +
- +
- +
- +