0){ require_once (_FILE_.'format.php'); $queries = clean_url($_SERVER['REQUEST_URI'],$_SERVER['SCRIPT_NAME']); $domain = $queries[0]; $modul = $queries[1]; $cat = $queries[2]; $catid = $queries[3]; $Hpage = $queries[4]; $Hpageid = $queries[5]; $Lpage = $queries[6]; $Lpageid = $queries[7]; $Ppage = $queries[8]; $Ppageid = $queries[9]; $Tpage = $queries[10]; $Tpageid = $queries[11]; $cat = str_replace("%20"," ",stripslashes($cat)); $catid = str_replace("%20"," ",stripslashes($catid)); if ($modul) { $modul = "/$modul"; } if ($cat) { $cat = "/$cat"; } if ($catid) { $catid = "/$catid"; } if ($Hpage) { $Hpage = "/$Hpage"; } if ($Hpageid) { $Hpageid = "/$Hpageid"; } if ($Lpage) { $Lpage = "/$Lpage"; } if ($Lpageid) { $Lpageid = "/$Lpageid"; } if ($Ppage) { $Ppage = "/$Ppage"; } if ($Ppageid) { $Ppageid = "/$Ppageid"; } if ($Tpage) { $Tpage = "/$Tpage"; } if ($Tpageid) { $Tpageid = "/$Tpageid"; } header ("Location: http://m.nasanetku.com$modul$cat$catid$Hpage$Hpageid$Lpage$Lpageid$Ppage"); } else { require_once (_FILE_.'connect.php'); require_once (_FILE_.'database.php'); require_once (_FILE_.'clsencrypt.php'); require_once (_FILE_.'crypton.php'); require_once (_FILE_.'dateIndonesia.php'); require_once (_FILE_.'format.php'); // Create a new Encryption Object $enc = new Encryption; // view database $db = new db; $imnmaulana = "imnmaulana"; $queries = clean_url($_SERVER['REQUEST_URI'],$_SERVER['SCRIPT_NAME']); $domain = $queries[0]; $modul = $queries[1]; $cat = $queries[2]; $catid = $queries[3]; $Hpage = $queries[4]; $Hpageid = $queries[5]; $Lpage = $queries[6]; $Lpageid = $queries[7]; $Ppage = $queries[8]; $Ppageid = $queries[9]; $Tpage = $queries[10]; $Tpageid = $queries[11]; $modulg = substr($modul,0,13); if ($modulg=="katalog?gclid") { $modul = str_replace("katalog?gclid","katalog",stripslashes($modulg)); } $modulg = substr($modul,0,10); if ($modulg=="plan?gclid") { $modul = str_replace("plan?gclid","plan",stripslashes($modulg)); } $modulg = substr($modul,0,10); if ($modulg=="join?gclid") { $modul = str_replace("join?gclid","join",stripslashes($modulg)); } require_once (_FILE_.'cekmodul.php'); if ($modul) { $modulView = "$modul"; } if ($cat) { $catView = "/$cat"; } if ($catid) { $catidView = "/$catid"; } if ($Hpage) { $HpageView = "/$Hpage"; } if ($Hpageid) { $HpageidView = "/$Hpageid"; } if ($Lpage) { $LpageView = "/$Lpage"; } if ($Lpageid) { $LpageidView = "/$Lpageid"; } if ($Ppage) { $PpageView = "/$Ppage"; } if ($Ppageid) { $PpageidView = "/$Ppageid"; } if ($Tpage) { $TpageView = "/$Tpage"; } if ($Tpageid) { $TpageidView = "/$Tpageid"; } if(isset($_POST['submitmem'])) { $login_nm = $db->real_escape_string($_POST['unm']); //$login_ps = $_POST[pass]; $key = $_POST['keystr']; // Encrypt the Source Text $login_ps = $enc->encrypt($key, $db->real_escape_string($_POST['passw'])); $login_ps = str_replace("'","\'",$login_ps); $sql_user = "select member, membercode,memberusername,memberemail from members where memberactivated=1 AND memberusername='{$login_nm}' AND memberpassword='{$login_ps}'"; //echo "$sql_user"; //exit(); $result_user = $db->query($sql_user); $row_user = $db->fetch_array($result_user); // jika ketemu session_start(); $_SESSION["rcode"] = $row_user["membercode"]; $_SESSION["rusername"] = $row_user["memberusername"]; $_SESSION["remail"] = $row_user["memberemail"]; echo ""; echo "wait loading ..."; exit(); } if(isset($_POST['submitlogin'])) { $login_nm = $db->real_escape_string($_POST['unm']); //$login_nm = $_POST['unm']; $key = $_POST['keystr']; // Encrypt the Source Text $login_ps = $enc->encrypt($key, $db->real_escape_string($_POST['passw'])); //$login_ps = $enc->encrypt($key, $_POST['passw']); $login_ps = str_replace("'","\'",$login_ps); $sql_user = "select member, membercode,memberusername,memberemail from members where memberactivated=1 AND memberusername='{$login_nm}' AND memberpassword='{$login_ps}'"; //echo "$sql_user"; //exit(); $result_user = $db->query($sql_user); $number = @$_POST['verifyImage']; if(@md5($number) != $_SESSION['image_random_value']) { $salah = '**verifikasi tidak sama'; } else if ($row_user = $db->fetch_array($result_user)){ // jika ketemu session_start(); $_SESSION["rcode"] = $row_user["membercode"]; $_SESSION["rusername"] = $row_user["memberusername"]; $_SESSION["remail"] = $row_user["memberemail"]; echo ""; echo "wait loading ..."; exit(); //echo ""; } else { $salah = "Nama User dan Password Anda Tidak Ada"; } } if (md5($_GET["IdCurr"])==$_SESSION["random_value"]) { $_SESSION["currency"] = $_GET["currency"]; $currency = $_SESSION["currency"]; } else { $currency = "IDR"; } require_once (dirname(__FILE__).'/classContent/Classhome.php'); $ClassHome = new ClassHome(); $ClassHome->ClassMembers(); if (empty($modul) or ($modul=="index.php")) { //require_once (dirname(__FILE__).'/classContent/Classhome.php'); } else { require_once (dirname(__FILE__).'/'.$_GET['modul'].'/classContent/Class' . $_GET["modul"].'.php'); } if ($cekprod=="1") { if ($catid =="" or $catid =="next") { } else { $catid = $catid; $in_newNum=$db->query("SELECT productID FROM product WHERE productpublished=1 AND productID='$catid'"); $rs_Num = $db->num_rows($in_newNum); if ($rs_Num!=0) { $catid = $catid; } else { $catid = webdecrypt($catid); } $in_newNumCek=$db->query("SELECT productID FROM product WHERE productpublished=1 AND productID='$catid'"); $rs_NumCek = $db->num_rows($in_newNumCek); if ($rs_NumCek==0) { echo ""; } //$qry_hits=$db->query("UPDATE product SET hits=hits+1 WHERE productID='$catid'"); $inDescWeight="select productID,productcode,productheavy from product where productID='$catid'"; $rsDescWeight=$db->query($inDescWeight); $rwDescWeight=$db->fetch_array($rsDescWeight); $prodID=$rwDescWeight[productID]; $catprod=$rwDescWeight[productcode]; $weight = (int)$rwDescWeight[productheavy]; if ($rwDescWeight[productheavy]!="0") { $weight = "Berat : $weight gram
"; } else { $weight = ""; } $inDesc="select productmstID,productcode,productdesc,productimage,productamount,productmodel,productket,productsize,productwarna,productbahan,productlanguage,producttag,producttitlemeta,productdescmeta from product_mst where productcode='$catprod'"; $rsDesc=$db->query($inDesc); $rwDesc=$db->fetch_array($rsDesc); $prodmstID=$rwDesc[productmstID]; $catprod=$rwDesc[productcode]; $proddesc=$rwDesc[productdesc]; $image=$rwDesc[productimage]; $image2=$rwDesc[productimage2]; $ket=$rwDesc[productket]; $amount=$rwDesc[productamount]; $Amount=convert_rp($amount); $productmodel=$rwDesc[productmodel]; if ($productmodel!="") { $model = "Model : $productmodel
"; } else { $model = ""; } $tag = $rwDesc[producttag]; if ($rwDesc[productdescmeta]) { $shopmetadesc = $rwDesc[productdescmeta]; } else { $shopmetadesc = htmlentities(strip_tags($ket), ENT_QUOTES); $shopmetadesc = wordCut($shopmetadesc, 25); $shopmetadesc = steril_text($shopmetadesc); } $cryptshopID = webcrypt($prodID); $cshoptitle=strip_title_link($proddesc); $pathcanonical = "$path_url"."$modul/$cat/$catid/$Hpage/$cryptshopID/$cshoptitle"; $texttitle=$proddesc; if ($rwDesc[producttitlemeta]) { $texttitleheader = $rwDesc[producttitlemeta]; } else { $texttitleheader = $texttitle; } $s = array(); $s=explode(";",$rwDesc[productsize]); $w = array(); $w=explode(";",$rwDesc[productwarna]); $b = array(); $b=explode(";",$rwDesc[productbahan]); $l = array(); $l=explode(",",$rwDesc[productlanguage]); $sql_view=$db->query("SELECT * FROM galleryproduk WHERE galleryID='". $rwDesc[productcode] ."' ORDER BY galleryprodukID ASC"); $numrowsgal = $db->num_rows($sql_view); } } else if ($modul=="berita") { if ($Hpageid =="" or $Hpageid =="next") { } else { $Hpageid = $Hpageid; $in_newNum=$db->query("SELECT beritaID FROM beritacontents WHERE beritapublished=1 AND beritaID='$Hpageid'"); $rs_Num = $db->num_rows($in_newNum); if ($rs_Num!=0) { $Hpageid = $Hpageid; } else { $Hpageid = webdecrypt($Hpageid); } $in_newNumCek=$db->query("SELECT beritaID FROM beritacontents WHERE beritapublished=1 AND beritaID='$Hpageid'"); $rs_NumCek = $db->num_rows($in_newNumCek); if ($rs_NumCek==0) { echo ""; } $qry_hits=$db->query("UPDATE beritacontents SET hits=hits+1 WHERE beritaID='$Hpageid'"); $query= "SELECT beritaID,beritatitle,beritafirstpar,beritacontent,beritasubtitle,beritadatecreated,beritadatepublished,beritasubcatID,beritafrontimgurl,beritakeyword,beritasource FROM beritacontents WHERE beritaID = $Hpageid"; $result=$db->query($query); $rs = $db->fetch_assoc($result); $tag=$rs[beritakeyword]; $mlmmetadesc = htmlentities(strip_tags($rs['beritafirstpar']), ENT_QUOTES); $mlmmetadesc = wordCut($mlmmetadesc, 15); $mlmmetadesc = steril_text($mlmmetadesc); $cryptmlmID = webcrypt($rs[beritaID]); $cmlmtitle=strip_title_link($rs[beritatitle]); $pathcanonical = "$path_url"."$modul/$cat/$catid/$Hpage/$cryptmlmID/$cmlmtitle"; $texttitle=$rs[beritatitle]; $texttitleheader = $texttitle; $beritadatecreated=$rs[beritadatepublished]; $beritadatepublished = date("j F Y H:i",strtotime($beritadatecreated)); $beritafirst = $rs[beritafirstpar]; $content=$rs[beritacontent]; $dateY = date("Y",strtotime($rs[beritadatepublished])); $dateM = date("m",strtotime($rs[beritadatepublished])); } } if ($modul=="profil") { $keywords = "natural nusantara, nasa, pertanian, peternakan, kesehatan, kosmetik"; $titlemeta = "Profile nasanet by. nasanetku.com"; $descmeta = "nasanetku.com merupakan website yang menjual produk pertanian, peternakan, kesehatan, kosmetik yang dipasarkan melalui sistem multi level marketing (MLM)"; } else if ($modul=="product") { $keywords = "natural nusantara, nasa, pertanian, peternakan, kesehatan, kosmetik"; $titlemeta = "Produk nasa by. nasanetku.com"; $descmeta = "pertanian, peternakan, kesehatan, kosmetik"; } else if ($modul=="plan") { $keywords = "natural nusantara, nasa, pertanian, peternakan, kesehatan, kosmetik"; $titlemeta = "Marketing Plan nasa by. nasanetku.com"; $descmeta = "nasanetku.com merupakan website yang menjual produk pertanian, peternakan, kesehatan, kosmetik"; } else if ($modul=="member") { $keywords = "natural nusantara, nasa, pertanian, peternakan, kesehatan, kosmetik"; $titlemeta = "Membership nasanet by. nasanetku.com"; $descmeta = "Setiap member memiliki id login untuk mendapatkan informasi yang transparan mengenai perkembangan jaringan, bonus-bonus member"; } else if ($modul=="faq") { $keywords = "natural nusantara, nasa, pertanian, peternakan, kesehatan, kosmetik"; $titlemeta = "FAQ nasanet by. nasanetku.com"; $descmeta = "nasanetku.com merupakan website yang menjual produk pertanian, peternakan, kesehatan, kosmetik"; } else if ($modul=="berita") { $keywords = "natural nusantara, nasa, pertanian, peternakan, kesehatan, kosmetik"; $titlemeta = "Berita nasa by. nasanetku.com"; $descmeta = "nasanetku.com merupakan website yang menjual produk pertanian, peternakan, kesehatan, kosmetik"; } else if ($modul=="join") { $keywords = "natural nusantara, nasa, pertanian, peternakan, kesehatan, kosmetik"; $titlemeta = "Cara Daftar Member Nasa by. nasanetku.com"; $descmeta = "nasanetku.com merupakan website yang menjual produk pertanian, peternakan, kesehatan, kosmetik"; } else if ($modul=="contact") { $keywords = "natural nusantara, nasa, pertanian, peternakan, kesehatan, kosmetik"; $titlemeta = "Hubungi nasanet by. nasanetku.com"; $descmeta = "nasanetku.com merupakan website yang menjual produk pertanian, peternakan, kesehatan, kosmetik"; } else { $keywords = "natural nusantara, nasa, pertanian, peternakan, kesehatan, kosmetik"; $titlemeta = "Distributor Nasa - Natural Nusantara by. nasanetku.com"; $descmeta = "nasanetku.com adalah web support Natural Nusantara yang menjual produk pertanian, peternakan, kesehatan, dan kosmetik melalui sistem Multi Level Marketing"; } include "template/$imnmaulana/index.php"; } ?>