".$name."

"; } } else { echo ""; } while ($dt = mysql_fetch_array($requete)) { echo ''; } $listfile= ListFile($REP."/$dossier/", "jpg|bmp|gif|mp3|exe|msi|reg|rar|zip|avi|mpg|mpeg|mkv|wmv|doc|xls|pdf|ini|ppt|html|txt|wma|ogg") ; if (!empty($listfile)) { foreach ($listfile as $file) { $file_ext = strtolower(substr(strrchr($file,"."),1)); if (in_array($file_ext, array("jpg", "gif", "jpeg", "bmp", "exe", "msi", "reg", "rar", "zip","doc", "xls", "pdf", "ini", "ppt", "html", "txt", "mp3", "wma", "ogg", "wav", "avi", "wmv", "mpeg", "mkv", "mpg"))) { echo " ".$file."

"; } else { echo " ".$file."

"; } $fichier= $dossier.'/'.$file; if (!empty($data)) { while ($dt = mysql_fetch_array($requete)) { if (in_array($fichier,$dt['url'])) { echo''; } else { mysql_query("INSERT INTO video VALUES ('','$fichier')"); } } } else { mysql_query("INSERT INTO video VALUES ('','$fichier')"); } } } ?>