file list - modified from the one in ../img

This commit is contained in:
alopexc0de 2012-10-07 21:02:23 -04:00
parent c5fafbe121
commit 324b422975

14
short/getfiles.php Normal file
View File

@ -0,0 +1,14 @@
<?php
if ($handle = opendir('.')) {
while (false !== ($file = readdir($handle)))
{
if ($file != "." && $file != ".." && $file != "index.php" && $file != "getfiles.php" && $file != "config.php" && $file != "url")
{
$last_modified = filemtime($file);
//print(date("m/j/y h:i:s a", $last_modified));
$thelist .= '<a href="http://ugama.tk/short/'.$file.'">'.$file.'</a> Last Modified: <font align="right" color="green">'. date("m/j/y h:i:s a", $last_modified) .'</font><br />';
}
}
closedir($handle);
}
?>