getVars(); // start the session $init->startSession(); if(!$vars) { include_once("ADMINSTYLE.php"); $admin = new ADMINSTYLE($vars); $pString = $admin->gateKeep('display'); } else if($vars["action"] == 'adminStyleAddInit') { include_once("ADMINSTYLE.php"); $admin = new ADMINSTYLE($vars); $pString = $admin->gateKeep('addInit'); } else if($vars["action"] == 'adminStyleAdd') { include_once("ADMINSTYLE.php"); $admin = new ADMINSTYLE($vars); $pString = $admin->gateKeep('add'); } else if($vars["action"] == 'adminStyleEditInit') { include_once("ADMINSTYLE.php"); $admin = new ADMINSTYLE($vars); $pString = $admin->gateKeep('editInit'); } else if($vars["action"] == 'adminStyleEditDisplay') { include_once("ADMINSTYLE.php"); $admin = new ADMINSTYLE($vars); $pString = $admin->gateKeep('editDisplay'); } else if($vars["action"] == 'adminStyleEdit') { include_once("ADMINSTYLE.php"); $admin = new ADMINSTYLE($vars); $pString = $admin->gateKeep('edit'); } else if($vars["action"] == 'adminStyleCopyInit') { include_once("ADMINSTYLE.php"); $admin = new ADMINSTYLE($vars); $pString = $admin->gateKeep('copyInit'); } else if($vars["action"] == 'adminStyleCopyDisplay') { include_once("ADMINSTYLE.php"); $admin = new ADMINSTYLE($vars); $pString = $admin->gateKeep('copyDisplay'); } else if($vars["action"] == 'previewStyle') { //$pString = print_r($vars); include_once("PREVIEWSTYLE.php"); $preview = new PREVIEWSTYLE($vars); $pString = $preview->display(); include_once("CLOSEPOPUP.php"); new CLOSEPOPUP($pString); } else if($vars["action"] == 'help') { include_once("HELPSTYLE.php"); $help = new HELPSTYLE(); $pString = $help->display(); include_once("CLOSE.php"); new CLOSE($pString, FALSE); } else $pString = $errors->text("inputError", "invalid"); /***** * Close the HTML code by calling the constructor of CLOSE which also * prints the HTTP header, body and flushes the print buffer. *****/ include_once("CLOSE.php"); new CLOSE($pString); ?>