<?php##################################################Content Management System - FormProcessor for#The Honolulu Advertiser - v 1.0 beta 2#Author - Chris Kanemura#Copyright 2001 - The Honolulu Advertiser#################################################// Get the requested URI(address of file)$url = $REQUEST_URI ;// Rip requested URI apart via a slash as diliminator$dir = explode ("/", $url);// Convert to an array http://the.honoluluadvertiser.com/forms/section/form_name$firstslash=$dir[0] ; // Root domain name area$engine=$dir[1] ; // This file - form engine$section=$dir[2] ; // Section code$formname=$dir[3] ; // Form name (.php file)//Create variables for file access to clean up code a bit//$parser = "/usr/home/chris/advinc/formindexer.php";$parser = "/www/engine/formmailer.php";$form_file = "/www/submit/$section/$formname.inc";$form_vars = "/www/submit/$section/$formname.php";$index = "/www/submit/$section/index.html";$mainindex = "/www/submit/index.html"; //temporary until formindexer.php$include_path = "/www/cms/site_includes";$header = "$include_path/header.php";$footer = "$include_path/footer.php";$show = "no"; // Do not display any email or print versions - set as default for forms$email = "on";//If they go to the root let them see a list of all forms - build the list from the indexesif(!$section && file_exists($index))	{		//$show = "no"; // Do not display any email or print versions		require($header);		include($index);		require($footer);		//exit();	}//Select which template to build//Display formelseif($section && file_exists($form_file))	{		require($header);		include($parser);		require($footer);	}//Display forms in the particular sectionelseif($section && !$formname && file_exists($index))	{		//$show = "no";		require($header);		require($index);		require($footer);	}//None of the above, too bad 404 a'ohe page, strip email and print version options - why in the world would you want to print this page anywayelse	{		$err = "404";		require($header);		print("Sorry, the form you are looking for is not here or is no longer available. <br><br>Click <a href=\"http://www.honoluluadvertiser.com/\">here</a> to return to our homepage.");		require($footer);	}?> 