$line) { $line = trim($line); $parts = explode(",",$line); $seq[$line_num] = $x; $photo_prefix[$line_num] = $parts[0]; $desc[$line_num] = $parts[1]; $photo[$line_num] = $photo_prefix[$line_num] . ".jpg"; $x++; } // end of foreach $max = $line_num; $v_link = $pic; if ($pic > ($max - 4) ) { $v_link = $max - 4; // used to position internal page link on vertical } if ($pic == "") { $pic = 0; } if ($pic > $max) { $pic = 0; } $next = $pic + 1; $prev = $pic - 1; if ($next > $max) { $next = 0; } if ($prev < 0) { $prev = 0; } $photo_name = $photo[$pic]; $photo_desc = $desc[$pic]; $next_prev = "   "; $image = ""; // -------------------------------------------------------------------------- function cleaner($data) { $data = preg_replace('#[^a-z0-9\.\-\@\_]#i', ' ', $data); $data = trim($data); return $data; } ?> <?php echo $title; ?>
$photo_desc"; ?>