Page Disabled"; include "tail.inc"; exit(); } echo '

'; echo 'files / '; if(isset($_COOKIE['mail_name'])) { echo htmlspecialchars($_COOKIE['mail_name']); } echo '

'; echo ''; // Browse button echo ''; // Upload button echo ''; echo '
'; echo '
'; echo ''; echo ''; echo '
'; echo '
'; echo '
'; echo ''; echo ''; echo '
'; echo '
'; echo '
'; $directory = $spooldir . '/upload/'; $users = array(); if (is_dir($directory)) { if ($user_dir = opendir($directory)) { while (($user_list = readdir($user_dir)) !== false) { if ($user_list == '.' || $user_list == '..') { continue; } $users[] = $user_list; } closedir($user_dir); } } sort($users); $found = 0; if (count($users) > 0) { echo "Select a user directory to browse:"; echo '
'; echo ''; echo ''; echo ''; echo ''; echo '
'; } if ($found == 1 && password_verify($CONFIG['thissitekey'], $_REQUEST['key'])) { display_user_files($_POST['listbox'], $offset); } function display_user_files($user, $offset) { global $CONFIG, $spooldir, $text_header; $directory = $spooldir . '/upload/' . $user . '/'; if (is_dir($directory)) { $files = scandir($directory); } natcasesort($files); echo ''; echo ''; $i = 0; foreach ($files as $file) { if ($file == '.' || $file == '..') { continue; } $lineclass = "np_thread_line" . (($i % 2) + 1); $thisfile = $spooldir . '/upload/' . $user . '/' . $file; // Use local timezone if possible $ts = new DateTime(date("D, j M Y H:i T", filectime($thisfile)), new DateTimeZone('UTC')); $ts->add(DateInterval::createFromDateString($offset . ' minutes')); if ($offset != 0) { $newdate = $ts->format('j M Y'); } else { $newdate = $ts->format('j M Y T'); } unset($ts); echo ''; $mime = mime_content_type($thisfile); // Link echo ''; echo ''; echo ''; echo ''; $i ++; } echo '
FilenameFile TypeDate
'; echo '
'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'; echo '
' . $mime . '' . $newdate . '
'; }