$path = empty($HTTP_SERVER_VARS['PATH_INFO'])?
$HTTP_SERVER_VARS['PHP_SELF']:$HTTP_SERVER_VARS['PATH_INFO'];
$picture = $_GET['picture'];
$sec = $_GET['sec'];
$as = $_GET['as'];
if ($sec == ""){
$sec = "8";
}
$homedir = "http://lacismuseum.org";
$title = "";
$background = "";
$backgroundColor = "black";
$buttonColor = "black";
$textColor = "white";
$alink = "yellow";
$vlink = "yellow";
$sortByName = true;
if ($as == "true" || $as == ""){
$auto_slideshow = "true";
$check_true = "Checked";
$check_false = "";
}
if ($as == "false"){
$auto_slideshow = "false";
$check_true = "";
$check_false = "Checked";
}
$handle=opendir('.');
while ($file = readdir($handle)) {
if((strpos($file,".JPG")>0) OR (strpos($file,".jpg")>0) OR (strpos($file,".gif")>0) OR (strpos($file,".GIF")>0)){
$arrayOriginal[]=$file;
}
}
if ($sortByName = true){
natcasesort($arrayOriginal);
$i=0;
foreach ($arrayOriginal as $file){ #that's all folks, display sorted all folders and files
$i++;
$array[$i] = $file;
}
}else{
$array = $arrayOriginal;
}
#print_r($array);
#echo $i;
closedir($handle);
$prior=$picture-1;
$prior10=$picture-10;
$next10=$picture+10;
if ($picture=="") {
$picture = 1;
}
$next=$picture+1;
if ($picture==1){
$prior=$i;
}
if ($next10 > $i){
$next10=1;
}
if ($prior10 < 0){
$prior10=1;
}
if ($picture==$i){
$next=1;
}
if ($auto_slideshow == "true") {
$meta_refresh = "";
#$meta_refresh .= "$sec;url=$path?directory=$directory¤tPic=$next\">";
}
# else{ $meta_refresh = "\n";
?>
print "$meta_refresh";?>
print "$title";?>
" alink=" print "$alink";?>" BgColor= print "$backgroundColor"; ?> background= print "$background"; ?>>
"> print "$title";?>
">
|
|
">">Home