";
include $_SERVER['DOCUMENT_ROOT'] . "/header.php"; ?>
This blog tries to document the writing of my
master's thesis miscellaneous events in my life, updated whenever
I happen to feel like writing.
As the "blogging system" is a quick PHP hack I did in about 10 minutes, there is no public commenting system available. Feel free to drop me an e-mail or holler on IRC (Samwise@IRCnet) if you feel like it! :)
function ss_scandir($dir) { $i=0; $dh = opendir($dir); while (false !== ($filename = readdir($dh))) { if(!is_dir($filename)) { $fstats=stat($dir . "/" . $filename); $files[$i]['ctime'] = $fstats['ctime']; $files[$i]['mtime'] = $fstats['mtime']; $files[$i]['name'] = $filename; $i++; } } if($files) { arsort($files); } return($files); } $directory = $_SERVER['DOCUMENT_ROOT'] . "/blog/files"; $subdir = $_GET['archive']; $subdir = strtr($subdir, '.', '_'); $subdir = strtr($subdir, '/', '_'); $subdir = strtr($subdir, '\\', '_'); if($subdir) { $directory .= "/" . $subdir; printf("