body */ $file = $_SERVER['HTTP_REFERER']; //chop off the url part $file = str_replace('http://216.185.198.104/','',$file); $file = str_replace('http://www.dakotacda.org/','',$file); $file = str_replace('http://dakotacda.org/','',$file); if($file == '') { $file = "index.htm"; } //print "Dakota County Community Development Agency
Printable Version of $file
"; $prefix = "/www/dakotacda.org/httpdocs/"; $filename = $prefix."$file"; //print "Analyzing $filename
"; //$FH = fopen($filename,'r'); $FH = fopen($filename,'r'); if(! $FH) { print "Error Opening File
";} $contents = fread($FH, filesize($filename)); //print $contents; //$ReadFrom = 'TemplateBeginEditable name="body"'; $ReadFrom = 'InstanceBeginEditable name="body" -->'; $offset = strlen($ReadFrom); $ReadTo = '