session_start();
ini_set('display_errors', 0);
$op = ($_GET['op'])?$_GET['op']:'index';
function sanitize($value)
{
global $db;
$magic_quotes_active = get_magic_quotes_gpc();
$new_enough_php = function_exists("mysql_real_escape_string");
// i.e PHP >= v4.3.0
if($new_enough_php){
//undo any magic quote effects so mysql_real_escape_string can do the work
if($magic_quotes_active){
$value = stripslashes($value);
}
//$value = $db->escape($value);
}
return $value;
}
$op = sanitize($op);
$_GET['seo_url'] = sanitize($_GET['seo_url']);
include "inc/conndb.inc.php";
include "control/".$op.".php";
require_once "classes/function.inc.php";
//require_once "classes/block.class.php";
//require_once "control/block.php";
//require_once "classes/article.class.php";
$block['index'] = getFrontPage('index');
$block['intro-pendaftaran'] = getFrontPage('intro-pendaftaran');
$block['intro-pendaftaran2'] = getFrontPage('intro-pendaftaran2');
$block['intro-pendaftaran2-footer'] = getFrontPage('intro-pendaftaran2-footer');
$block['intro-pendaftaran-ayodance'] = getFrontPage('intro-pendaftaran-ayodance');
$block['footer-pendaftaran-ayodance'] = getFrontPage('footer-pendaftaran-ayodance');
$block['intro-pendaftaran-lineage'] = getFrontPage('intro-pendaftaran-lineage');
$block['footer-pendaftaran-lineage'] = getFrontPage('footer-pendaftaran-lineage');
$block['intro-pendaftaran-warrock'] = getFrontPage('intro-pendaftaran-warrock');
$block['footer-pendaftaran-warrock'] = getFrontPage('footer-pendaftaran-warrock');
$block['pendaftaran-tutup'] = getFrontPage('pendaftaran-tutup');
include $config['template'].$op.".html";
?>
//echo "";
echo "";
?>