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

\n"; //echo "

"; //echo "Manage

\n"; //echo "

\n"; // Read in the entire file. $entrys=file($filename1); $num_entrys = count($entrys); if ($num_entrys == 0) { echo "

No Entires Listed for ".$farmname; } //For each entry echo " \n"; for ($i=0; $i<$num_entrys; $i++) { $line = explode( $d, $entrys[$i] ); $num_items = count($line); for ($a=0; $a<$num_items; $a++) { // For each item in a line $key[$a]=trim($key[$a]); $line[$a]=trim($line[$a]); $$key[$a]=$line[$a]; } //------------------Write Page ------------------------------ foreach ($key as $akey) { if ($akey=="edate") { echo ""; }else{ echo ""; } } else { echo ""; } } //foreach key } // foreach entry echo "
\n"; } elseif ($akey=="photo") { if (($photo!= "") && ($photo!= "noimg.gif")) { echo ""; echo " \n"; } } elseif ($akey=="name") { echo "
".$name." \n"; } elseif ($akey=="comment") { echo "
".$comment." \n"; } elseif ($akey=="pagelink") { if (!is_file($homedir.$farmdir.$pagelink)) { copy($newpage, $pagelink); echo "created new page for ".$pagelink; } } elseif ($akey=="date") { if (($i % 2)!=0) { echo "
"; include("footer.inc"); ?>