include("A.php");
$server = "http://www.greendevils.nu";
echo "Filmer
";
function printSeason($dirname, $headline) {
echo "".$headline."
";
echo "
";
echo "Filnamn | ";
echo "Upplagd | ";
echo "Storlek |
";
$dirpath = "filmer/".$dirname."/";
$dir = opendir($dirpath);
while (false !== ($file = readdir($dir))) {
$localpath = $dirpath.$file;
if (is_file($localpath)) {
$key = filemtime($localpath);
$files_by_date[$key] = $file;
$files_by_name[] = $file;
}
}
krsort($files_by_date);
foreach ($files_by_date as $file) {
$size = filesize("$dirpath$file") / 1000000;
$mod = date ("d M Y", filemtime("$dirpath$file"));
echo " | ", $mod, " | ";
echo "", round($size, 1), " Mb |
\n";
}
echo "
";
echo "
\n\n";
}
printSeason("1314", "Säsongen 13/14");
printSeason("1011", "Säsongen 10/11");
printSeason("0910", "Säsongen 09/10");
printSeason("0809", "Säsongen 08/09");
printSeason("0708", "Säsongen 07/08");
printSeason("0607", "Säsongen 06/07");
printSeason("0506", "Säsongen 05/06");
printSeason("0405", "Säsongen 04/05");
printSeason("0304", "Säsongen 03/04");
printSeason("Jinglar", "Jinglar");
include("B.php");
?>