Priority File Manager
📁 public_html
Base Directory:
/home/ecedu/public_html
/home/ecedu/public_html/wp-content/plugins
/home/ecedu/public_html/wp-content
/home/ecedu
/var/www
/var/www/cgi-bin
/var/www/html
public_html
/
cce
/
service
/home/ecedu/public_html/cce/service
Name
Type
Size
Actions
📁
..
Folder
-
Delete
Rename
📄
commentAdd.php
File
2848
Delete
Rename
Edit
Download
📄
commentRead.php
File
1326
Delete
Rename
Edit
Download
📁
images
Folder
-
Delete
Rename
📄
loadMoreNews.php
File
3073
Delete
Rename
Edit
Download
📄
session.php
File
536
Delete
Rename
Edit
Download
Upload
Create Folder
📝 Editing:
session.php
Size: 536 bytes
Lines: 21
Type: .php
💾 Save
Cancel
✕
<?php ini_set('display_errors', 1); error_reporting(E_ALL); header('Content-Type: text/plain; charset=UTF-8'); session_start(); const SESSION_TIMEOUT = 3600; $currentTime = time(); // 1) التحقق من الجلسة if ( empty($_SESSION['user']) || empty($_SESSION['timeout']) || $currentTime > (int)$_SESSION['timeout'] ) { session_destroy(); exit('auth false'); } $_SESSION['timeout'] = $currentTime + SESSION_TIMEOUT; $userId = isset($_SESSION['user_id']) ? (int)$_SESSION['user_id'] : 0;
✅ File saved successfully!