require_once("patchworks/config/patchworks.php"); require_once("patchworks/website/classes/page.handler.php"); $seourl = 'home'; if (isset($_GET['seourl'])) { $seourl = $_GET['seourl']; } else { $_GET['seourl'] = $seourl; } $preview = (isset($_GET['preview'])) ? true : false; $buildURL = ''; foreach($_GET as $keyname => $value) { if (is_array($value)) { for ($a = 0; $a < count($value); $a++) { $buildURL .= ($buildURL == '') ? $keyname."=".$value : "&".$keyname."=".$value; } } else { $buildURL .= ($buildURL == '') ? $keyname."=".$value : "&".$keyname."=".$value; //echo("$keyname=$value.
\n"); } } $pageHandler = new pageHandler(); $pageHandler->preview = true; $pageHandler->getPage($seourl, $buildURL, $_GET); $pageHandler->displayPage(); ?>