<?php session_start(); if (!isset($_SESSION['loggedin']) || $_SESSION['loggedin'] !== true) { header("Location: login.php"); exit; } ?> <!DOCTYPE html> <html lang="ar" dir="rtl"> <head> <meta charset="UTF-8"> <title>لوحة التحكم</title> <link rel="stylesheet" href="style.css"> </head> <body> <div class="login-card"> <h2>أهلاً بك يا مدير</h2> <form action="save.php" method="POST"> <textarea name="question" placeholder="اكتب سؤال RGIE هنا..." style="width:100%; height:80px; margin-bottom:10px;" required></textarea> <input type="text" name="answer" placeholder="اكتب الإجابة هنا..." style="width:100%; padding:10px; margin-bottom:10px;" required> <button type="submit" style="width:100%; padding:10px; background:#28a745; color:white; border:none; cursor:pointer;">حفظ السؤال</button> </form> <br> <p>لقد دخلت إلى لوحة التحكم بنجاح!</p> <a href="logout.php">تسجيل الخروج</a> </div> </body> </html>
You have javascript disabled. You will not be able to edit any code.