From 12ba0ee86e9c6f8c3e6730dfb42901015f3ae2fb Mon Sep 17 00:00:00 2001 From: Yandols Date: Tue, 6 Feb 2018 14:59:31 +0800 Subject: [PATCH] Forgot to actually put the new log viewer into the repository. smh. --- logs.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 logs.php diff --git a/logs.php b/logs.php new file mode 100644 index 0000000..32a9956 --- /dev/null +++ b/logs.php @@ -0,0 +1,14 @@ +Imeji Uploads Log Table\n\n"; +echo "

For the actual log file itself please refer to the uploads.log file. | Refresh

\n\n"; +echo "\n\n"; +$f = fopen("uploads.log", "r"); +while (($line = fgetcsv($f)) !== false) { + echo ""; + foreach ($line as $cell) { + echo ""; + } + echo "\n"; +} +fclose($f); +echo "\n
UNIX TimeReadable TimeUploader IPUploaded FileIcarus Endpoint VersionClient User Agent(Cont.)
" . htmlspecialchars($cell) . "
"; \ No newline at end of file