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/themes.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 (file_exists('themes/'.$theme.'/menu.php')){ include 'themes/'.$theme.'/menu.php'; } if ($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 '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(); ///// left side ///////////////////// ob_start(); //Blok Menu if ($youtube==1){ if (file_exists('themes/'.$theme.'/youtube.php')){ include 'themes/'.$theme.'/youtube.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 ///////////////////// if (!isset($index_hal)){ ob_start(); //include "content/cari.php"; echo ""; modul(1); echo ""; blok(1); $rightside = ob_get_contents(); ob_end_clean(); } else { $style_include[] = ' '; } ///// 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; $login = !isset($login) ? '' : $login; $news = !isset($news) ? '' : $news; $tambah = !isset($tambah) ? '' : $tambah; $foto = !isset($foto) ? '' : $foto; $define = array ('email' => $email_master, 'menu' => $menu, 'foto' => $foto, 'news' => $news, 'login' => $login, 'leftside' => $leftside, 'content' => $content, 'rightside' => $rightside, '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() ); if (cek_login ()){ if (session_is_registered ('UserName') && isset ($_SESSION['UserName']) && !empty ($_SESSION['UserName']) ){ if (session_is_registered ('LevelAkses') && $_SESSION['LevelAkses']=="Administrator"){ $tema='themes/'.$theme.'/theme-1.html'; } elseif (session_is_registered ('LevelAkses') && $_SESSION['LevelAkses']=="Editor"){ $tema='themes/'.$theme.'/theme-1.html'; } else{ $tema='themes/'.$theme.'/theme-1.html'; } } } else { $tema='themes/'.$theme.'/theme-1.html'; } $tpl = new template ($tema); $tpl-> define_tag($define); $tpl-> cetak(); ?>