assign("login","1"); $tpl->assign("userName",$_SESSION[userName]); $tpl->assign("userId",$_SESSION[userId]); $tpl->assign("userFullName",$_SESSION[userFullName]); $tpl->assign("userDirName",$_SESSION[userDirName]); } $tpl->assign("trans_id",$_SESSION[trans_id]); $br = $_SERVER['HTTP_USER_AGENT']; $getdomain = $_SERVER['HTTP_HOST']; $getdomain = str_replace("www.","",$getdomain); $dom = explode(".",$getdomain); if(preg_match("/MIDP-2/i",$br)){ $dom[0] = "m"; $visitor = "m"; } else if(preg_match("/Phone/i",$br)){ $dom[0] = "m"; $visitor = "m"; } else if(preg_match("/BlackBerry/i",$br)){ $dom[0] = "m"; $visitor = "m"; } else if(preg_match("/Android/i",$br)){ $dom[0] = "m"; $visitor = "m"; } else if(preg_match("/Mobile/i",$br)){ $dom[0] = "m"; $visitor = "m"; } else if(preg_match("/Nokia/i",$br)){ $dom[0] = "m"; $visitor = "m"; } else if(preg_match("/Mini/i",$br)){ $dom[0] = "m"; $visitor = "m"; } else $site = "d"; if($dom[0]=="m") { $site = $dom[0]; //Konfigurasi Letak File $lokasitemplate = "$lokasiweb/template/mobile/"; $lokasitemplate = "$lokasiweb/template/mobile/"; //Konfigurasi tambahan $lokasiwebtemplate = "$domain/template/mobile/"; $templatelogin = "/home/abatasa/login.abatasa.com/template/mobile/komponen/home"; $domain = str_replace("http://","http://m.",$domain); $fulldomain = "$domain$cleanurl"; $domainfull = "$domain$cleanurl"; //Konfigurasi untuk Smarty Template Enggine ini_set("include_path","$lokasiweb/librari/smarty/libs/"); require_once "Smarty.class.php"; $tpl = new Smarty; $tpl->template_dir = $lokasiweb.'template/mobile/'; $tpl->compile_dir = $lokasiweb. 'templates_c/mobile/'; $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'); $var = getVar($_SERVER["REQUEST_URI"],"store"); $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(); } //Facebook dan Twitter Connect require_once "librari/facebook/fbconf.php"; $tpl->assign("appapikey",$appapikey); if(file_exists($var[0])) { include($var[0]); } else { die("Website $title dalam masa pemeliharaan. Silahkan berkunjung lain waktu"); } ?>