\n"; echo "Esempio:
\n"; echo "browse.php?cartella=ico\n"; exit; } if(!isset($con)) { $con=""; } if(!isset($stop)) { $stop=0; } if(!isset($deltatempo)) { $deltatempo=20; } if(!isset($next)) { $next=1; } ////////////////////////////////////////////////////////////////////////////// // variables, modify at will // $pic_info_file="pics.txt"; $back_image="left.gif"; $next_image="right.gif"; $header = "album"; $title = "PHPSlideshow"; // ////////////////////////////////////////////////////////////////////////////// // html stuff, replace with your sites include() header file print "
"; // if ( !file_exists($pic_info_file)) { // $dh = opendir( "." ); // $dh = opendir( "../" ); $dh = opendir( "$basepath$cartella/" ); while( $file = readdir( $dh ) ) { if ( ereg("jpg$",$file) || ereg("JPG$",$file) || ereg("jpeg$",$file) || ereg("JPEG$",$file) || ereg("gif$",$file) || ereg("gif$",$file) || ereg("Jpg$",$file) || ereg("Jpeg$",$file) ) { if ( !(trim($con)=="") ) { if ( substr_count($file, $con)>0 ) { $pic_info[] = $file; } } else { $pic_info[] = $file; } } } } else $pic_info=file("pics.txt"); $number_of_pics = count ($pic_info); if (($picture > $number_of_pics) || ($picture == $number_of_pics) || !$picture) $picture = '0'; $item = explode (";", $pic_info[$picture]); // print the description // print "$item[1]
"; $next = $picture + 1; $current = $picture; if ($picture > 0 ) $back = $picture - 1; else $picture = '0'; if ($picture = '0' ) $back = $number_of_pics; // print the next and back links (note $lt; and > to display <> in HTML) if (!isset($deltatempo)) $deltatempo = 10; print ""; print ""; print ""; print ""; print ""; print "
"; print "
"; print ""; print ""; print "
"; print "indietro "; print ""; print "pausa "; print ""; print " time"; print ""; //////////////////////////////////////////////// // $online_for = (time()-"; print " play "; print ""; print "avanti"; print "
"; print "
"; $location = "album.php?picture=$next&deltatempo=$deltatempo&stop=0"; ?> " onLoad="vai('','','','','')"> "; print "
"; // end of "work" // // html stuff, replace with your sites include() footer file print "
"; ?>