Nessuna galleria creata"); } //se tutto ok procedo includendo l'header include("header.php"); ?> "; readfile("$directory/title.txt"); echo "
"; } else{ echo "
"; } ?>

$dim[0] x $dim[1]"; } //fine file_exists("$directory/$thumb_dir/TN_$file") else{ echo" "; } if($i == $colonne) { echo ""; if ($i == $colonne && (($x/$colonne) != $tot_righe)) { echo ""; } $i = 0; } } //fine $filex != "." && $filex != ".." etc etc } //fine ciclo while //se il numero di colonne inferiore alle immagini stampo o meno le celle mancanti if ($colonne <= $x){ //stampo le celle mancanti se la divisione dei file per le colonne d il resto if (($k%$colonne)!="0"){ $indice = $k; while (($indice%$colonne) != "0" ){ echo ""; $indice++; } //fine ciclo while if(($indice%$colonne) == "0" ){ echo ""; } } //fine ($k%$colonne)!="0" } //fine if $colonne <= $x else{ echo""; } //chiudo la lettura della cartella closedir($cartella); echo "
Thumbnail $file
non presente.
Avvisa il webmaster
"; //inizio link per gallerie successive $next_img = $immagini."_0".($j+1); $next_thumb = $thumbs."_0".($j+1); //inizio link per gallerie precedenti $prev_img = $immagini."_0".($j-1); $prev_thumb = $thumbs."_0".($j-1); if(!is_dir($prev_img) && !is_dir($next_img)){ echo"
Powered by G.S.
"; } else if (is_dir($next_img) && is_dir($next_img."/".$next_thumb) && !is_dir($prev_img)){ $next = $j+1; echo"
Next > >
"; } else if(is_dir($next_img) && is_dir($next_img."/".$next_thumb) && is_dir($prev_img)){ $next = $j+1; $prev = $j-1; echo"
< < Prev .: Home :. Next > >
"; } else{ $prev = $j-1; echo"
< < Prev .: Home :.
"; } echo "
"; include("footer.php"); ?>