Query("SET NAMES ".$PConfig['Charset'],__LINE__); create_tables(); require_once($PConfig['template_path']."header.html"); $_REQUEST['event']=trim($_REQUEST['event'])==''? "main":$_REQUEST['event']; switch($_REQUEST['event']){ case 'main': case 'add': case 'showfull': include($PConfig['path']."includes/".$_REQUEST['event'].".php"); } require_once($PConfig['template_path']."footer.html"); ?>