\n";
} else {
$out = "GET ".ereg_replace(" ", "%20", $web_path)." HTTP/1.0\r\n";
$out .= "Host: $web_host\r\n";
$out .= "Connection: Close\r\n\r\n";
fwrite($fp, $out);
while (!feof($fp)) {
$bytedata = fgets($fp);
$bytedataall .= $bytedata;
}
fclose($fp);
}
$pattern = "
'."\n";
$imgpages = ceil(count($img_files) / $img_perpage);
if ($imgindex < 0 || $imgindex > count($img_files)) $imgindex = 0;
if ($imgpage < 1 || $imgpage > $imgpages) $imgpage = 1;
if ($img_perline < 1) $img_perline = 1;
if ($img_perpage < $img_perline) $img_perpage = $img_perline;
while ($img_perpage % $img_perline != 0) $img_perpage++;
if ($imgindex == 0) {
$startindex = ($imgpage-1) * $img_perpage + 1;
slideshowformation($startindex, $sscolor, $slideshow_default, $slideshow, $env_script, $imgindex);
echo "You are viewing thumbnails page $imgpage of $imgpages.\n";
}
while (list($xxxkeyxxx, $xxxvaluexxx) = each($img_files)) {
$xxxkeyindexxxx = $xxxkeyxxx + 1;
$xxxkeyindexpreviousxxx = $xxxkeyindexxxx - 1;
$xxxkeypreviousxxx = $xxxkeyxxx - 1;
$xxxkeyindexnextxxx = $xxxkeyindexxxx + 1;
if ($imgindex > 0) {
if ($imgindex == $xxxkeyindexxxx) {
slideshowformation($imgindex, $sscolor, $slideshow_default, $slideshow, $env_script, $imgindex);
echo "\n";
echo "You are viewing image number $imgindex. ".$img_titles[$xxxkeyxxx]."
\n";
echo "\n";
if (count($img_files) > 1) {
echo "
| Previous "; echo " "; echo "$xxxkeyindexpreviousxxx. ".$img_titles[$xxxkeypreviousxxx]." | \n";
}
$imgpage = ceil($imgindex / $img_perpage);
echo "Return to thumbnails index \n"; echo "Go to thumbnails page"; $i = 1; while ($i <= $imgpages) { echo " $i"; $i++; } echo " | \n";
if ($imgindex < count($img_files)) {
echo "Next "; echo " "; echo "$xxxkeyindexnextxxx. ".$img_titles[$xxxkeyindexxxx]." | \n";
}
echo "
| ";
echo " "; echo "$xxxkeyindexxxx. ".$img_titles[$xxxkeyxxx]." | \n";
if ($xxxkeyindexxxx % $img_perline == 0 || $xxxkeyindexxxx == count($img_files)) {
echo "
| Previous page of thumbnails group | \n"; echo "Go to thumbnails page"; $i = 1; while ($i <= $imgpages) { echo " $i"; $i++; } echo " | \n"; if ($imgpage < $imgpages) echo "Next page of thumbnails group | \n"; echo "