\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 = " 0) array_push($img_files, $matchedone[1][0]); } $env_script = $_SERVER["REQUEST_URI"]; $slideshow = 0; if (isset($_GET['imgindex'])) { $imgindex = $_GET['imgindex']; if (isset($_GET['slideshow'])) { $slideshow = $_GET['slideshow']; if (is_numeric($slideshow)) { $slideshow = intval($slideshow); if ($slideshow > 60) $slideshow = 60; } else { $slideshow = 0; } } $env_script = ereg_replace("[\?\&]imgindex=(.*)", "", $env_script); $env_script = ereg_replace("[\?\&]slideshow=(.*)", "", $env_script); } else { $imgindex = 0; } if (isset($_GET['imgpage'])) { $imgpage = $_GET['imgpage']; $env_script = ereg_replace("[\?\&]imgpage=(.*)", "", $env_script); } else { $imgpage = 1; } $appender = "?"; if (preg_match('/\?/', $env_script) > 0) $appender = "&"; echo "There are currently ".count($img_files).' images in this photoset.
'."\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++; require_once "$ldigs_path"; 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. ".urldecode(substr($xxxvaluexxx, strrpos($xxxvaluexxx, "/") + 1))."
\n"; echo "\n"; if (count($img_files) > 1) { echo "\n"; echo "\n"; if ($imgindex > 1) { echo "\n"; } $imgpage = ceil($imgindex / $img_perpage); echo "\n"; if ($imgindex < count($img_files)) { echo "\n"; } echo "
Previous
"; echo "
"; echo "$xxxkeyindexpreviousxxx. ".urldecode(substr($img_files[$xxxkeypreviousxxx], strrpos($img_files[$xxxkeypreviousxxx], "/") + 1))."
Return to thumbnails index
\n"; echo "Go to thumbnails page"; $i = 1; while ($i <= $imgpages) { echo " $i"; $i++; } echo "
Next
"; echo "
"; echo "$xxxkeyindexnextxxx. ".urldecode(substr($img_files[$xxxkeyindexxxx], strrpos($img_files[$xxxkeyindexxxx], "/") + 1))."
\n"; } } } else { if (ceil($xxxkeyindexxxx / $img_perpage) == $imgpage || $xxxkeyindexxxx / $img_perpage == $imgpage) { if ($xxxkeyindexxxx % $img_perline == 1) { echo "\n"; echo "\n"; } echo "\n"; if ($xxxkeyindexxxx % $img_perline == 0 || $xxxkeyindexxxx == count($img_files)) { echo "
"; echo "
"; echo "$xxxkeyindexxxx. ".urldecode(substr($xxxvaluexxx, strrpos($xxxvaluexxx, "/") + 1))."
\n"; if ($xxxkeyindexxxx / $img_perpage == $imgpage || $xxxkeyindexxxx == count($img_files)) { echo "\n"; $imgpageprev = $imgpage - 1; $imgpagenext = $imgpage + 1; if ($imgpage > 1) echo "\n"; echo "\n"; if ($imgpage < $imgpages) echo "\n"; echo "
Previous page of thumbnails groupGo to thumbnails page"; $i = 1; while ($i <= $imgpages) { echo " $i"; $i++; } echo "Next page of thumbnails group
\n"; } } } } } ?>
This album is powered by the fusion of the LD TechnoLogics Image Gallery with Slideshow and the Picasa Web Google API.