start(); define('KLATENWEB-KOMPONEN', true); define('KLATENWEB-KONTEN', true); include "ikutan/config.php"; include "ikutan/mysql.php"; include "ikutan/template.php"; global $judul_situs,$theme; $_GET['aksi'] = !isset($_GET['aksi']) ? null : $_GET['aksi']; $_GET['modul'] = !isset($_GET['modul']) ? null : $_GET['modul']; $_GET['pilih'] = !isset($_GET['pilih']) ? null : $_GET['pilih']; $_GET['act'] = !isset($_GET['act']) ? null : $_GET['act']; if (isset($stats) != 'OK'){ include 'ikutan/statistik.inc.php'; stats(); setcookie('stats', 'OK', time()+ 3600); } $old_modulules = !isset($old_modulules) ? null : $old_modulules; ob_start(); switch($_GET['modul']) { case 'yes': if (file_exists('modul/'.$_GET['pilih'].'/'.$_GET['pilih'].'.php') && !isset($_GET['act']) && !preg_match('/\.\./',$_GET['pilih'])) { include 'modul/'.$_GET['pilih'].'/'.$_GET['pilih'].'.php'; } else if (file_exists('modul/'.$_GET['pilih'].'/act_'.$_GET['act'].'.php') && !preg_match('/\.\./',$_GET['pilih']) && !preg_match('/\.\./',$_GET['act']) ) { include 'modul/'.$_GET['pilih'].'/act_'.$_GET['act'].'.php'; } else { header("location:index.php"); exit; } break; default: if (!isset($_GET['pilih'])) { include 'konten/normal.php'; } else if (file_exists('konten/'.$_GET['pilih'].'.php') && !preg_match("/\.\./",$_GET['pilih'])){ include 'konten/'.$_GET['pilih'].'.php'; } else { header("location:index.php"); exit; } break; } $tengah = ob_get_contents(); ob_end_clean(); ///////////////// LOGO //////////// ob_start(); include "plugin/logo.php"; $logo = ob_get_contents(); ob_end_clean(); ////////////////////////////////// ///////////////// FOOTER //////////// if (!isset($_GET['pilih'])) { ob_start(); include "plugin/footer.php"; $footer = ob_get_contents(); ob_end_clean(); } else { ob_start(); $footer = ob_get_contents(); ob_end_clean(); } ////////////////////////////////// ///////////////// LINKLOGIN //////////// ob_start(); include "plugin/linklogin.php"; $linklogin = ob_get_contents(); ob_end_clean(); ////////////////////////////////// ///// MENU KIRI ///////////////////// if (!isset($_GET['pilih'])) { ob_start(); include "plugin/kiri.php"; $kiri = ob_get_contents(); ob_end_clean(); } else { ob_start(); $kiri = ob_get_contents(); ob_end_clean(); } ///// MENU KIRI ///////////////////// ///// MENU KANAN ///////////////////// ob_start(); echo ""; modul(1); echo ""; blok(1); $kanan = ob_get_contents(); ob_end_clean(); ///// MENU KANAN ///////////////////// ///// HEADER ///////////////////// if (!isset($_GET['pilih'])) { ob_start(); include "plugin/header.php"; $header = ob_get_contents(); ob_end_clean(); } else { ob_start(); include "plugin/head.php"; $header = ob_get_contents(); ob_end_clean(); } ///// HEADER ///////////////////// if ($_GET['aksi'] == 'logout') { logout (); } $style_include_out = !isset($style_include) ? '' : implode("",$style_include); $script_include_out = !isset($script_include) ? '' : implode("",$script_include); $linklogin = !isset($linklogin) ? '' : $linklogin; $kiri = !isset($kiri) ? '' : $kiri; $kanan = !isset($kanan) ? '' : $kanan; $header = !isset($header) ? '' : $header; $logo = !isset($logo) ? '' : $logo; $footer = !isset($footer) ? '' : $footer; $define = array ( 'linklogin' => $linklogin, 'kiri' => $kiri, 'kanan' => $kanan, 'header' => $header,'logo' => $logo,'footer' => $footer, 'tengah' => $tengah, '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 ('thema/klatenweb-template.html'); $tpl-> define_tag($define); $tpl-> cetak(); ?>