forked from YandolsZX/IcarusImeji
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
799 B
14 lines
799 B
<?php
|
|
echo "<html><head><title>Imeji Uploads Log Table</title><link rel=\"stylesheet\" href=\"https://imeji.yandols.xyz/assets/css/logfront.css\" /></head>\n\n";
|
|
echo "<body><p>For the actual log file itself please refer to the <a href=\"./uploads.log\">uploads.log</a> file. | <a href=\"./logs.php?rd:" . date('U') . "\">Refresh</a></p><table>\n\n";
|
|
echo "<tr><th>UNIX Time</th><th>Readable Time</th><th>Uploader IP</th><th>Uploaded File</th><th>Icarus Endpoint Version</th><th>Client User Agent</th><th>(Cont.)</th>\n\n";
|
|
$f = fopen("uploads.log", "r");
|
|
while (($line = fgetcsv($f)) !== false) {
|
|
echo "<tr>";
|
|
foreach ($line as $cell) {
|
|
echo "<td>" . htmlspecialchars($cell) . "</td>";
|
|
}
|
|
echo "</tr>\n";
|
|
}
|
|
fclose($f);
|
|
echo "\n</table></body></html>"; |