"; $nb_w_main=4; $nb_h_main=3; $nb_w=3; $nb_h=2; $btn_somm = "Sommaire"; // Liens $btn_prec="\"prcdent\""; $btn_suiv="\"suivant\""; //$btn_somm="\"sommaire\""; ?> Photos Laisser ses coordonnes Envoyer un message  sa famille
"; else echo ""?>
"; if($cptrep != $cpteti){ $fd_rep = opendir("$rep_photos/$name"); //echo "$rep_photos/$name
"; while (false !== ($fic = readdir($fd_rep))){ //echo "fic=$fic
"; $extension = substr(strtolower($fic), (strlen($fic)-4),4); if($fic != "." && $fic != ".." && $extension != ".AVI" && $extension != ".avi" && $extension != ".wmv" && $extension != ".WMV"){ $fic_sansaccent = strtr($fic,"","aeouiaeioueeac"); rename($rep_photos."/".$name."/".$fic, $rep_photos."/".$name."/".$fic_sansaccent); $Image = $fic_sansaccent; $Source = $rep_photos."/".$name."/"; $Destination = $rep_photos."/".$name."/etiquettes/"; $ratio = 100; CreateEtiquette($Image,$Source,$Destination,$ratio); } } } fclose($fd_rep); //Traitement du fichier params.inc $parm="$rep_photos/$name/params.inc"; if ( ! file_exists($parm)) { //On le cre //echo "Rep=".$rep_photos."/".$name."
"; $fd = fopen($rep_photos."/".$name."/params.inc","w+"); if($fd){ //Lecture de la premiere image //echo "name=$name
"; $fd2 = opendir("$rep_photos/$name"); $tab_fic = array(); $cpt=0; while (false !== ($fic = readdir($fd2))){ if($fic != "." && $fic != ".."){ //On supprime les accents du fichier $fic_sansaccent = strtr($fic,"","aeouiaeioueeac"); rename($rep_photos."/".$name."/".$fic, $rep_photos."/".$name."/".$fic_sansaccent); $tab_fic[$cpt]=$fic_sansaccent; $cpt++; } } asort($tab_fic,SORT_STRING); $premiere_image = array_shift($tab_fic); //echo "prem=".$premiere_image."
"; fclose($fd2); $balise1 = ""; $chaine1 = '$sample="/'.$premiere_image.'";'; $chaine2 = '$title="'.$name.'";'; fputs($fd,$balise1."\n"); fputs($fd,$chaine1."\n"); fputs($fd,$chaine2."\n"); fputs($fd,$balise2."\n"); }else{ //echo "Erreur cration fichier params.inc
"; } fclose($fd); } //echo "parm1=".$parm."
"; if (file_exists($parm)) { array_push($dirlist, $name); } asort($dirlist,SORT_STRING); } } closedir($dir); sort($dirlist); reset($dirlist); for ($i=0; $i\"$title\""; if (($i%$nb_w_main)==0) echo ""; ?> "; } ?>
$cell"; ?>
=count($filelist)-1) { $counter=count($filelist)." (".count($filelist).")"; } else { $counter=($start+1)."-".(min($start+$nb_w*$nb_h, count($filelist)))." (".count($filelist).")"; } ?>

"; //echo "-".$filelist[$i]."
"; if(preg_match('`avi`',$filelist[$i]) || preg_match('`mov`',$filelist[$i]) || preg_match('`wmv`',$filelist[$i]) || preg_match('`AVI`',$filelist[$i]) || preg_match('`MOV`',$filelist[$i]) || preg_match('`WMV`',$filelist[$i])){ echo "\n"; } else { echo "\n"; } if ((($cpt+1)%$nb_w)==0) echo "\n"; } ?>
$filelist[$i]
$nb_w*$nb_h) { ?>
0) echo "$btn_prec"; else echo "$btn_prec"; ?> $btn_suiv"; else echo "$btn_suiv"; ?>