isMobile()) { $actual_link = "$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; if($actual_link == "122.102.50.39/development/olimpiade2014/" || $actual_link == "122.102.50.39/development/olimpiade2014") { header("Location: http://122.102.50.39/development/olimpiade2014/mobile"); exit(); } elseif($actual_link == "www3.megaxus.com/olimpiade2014/" || $actual_link == "www3.megaxus.com/olimpiade2014") { header("Location: http://www3.megaxus.com/olimpiade2014/mobile"); exit(); } } 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); // if($_GET['devel']) $_SESSION['devel'] = 1; // if($_GET['destroy']) $_SESSION['devel'] = 0; // if(isset($_SESSION['devel'])) { echo $op; die; } if(isset($_GET['seo_url'])) $_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-sdgo'] = getFrontPage('intro-pendaftaran-sdgo'); $block['footer-pendaftaran-sdgo'] = getFrontPage('footer-pendaftaran-sdgo'); $block['intro-pendaftaran-cso'] = getFrontPage('intro-pendaftaran-cso'); $block['footer-pendaftaran-cso'] = getFrontPage('footer-pendaftaran-cso'); $block['pendaftaran_tutup'] = getFrontPage('pendaftaran_tutup'); $block['intro-pendaftaran-grandchase'] = getFrontPage('intro-pendaftaran-grandchase'); $block['footer'] = getFrontPage('footer'); include $config['template'].$op.".html"; //echo "";