$value) { $$key = $value; } foreach($_POST as $key => $value) { $$key = $value; } $page_title="PAPERFix: Binding,Laminating and Print Finishing Equipment"; $page_description=""; $page_keyword=""; $banimage=""; $ROOT = ""; if (!isset($link)): $link="homepage"; endif; $page=$link; $header_file = "cms_data.txt"; $fd = fopen ($header_file, "r"); $contents = fread ($fd, filesize ($header_file)); fclose ($fd); $acontents=explode("\n",$contents); $found = false; foreach($acontents as $values){ $arows=explode("|||", $values); if ($arows[2]==$link): $desc=explode("|||", $values); $page_title = $desc[3]; $page_keywords = $desc[4]; $page_description = $desc[5]; $page_header_title = $desc[7]; $found = true; break; endif; } if ($found==true): $page_content="$desc[1]"; include "template.html"; else: @header ("location:/"); endif; ?>