start(); if (file_exists("install.php")){ header ("location:install.php"); } define('AURACMS_MODULE', true); define('AURACMS_CONTENT', true); include "includes/config.php"; include "includes/mysql.php"; include "includes/template.php"; include "includes/admin.lib.php"; global $judul_situs,$theme; $_GET['aksi'] = !isset($_GET['aksi']) ? null : $_GET['aksi']; $_GET['mod'] = !isset($_GET['mod']) ? null : $_GET['mod']; $_GET['pilih'] = !isset($_GET['pilih']) ? null : $_GET['pilih']; $_GET['act'] = !isset($_GET['act']) ? null : $_GET['act']; if (isset($stats) != 'okdech'){ include 'includes/statistik.inc.php'; stats(); setcookie('stats', 'okdech', time()+ 3600); } $old_modules = !isset($old_modules) ? null : $old_modules; ob_start(); switch($_GET['mod']) { case 'yes': if (file_exists('mod/'.$_GET['pilih'].'/'.$_GET['pilih'].'.php') && !isset($_GET['act']) && !preg_match('/\.\./',$_GET['pilih'])) { include 'mod/'.$_GET['pilih'].'/'.$_GET['pilih'].'.php'; } else if (file_exists('mod/'.$_GET['pilih'].'/act_'.$_GET['act'].'.php') && !preg_match('/\.\./',$_GET['pilih']) && !preg_match('/\.\./',$_GET['act']) ) { include 'mod/'.$_GET['pilih'].'/act_'.$_GET['act'].'.php'; } else { header("location:index.php"); exit; } break; default: if (!isset($_GET['pilih'])) { include 'themes/'.$theme.'/normal.php'; } else if (file_exists('content/'.$_GET['pilih'].'.php') && !preg_match("/\.\./",$_GET['pilih'])){ include 'content/'.$_GET['pilih'].'.php'; } else { header("location:index.php"); exit; } break; } $content = ob_get_contents(); ob_end_clean(); ///// left side ///////////////////// ob_start(); //Blok Menu include 'content/menu.php'; include 'content/menuatas.php'; echo ""; modul(0); $leftside = ob_get_contents(); ob_end_clean(); ///// left side ///////////////////// ///// right side ///////////////////// ob_start(); echo ""; modul(1); echo ""; $rightside = ob_get_contents(); ob_end_clean(); ///// right side ///////////////////// if ($_GET['aksi'] == 'logout') { logout (); } $style_include_out = !isset($style_include) ? '' : implode("",$style_include); $script_include_out = !isset($script_include) ? '' : implode("",$script_include); $rightside = !isset($rightside) ? '' : $rightside; $leftside = !isset($leftside) ? '' : $leftside; //include 'mod/video/video_block.php'; $tabed = ''; $define = array ('leftside' => $leftside, 'content' => $content, //'video' => $videoblock, 'web' => $url_situs, 'rightside' => $rightside, 'menuatas' => $menuatas, //'heiglight' => $heiglight, 'slideberita' => $slideberita, 'judul_situs' => $judul_situs, 'tabed' => $tabed, 'marquee' => $marquee, 'style_include' => $style_include_out, 'script_include' => $script_include_out, 'meta_description' => $_META['description'], 'meta_keywords' => $_META['keywords'], 'url' => $url_situs, 'timer' => $timer->stop() ); if (!isset($index_hal) && !($_GET['pilih'])){ $tpl = new template ('themes/'.$theme.'/'.$theme.'-3.html'); }elseif (!isset($index_hal) && ($_GET['pilih'])){ $tpl = new template ('themes/'.$theme.'/'.$theme.'-1.html'); }else{ $tpl = new template ('themes/'.$theme.'/'.$theme.'-2.html'); } if (isset($index_tpl)){ $tpl = new template ('themes/'.$theme.'/'.$theme.'-3.html'); } $tpl-> define_tag($define); $tpl-> cetak(); ?>