// All Rights Reserved // // This file is a PHP file that list all files on a directory with a // link to the file, some informations, some sorting possibilities. // It is very simple. You have a total control on the design thanks // to CSS. It validates XHTML 1.1 and CSS. To use it, copy it under // the name index.php on the directory you want to list the files and // customize the style file used. // // This file is free software; you can redistribute it and/or modify // it under the terms of the Do What The Fuck You Want To Public // License, Version 2, as published by Sam Hocevar. See // http://sam.zoy.org/wtfpl/COPYING for more details. echo ''; ?> Index

Index

\n"; echo " "; echo "file name"; echo "date"; echo "size"; echo "\n"; foreach($files as $file) { if (!is_dir($file[6]) && file_exists(".thumbnail/" . $file[6])) { $thumb = 'thumbnail '; } else { $thumb = ''; } echo " "; echo '' . $thumb . $file[1] . ''; echo '' . $file[2] . ''; echo '' . $file[3] . ''; echo "\n"; } echo "\n"; ?>

Valid XHTML 1.1 and CSS