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"; 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 ($COOKIE['stats'] != 'okdech'){ include 'includes/statistik.inc.php'; stats(); setcookie('stats', 'okdech', time()+ 3600); } */ $old_modules = !isset($old_modules) ? null : $old_modules; ob_start(); $script_include[] = ''; 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 'content/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(); ///// ads///////////////////// ob_start(); //Blok Menu include "themes/bazsiak/adsatas.php"; $adsatas = ob_get_contents(); ob_end_clean(); ///// ads ///////////////////// ///// ads///////////////////// if (!isset($_GET['pilih'])) { ob_start(); include "themes/bazsiak/adsgambar.php"; $adsgambar = ob_get_contents(); ob_end_clean(); } else { ob_start(); $topside = ob_get_contents(); ob_end_clean(); } ///// menu///////////////////// ob_start(); //Blok Menu include "themes/bazsiak/menuatas.php"; $topmenu = ob_get_contents(); ob_end_clean(); ///// login ///////////////////// ///top side ////////////////////// if (!isset($_GET['pilih'])) { ob_start(); include "themes/bazsiak/featured.php"; $topside = ob_get_contents(); ob_end_clean(); } else { ob_start(); $topside = ob_get_contents(); ob_end_clean(); } ///// menu///////////////////// ob_start(); //Blok Menu include "themes/bazsiak/linkbawah.php"; $linkbawah = ob_get_contents(); ob_end_clean(); ///// login ///////////////////// ///// left side ///////////////////// ob_start(); //Blok Menu include "mod/login/login.php"; include "content/menuadmin.php"; //include "content/menu.php"; //include "content/topikbox.php"; echo ""; modul(0); echo ""; //blok(0); echo ""; $leftside = ob_get_contents(); ob_end_clean(); ///// left side ///////////////////// ///// right side ///////////////////// ob_start(); //include "mod/konsultasi/konsultasi_view.php"; echo ""; modul(1); echo ""; //blok(1); $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; $adsatas= !isset($adsatas) ? '' : $adsatas; $adsgambar= !isset($adsgambar) ? '' : $adsgambar; $topmenu= !isset($topmenu) ? '' : $topmenu; $topside= !isset($topside) ? '' : $topside; $linkbawah= !isset($linkbawah) ? '' : $linkbawah; $define = array ('leftside' => $leftside, 'url' => $url_situs, 'content' => $content, 'rightside' => $rightside, 'adsatas' => $adsatas, 'adsgambar' => $adsgambar, 'topmenu' => $topmenu, 'topside' => $topside, 'linkbawah' => $linkbawah, 'judul_situs' => $judul_situs, 'style_include' => $style_include_out, 'script_include' => $script_include_out, 'meta_description' => $_META['description'], 'meta_keywords' => $_META['keywords'], 'timer' => $timer->stop() ); $tpl = new template ('themes/'.$theme.'/'.$theme.'.html'); $tpl-> define_tag($define); $tpl-> cetak(); ?>