uawdijnntqw1x1x1
IP : 3.12.150.151
Hostname : ns1.eurodns.top
Kernel : Linux ns1.eurodns.top 4.18.0-553.5.1.lve.1.el7h.x86_64 #1 SMP Fri Jun 14 14:24:52 UTC 2024 x86_64
Disable Function : mail,sendmail,exec,passthru,shell_exec,system,popen,curl_multi_exec,show_source,eval,open_base
OS : Linux
PATH:
/
home
/
sudancam
/
public_html
/
..
/
.trash
/
sudancam.sd.1
/
..
/
system
/
library
/
session
/
file.php
/
/
<?php namespace Session; class File { private $directory; public function read($session_id) { $file = DIR_SESSION . '/sess_' . basename($session_id); if (is_file($file)) { $handle = fopen($file, 'r'); flock($handle, LOCK_SH); $data = fread($handle, filesize($file)); flock($handle, LOCK_UN); fclose($handle); return unserialize($data); } else { return array(); } } public function write($session_id, $data) { $file = DIR_SESSION . '/sess_' . basename($session_id); $handle = fopen($file, 'w'); flock($handle, LOCK_EX); fwrite($handle, serialize($data)); fflush($handle); flock($handle, LOCK_UN); fclose($handle); return true; } public function destroy($session_id) { $file = DIR_SESSION . '/sess_' . basename($session_id); if (is_file($file)) { unlink($file); } } public function __destruct() { if (ini_get('session.gc_divisor')) { $gc_divisor = ini_get('session.gc_divisor'); } else { $gc_divisor = 1; } if (ini_get('session.gc_probability')) { $gc_probability = ini_get('session.gc_probability'); } else { $gc_probability = 1; } if ((rand() % $gc_divisor) < $gc_probability) { $expire = time() - ini_get('session.gc_maxlifetime'); $files = glob(DIR_SESSION . '/sess_*'); foreach ($files as $file) { if (filemtime($file) < $expire) { unlink($file); } } } } }
/home/sudancam/public_html/../.trash/sudancam.sd.1/../system/library/session/file.php