Téléchargements de documents :

'; } } // echo 'profdep='.$profdep.'
'; //on compte le nb de / au lancement if ($profdep == 0) { $profdep= substr_count($path, '/'); } if (is_dir($path)) { //on definit le nom du dossier à afficher if (substr($path, -1, 1) =='/') { //si ça finit par un slash on le vire pr avoir le nom du dossier $dirnam = substr($path, 0,(strlen($path)-1)); //on vire le dernier shash } else { $dirnam = substr($path, 0,(strlen($path))); //on garde le nom du dossier comme ça $path.= '/'; //et on ajoute un slash a la fin du path pr avoir d chemins ok } $dirnam = strrchr($dirnam, "/"); // on recup le nom du dernier dossier $dirnam = str_replace (array('/'), array(''), $dirnam); // on vire le 1er shash //echo 'yo='.$dirnam ; //echo '
'; if(!in_array($dirnam, $dir_interdits)) { //on verrifie que le dossier fait pas partie des interdits echo '- '.$dirnam.'
'."\n"; } } }elseif (is_file($path)) { echo ''.$path.'
'; } } listingDir('/home/cgtems/www/commun/docs/.', array('txt', 'sql', 'fla'), array('css', 'admin'), array('index.php', '.htaccess', '.htpasswd'), 5); ?>
Suivre la vie du site RSS 2.0 | Plan du site | Espace privé |  CGTEMS © 2007 - Tous droits réservés |   Réalise par
Espace privé Recalculer cette page