|
|
|
o.O Uploader 3.0 - Uploaded files |
|
File |
Link |
GET |
//.jpg , .gif , .jpeg , .txt , .pdf , .zip
$extensions = array('jpg','jpeg', 'gif', 'Jpg', 'Jpeg', 'Gif', 'JPG', 'JPEG', 'GIF');
if ($handle = opendir("avatar")) {
while (false !== ($file = readdir($handle))) {// scorre i vari file nella directory, basta metterli in un tag img per mostrarle
if ($file != "." && $file != "..") {
// controlla l'estensione del file
$last_point = strrpos($file, '.');
if ($last_point !== false)
{
$ext = substr($file, $last_point+1);
if (in_array($ext, $extensions))
{
echo "";
echo "";
echo " | http://oostyle.net/ooup/avatar/$file | ";
echo " |
";
}else{
echo "";
echo "";
echo " | http://oostyle.net/ooup/avatar/$file | ";
echo " |
";
}
}
}
}
closedir($handle);
}
?>
Torna all'UPLOADER. |