include("pages/leftcol.php"); ?>
//See if the url parameters have 'act'
//if not, set act to 'home'
if(strpbrk($_SERVER['QUERY_STRING'],"act"))
$act = $_GET["act"];
else
$act = "home";
//include the correct page
if($act == "browse")
include("pages/browse.php");
else if($act == "browsegenerated")
include("pages/browsegenerated.php");
else if($act == "browsegenerated2")
include("pages/browsegenerated2.php");
else if($act == "about")
include("pages/about.php");
else if($act == "thank")
include("pages/thank.php");
else if($act == "dissemination")
include("pages/dissemination.php");
else if($act == "qa")
include("pages/qa.php");
else if($act == "developer")
include("developer/sampledownload.htm");
else if($act == "wishlist")
include("pages/browsewishlist.php");
else if($act == "login")
include("pages/session/login.php");
else if($act == "logout")
include("pages/session/logout.php");
//Below we remove the spaces from the URL to get the page.
// We want to keep the gen name as it is in the database though, so leave the spaces in the URL
else if($act == "generator")
{
include("pages/GeneratorPages/".str_replace (" ", "", $_GET["gen"])."/main.php");
//$_SESSION['genname'] = $_GET["gen"];
//include("pages/universalmain.php");//.str_replace (" ", "", $_GET["gen"]).;
}
else if($act == "format")
include("pages/GeneratorPages/".str_replace (" ", "", $_GET["gen"])."/format.php");
else if($act == "request")
include("pages/GeneratorPages/".str_replace (" ", "", $_GET["gen"])."/submit.php");
else if ($act =="bugtrack")
include("pages/GeneratorPages/".str_replace (" ", "", $_GET["gen"])."/bugtrack.php");
else
include("pages/home.php");
?>