';
foreach (scan_dir(getcwd().'\\'.preg_split('/@/',$_SESSION['m_user'])[0].'\\'.$_GET['box'].'\\') as $d){
include preg_split('/@/',$_SESSION['m_user'])[0].'\\'.$_GET['box'].'\\'.$d;
try{echo ''.$sender.' '.$date.'
';}catch (Exception $e){echo ''.$sender.'
';}
}
}
}
else{
foreach (scan_dir(getcwd().'\\'.preg_split('/@/',$_SESSION['m_user'])[0]) as $d){
foreach (scan_dir(getcwd().'\\'.preg_split('/@/',$_SESSION['m_user'])[0].'\\'.$d.'\\') as $i){
include preg_split('/@/',$_SESSION['m_user'])[0].'\\'.$d.'\\'.$i;
echo ''.$sender.' '.$date.' '.$d.'
';
}
}
}
}
else{
header('Location: ../login.html');
}
?>