template_dir = $lokasiweb.'template/mobile_baru/'; $tpl->compile_dir = $lokasiweb. 'templates_c/mobile_baru/'; // current date $cdate = date('Y-m-d H:i:s'); $cdate = tanggaltok_r($cdate); include("komponen/home/data_footer.php"); $tpl->assign("cdate",$cdate); $tpl->assign("lokasiweb",$lokasiweb); $tpl->assign("lokasitemplate",$lokasitemplate); $tpl->assign("basedomain",$basedomain); $tpl->assign("templatelogin",$templatelogin); $tpl->assign("title",$title); $tpl->assign("cleanurl",$cleanurl); $tpl->assign("owner",$owner); $tpl->assign("support",$support); $tpl->assign("support_email",$support_email); $tpl->assign("metakeyword",$metakeyword); $tpl->assign("badword",$badword); $tpl->assign("badip",$badip); $tpl->assign("domain",$domain); $tpl->assign("fasilitasprint",$fasilitasprint); $tpl->assign("fasilitasemail",$fasilitasemail); $tpl->assign("fasilitaspdf",$fasilitaspdf); $tpl->assign("lokasiwebmember",$fasilitas); $tpl->assign("lokasiwebtemplate",$lokasiwebtemplate); $tpl->assign("fulldomain",$fulldomain); $tpl->assign("domainfull",$fulldomain); $tpl->assign("basedomain",$basedomain); $br = $_SERVER['HTTP_USER_AGENT']; if(preg_match("/BlackBerry/i",$br)) $via = "bb"; else if(preg_match("/Android/i",$br)) $via = "android"; else if(preg_match("/iPhone/i",$br)) $via = "iphone"; else $via = "m"; $tpl->assign("via","$via"); } if($_SESSION[userName]) { $tpl->assign("login","1"); $tpl->assign("userName",$_SESSION[userName]); $tpl->assign("userId",$_SESSION[userId]); $tpl->assign("userFullName",$_SESSION[userFullName]); $tpl->assign("userDirName",$_SESSION[userDirName]); include("/home/abatasa/abatasa.com/komponen/home/notifikasi.php"); } include('/home/abatasa/abatasa.com/komponen/useronline/useronline.php'); $tpl->assign("basedomain",$basedomain); $tpl->assign("fasilitasprint",$fasilitasprint); $tpl->assign("fasilitasemail",$fasilitasemail); $tpl->assign("fasilitaspdf",$fasilitaspdf); $var = getVar($_SERVER["REQUEST_URI"],"pustaka"); $tpl->assign("uri","$fulldomain".$_SERVER['REQUEST_URI']); $rubrik = $var[1]; $tpl->assign("rubrik",$rubrik); $kanal = $var[2]; $tpl->assign("kanal",$kanal); $aksi = $var[3]; $tpl->assign("aksi",$aksi); //Proses Ajax if($aksi=="ajax" && !empty($var[3]) ){ include("komponen/$kanal/$var[3].php"); exit(); } if(($aksi=="print") && (file_exists("komponen/$kanal/print.php")) ) { include("komponen/$kanal/print.php"); exit(); } if(($aksi=="kirim") && (file_exists("komponen/$kanal/kirim.php")) ) { include("komponen/$kanal/kirim.php"); exit(); } if(($aksi=="email") && (file_exists("komponen/$kanal/email.php")) ) { include("komponen/$kanal/email.php"); exit(); } if(($aksi=="pdf") && (file_exists("komponen/$kanal/pdf.php")) ) { include("komponen/$kanal/pdf.php"); exit(); } if(($aksi=="rss") && (file_exists("komponen/$kanal/rss.php")) ) { include("komponen/$kanal/rss.php"); exit(); } if(file_exists($var[0])) { include($var[0]); } else { die("Website $title dalam masa pemeliharaan. Silahkan berkunjung lain waktu"); } //untuk page views include("/home/abatasa/login.abatasa.com/komponen/home/pageviews.php"); if(preg_match("/abatasa.co.id/i",$_SERVER['HTTP_HOST'])) $basedomain = "abatasa.co.id"; ?>