Get rid of a redundant directory level.

This commit is contained in:
2016-08-20 22:31:29 +02:00
parent abb6ae9ba0
commit b2256b2454
556 changed files with 0 additions and 0 deletions

28
words/index.php Normal file
View File

@@ -0,0 +1,28 @@
<?php
//WTFPL 2.0
header('Content-type: text/plain; charset=UTF-8');
date_default_timezone_set('Europe/Copenhagen');
echo
'******************************************************
*** THIS IS NOT A (MICRO)BLOG. ************************
*******************************************************
Source code: projects.metanohi.name/misc/words.tar.gz *
*******************************************************
';
$d='';for ($i=0;$i<19;$i++) $d.= '-';
$files = scandir('data');
$files = array_reverse($files);
foreach ($files as $x) {
$n = "data/$x";
if (is_file($n)) {
$f = fopen($n, 'r');
$t = fread($f, filesize($n));
fclose($f);
echo "$d\n" . date('Y.m.d H:i:s', $x+0) . "\n$d\n$t\n\n";
}
}
?>