"; echo "".$farmname." - ".$page.""; echo ""; $header="header1.inc"; $self=explode("/", $_SERVER['PHP_SELF']); $a=count($self); $page=$self[$a-1]; $page=rm_ext($page); include("header.inc"); echo "

".$farmname." - ".ucwords($page)."

\n"; //echo "

".$name."
\n"; //echo "
Photo Directory Listing

\n"; echo "
\n"; echo "

\n"; $dir=opendir("."); // echo $dir; echo "
"; while ($file=readdir($dir)) { if ((strstr($file, "photos")) && ($file!==$page.".php")) { //$filename=ucwords($file); $filename=str_replace("photos_", "", $file); echo "

".ucwords($filename)." "; } if (strpos($file, "videos")) { $filename="Videos"; echo "

".$filename." "; } //echo " - ".date("m/d/Y g:i:s a T", filemtime($file)); //echo " - ".filesize($file)."bytes

"; } echo "

\n"; echo "
\n"; echo "

\n"; echo $name." - All rights reserved.".$date."

\n"; ?>