\n"; echo "\n"; echo "".$title."\n"; ?> \n"; include("scripts.php"); echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "

[Home] [Search]

\n"; echo "

".$title."

"; echo "

 

\n"; echo "

".$textout."

\n"; echo "

 

\n"; echo "

All photographs are Copyright (c) ".$copyname." ".$copyyear.", and may not be stored in a retrieval system, transmitted or reproduced in any way including but not limited to photocopy, photograph, magnetic or other record without the prior written consent of ".$copyname."

\n"; echo "

 

\n"; echo "

If you want high resolution versions of the pictures in this gallery please contact ".$contrib."

\n"; echo "

 

\n"; echo "

\n"; echo "\n"; #$rs = mysql_query($sqlq); #$NumRows = mysql_num_rows($rs); $d = opendir("galleries/".$gal); $i = 1; while (($file = readdir($d)) !== false) { if ($file != "." && $file != "..") { $sqlq = "select * from gal_pics where gpic_gall_name = '".$gal."' and gpic_fname = '".$file."'"; $rs = mysql_query($sqlq); $NumRows = mysql_num_rows($rs); if ($NumRows == 0) { $ptitle = 'Untitled'; } else { $k = mysql_fetch_row($rs); $ptitle = $k[3]; } # for ($j=1;$j<=$NumRows;$j++) { # $ptitle = ''; # $k = mysql_fetch_row($rs); # if ($k[1] == $file) { # $ptitle = $k[3]; # } # } # if ($ptitle == '') { # $ptitle = "Untitled"; # } if (floor($i/2) != ceil($i/2)) { echo "\n"; echo "\n"; echo "\n"; } else { echo "\n"; echo "\n"; echo "\n"; } $i++; } } echo "

".$ptitle."

".$ptitle."

\n"; closedir($d); echo "\n"; echo "\n"; ?>