D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
proc
/
thread-self
/
root
/
home
/
markniuj
/
bazmeasar.com
/
admin
/
Filename :
common.php
back
Copy
<?php session_start(); function redirectToLogin() { header("Location: index.php"); exit(); } // Check if the user is not logged in if (!isset($_SESSION['user_id'])) { // Redirect to the login page or show an error message redirectToLogin(); }