include("../../scripte/wait.php"); // Konfiguration // Hier das Script einstellen, damit alles laeuft! // Verzeichnis für Thumbnails, evtl. Praefix angeben // Größe der Thumbnails: 112 Pixel breit oder 112 Pixel hoch (laengste Seite!) $thumbdir = 't/'; // Verzeichnis für normale Bilder, evtl. Praefix angeben $imgdir = "n/"; // Kommentardateien $comments = Array('#dddddd' => 'namen'); // ENDE der Konfiguration ############################################################################### $show = $_GET["show"]; // Funktion zum Anzeigen der Bilder, erzeugt eine Tabelle mit "Negativ"-Hintergrund (film.gif) function Bild($nr,$comment=""){ global $thumbdir; $size = GetImageSize ($thumbdir.$nr.'.jpg'); $comment = addslashes(strip_tags($comment)); if ($size[0] == 112 || $size[0] == 113) {$vspace=19;$hspace=16;} //25,16 else {$vspace=5;$hspace=35;} //5,35 echo "
if (isset($show)) echo 'Photo-Übersicht | Kommentare | Lizenz'; else echo 'Photo-Übersicht | Kommentare | Lizenz'; ?> | arnep.de
if (isset($show)){ $images = file("photos.txt"); $count = count($images); while(list($linenum,$line)=each($images)) { preg_match("/([^ ]+) (.*)/",$line,$out); if ($out[1] == $show) { $num = $linenum; $comment = $out[2]; $htmlcomment = strip_tags($comment); } } preg_match("/([^ ]+) (.*)/",$images[$num-1],$out); $last = $out[1]; preg_match("/([^ ]+) (.*)/",$images[$num+1],$out); $next = $out[1]; echo ""; if ($last!="") { echo '<< | ';} echo "Photo No. $show"; if ($next!="") { echo ' | >>';} echo "
"; } else { echo "Alle Photos
\n"; } ?>
if (isset($show)) {
$size = @GetImageSize ("${imgdir}${show}.jpg");
$size[0] = $size[0]*5;
$size[1] = $size[1]*5;
echo " "; echo " $comment "; //Links zum vorherigen/nächsten Photo ausgeben echo ""; if ($last!="") { echo '<< | ';} echo "Photo-Übersicht"; if ($next!="") { echo ' | >>';} echo " "; //Kommentare ausgeben while(list($color,$name)=each($comments)) { $comment = file("${name}.txt"); while(list($linenum,$line)=each($comment)) { preg_match("/([^:]+): (.*)/",$line,$out); if ($out[1] == $show) { echo "".trim($out[2]).""; break; } } } // feedbackbox.de Kommentar echo " "; echo ''; } else { // Ausgabe der Bilderübersicht, Gesamtanzahl durch Anzahl der Spalten teilen, ist etwas kompliziert ;-) $images = file("photos.txt"); $count = count($images)+2; for ($j = 0; $j < 4; $j++) { for ($i = $j; $i < $count; $i += 4) { $line = $images[$i]; preg_match("/([^ ]+) (.*)/",$line,$out); if ($out[1] != "") { Bild($out[1],$out[2]); } } echo " | \n"; } } ?> |
Stand: 27.12.2002 – Kontakt – (c) Inhalt & Konzeption: Arne Pottharst 1996-2002