encrypt($key, $_POST['pass_in']); $login_ps = str_replace("'","\'",$login_ps); $sql_user = "select idcode,firstname, email_address, password from register where email_address='$login_nm' AND password='$login_ps'"; //echo "$sql"; //exit(); $result_user = $db->query ($sql_user) or die (mysql_error()); $number = @$_POST['verifyImage']; if(@md5($number) != $_SESSION['image_random_value']) { $salah = '**verification does not match'; } else if ($row_user = $db->fetch_array($result_user)){ // jika ketemu session_start(); $_SESSION["username"] = $row_user["firstname"]; $_SESSION["email_in"] = $row_user["email_address"]; $_SESSION["user_id"] = $row_user["idcode"]; } else { $salah = "Wrong User Name And Password"; } } if (!isset($_SESSION["currency"])) { $_SESSION["currency"] = "IDR"; $currency = $_SESSION["currency"]; } else if ($_POST["currency"]) { $_SESSION["currency"] = $_POST["currency"]; $currency = $_SESSION["currency"]; } else { $currency = $_SESSION["currency"]; } $Lpageid = str_replace("%20"," ",stripslashes($Lpageid)); require_once (dirname(__FILE__).'/class/Classhome.php'); $ClassHome = new ClassHome(); if (isset($_SESSION["user_id"])) { $ClassHome->ClassMembers(); } if (empty($modul) or $modul=="index.php") { //require_once (dirname(__FILE__).'/class/Classhome.php'); } else { require_once (dirname(__FILE__).'/class/Class' . $_GET['modul'].'.php'); } $imnmaulana = "imnmaulana"; if ($modul=="katalog") { if ($Hpage =="" or $Hpage =="next") { } else { $Hpage = $Hpage; $in_newNum=$db->query("SELECT productID FROM product WHERE productpublished=1 AND productID='$Hpage'"); $rs_Num = $db->num_rows($in_newNum); if ($rs_Num!=0) { $Hpage = $Hpage; } else { $Hpage = webdecrypt($Hpage); } $qry_hits=$db->query("UPDATE product SET hits=hits+1 WHERE productID='$Hpage'"); $inDescWeight="select productID,productcode,productheavy from product where productID='$Hpage'"; $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]; $tag = $rwDesc[producttag]; if ($rwDesc[productdescmeta]) { $enjoymetadesc = $rwDesc[productdescmeta]; } else { $enjoymetadesc = htmlentities(strip_tags($ket), ENT_QUOTES); $enjoymetadesc = wordCut($enjoymetadesc, 25); $enjoymetadesc = steril_text($enjoymetadesc); } $cryptenjoyID = webcrypt($prodID); $cenjoytitle=strip_title_link($proddesc); $pathcanonical = "$path_url"."$modul/$cat/$catid/$Hpage/$cryptenjoyID/$cenjoytitle"; $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; if ($cat=="BVideo") { $in_newNum=$db->query("SELECT videoID FROM videocontents WHERE videopublished=1 AND videoID='$Hpageid'"); $rs_Num = $db->num_rows($in_newNum); if ($rs_Num!=0) { $Hpageid = $Hpageid; } else { $Hpageid = webdecrypt($Hpageid); } $in_newNumCek=$db->query("SELECT videoID FROM videocontents WHERE videopublished=1 AND videoID='$Hpageid'"); $rs_NumCek = $db->num_rows($in_newNumCek); if ($rs_NumCek==0) { echo ""; } $qry_hits=$db->query("UPDATE videocontents SET hits=hits+1 WHERE videoID='$Hpageid'"); $query= "SELECT videoID,videotitle,videofirstpar,videocontent,videosubtitle,videodurasi,videoreporter,videokameramen,videoflass,videodatecreated,videodatepublished,videosubcatID,videofrontimgurl,videokeyword FROM videocontents WHERE videoID = $Hpageid"; $result=$db->query($query); $rs = $db->fetch_assoc($result); $tag=$rs[videokeyword]; $enjoymetadesc = htmlentities(strip_tags($rs['videofirstpar']), ENT_QUOTES); $enjoymetadesc = wordCut($enjoymetadesc, 25); $enjoymetadesc = steril_text($enjoymetadesc); $cryptenjoyID = webcrypt($rs[videoID]); $cenjoytitle=strip_title_link($rs[videotitle]); $pathcanonical = "$path_url"."$modul/$cat/$catid/$Hpage/$cryptenjoyID/$cenjoytitle"; $texttitle=$rs[videotitle]; $texttitleheader = $texttitle; $videodatecreated=$rs[videodatepublished]; $videodatepublished = date("j F Y H:i",strtotime($videodatecreated)); $videofirst = $rs[videofirstpar]; $content=$rs[videocontent]; $dateY = date("Y",strtotime($rs[videodatepublished])); $dateM = date("m",strtotime($rs[videodatepublished])); } else if ($cat=="gallery") { $in_newNum=$db->query("SELECT galleryID FROM galleries WHERE gallerypublished=1 AND galleryID='$Hpageid'"); $rs_Num = $db->num_rows($in_newNum); if ($rs_Num!=0) { $Hpageid = $Hpageid; } else { $Hpageid = webdecrypt($Hpageid); } $in_newNumCek=$db->query("SELECT galleryID FROM galleries WHERE gallerypublished=1 AND galleryID='$Hpageid'"); $rs_NumCek = $db->num_rows($in_newNumCek); if ($rs_NumCek==0) { echo ""; } $qry_hits=$db->query("UPDATE galleries SET hits=hits+1 WHERE galleryID='$Hpageid'"); $query= "SELECT galleryID,gallerytitle,gallerydesc FROM galleries where gallerypublished=1 AND galleryID = $Hpageid"; $result=$db->query($query); $rs = $db->fetch_assoc($result); $texttitle=$rs[gallerytitle]; $enjoymetadesc = htmlentities(strip_tags($rs['gallerydesc']), ENT_QUOTES); $enjoymetadesc = wordCut($enjoymetadesc, 25); $enjoymetadesc = steril_text($enjoymetadesc); $cryptenjoyID = webcrypt($rs[galleryID]); $cenjoytitle=strip_title_link($rs[gallerytitle]); $pathcanonical = "$path_url"."$modul/$cat/$catid/$Hpage/$cryptenjoyID/$cenjoytitle"; $texttitle=$rs[gallerytitle]; $texttitleheader = $texttitle; $galdatecreated=$rs[gallerydatepublished]; $gallerydatepublished = date("j F Y H:i",strtotime($galdatecreated)); $dateY = date("Y",strtotime($rs[gallerydatepublished])); $dateM = date("m",strtotime($rs[gallerydatepublished])); $qry_galleryDetail=$db->query("SELECT * from galleryimages WHERE galleryID='$rs[galleryID]' ORDER BY galleryimageID ASC"); $sql_galleryDetail_view=$db->query("SELECT * FROM galleryimages where galleryID='$rs[galleryID]' ORDER BY galleryimageID DESC"); $rs_galleryDetail_view=$db->fetch_array($sql_galleryDetail_view); $gambarView=$rs_galleryDetail_view[imageurl]; $textGalView=$rs_galleryDetail_view[galleryimagedesc]; } else { $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 FROM beritacontents WHERE beritaID = $Hpageid"; $result=$db->query($query); $rs = $db->fetch_assoc($result); $tag=$rs[beritakeyword]; $enjoymetadesc = htmlentities(strip_tags($rs['beritafirstpar']), ENT_QUOTES); $enjoymetadesc = wordCut($enjoymetadesc, 25); $enjoymetadesc = steril_text($enjoymetadesc); $cryptenjoyID = webcrypt($rs[beritaID]); $cenjoytitle=strip_title_link($rs[beritatitle]); $pathcanonical = "$path_url"."$modul/$cat/$catid/$Hpage/$cryptenjoyID/$cenjoytitle"; $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 ($cat=="chart_reg") { $keywords = "Jaket Kulit Murah, Jaket Garut, Tas Kulit Garut, Sandal Kulit Garut, Sarung Tangan Kulit, Topi Kulit, Aksesoris Kulit"; $titlemeta = "Shopping Cart - Registration by. jaketkulitku.com"; $descmeta = ""; } else if ($cat=="testimoni") { $keywords = "Jaket Kulit Murah, Jaket Garut, Tas Kulit Garut, Sandal Kulit Garut, Sarung Tangan Kulit, Topi Kulit, Aksesoris Kulit"; $titlemeta = "Testimoni by. jaketkulitku.com"; $descmeta = ""; } else if ($cat=="confirm") { $keywords = "Jaket Kulit Murah, Jaket Garut, Tas Kulit Garut, Sandal Kulit Garut, Sarung Tangan Kulit, Topi Kulit, Aksesoris Kulit"; $titlemeta = "Confirm Payment by. jaketkulitku.com"; $descmeta = ""; } else if ($cat=="faq") { $keywords = "Jaket Kulit Murah, Jaket Garut, Tas Kulit Garut, Sandal Kulit Garut, Sarung Tangan Kulit, Topi Kulit, Aksesoris Kulit"; $titlemeta = "faq by. jaketkulitku.com"; $descmeta = "Kami akan lampirkan di sini beberapa pertanyaan yang sering ditanyakan. Apabila pertanyaan Anda tidak terjawab, silahkan ajukan pertanyaan Anda melalui SMS atau di menu Kontak Kami. Terima kasih"; } else if ($cat=="updatekirim") { $keywords = "Jaket Kulit Murah, Jaket Garut, Tas Kulit Garut, Sandal Kulit Garut, Sarung Tangan Kulit, Topi Kulit, Aksesoris Kulit"; $titlemeta = "Update Pengiriman by. jaketkulitku.com"; $descmeta = ""; } else if ($cat=="PProfil") { $keywords = "Jaket Kulit Murah, Jaket Garut, Tas Kulit Garut, Sandal Kulit Garut, Sarung Tangan Kulit, Topi Kulit, Aksesoris Kulit"; $titlemeta = "About Us by. jaketkulitku.com"; $descmeta = "ENJOY merupakan perusahan yang bergerak dalam bidang kerajinan dan e-commerce yang berbentuk kelompok usaha bersama, gabungan dari pengrajin, pemasar online, dan penggiat pariwisata"; } else if ($modul=="profil") { $keywords = "Jaket Kulit Murah, Jaket Garut, Tas Kulit Garut, Sandal Kulit Garut, Sarung Tangan Kulit, Topi Kulit, Aksesoris Kulit"; $titlemeta = "About Us by. jaketkulitku.com"; $descmeta = "ENJOY merupakan perusahan yang bergerak dalam bidang kerajinan dan e-commerce yang berbentuk kelompok usaha bersama, gabungan dari pengrajin, pemasar online, dan penggiat pariwisata"; } else if ($modul=="pesan") { $keywords = "Jaket Kulit Murah, Jaket Garut, Tas Kulit Garut, Sandal Kulit Garut, Sarung Tangan Kulit, Topi Kulit, Aksesoris Kulit"; $titlemeta = "Cara Pesan by. jaketkulitku.com"; $descmeta = "Untuk melakukan pembelian silahkan gunakan shopping chart yang ada dalam situs ini. Silahkan login menggunakan account Anda"; } else if ($modul=="reseller") { $keywords = "Jaket Kulit Murah, Jaket Garut, Tas Kulit Garut, Sandal Kulit Garut, Sarung Tangan Kulit, Topi Kulit, Aksesoris Kulit"; $titlemeta = "Reseller by. jaketkulitku.com"; $descmeta = "Kami juga membuka kesempatan bagi Anda yang ingin memiliki penghasilan tambahan dengan menjadi Reseller Kami di daerah atau lingkungan Anda, baik secara online maupun offline"; } else if ($modul=="katalog") { if ($catid) { $catmetatext=$db->query("select categorytitlemeta,categorydescmeta,categorykeywords from category_check where categorypublished=1 AND categoryID='$catid'"); $rsmetatext = $db->fetch_array($catmetatext); $keywords = "$rsmetatext[categorykeywords]"; if ($keywords) { $keywords = "$rsmetatext[categorykeywords]"; } else { $keywords = "Jaket Kulit Murah, Jaket Garut, Tas Kulit Garut, Sandal Kulit Garut, Sarung Tangan Kulit, Topi Kulit, Aksesoris Kulit"; } $titlemeta = "$rsmetatext[categorytitlemeta]"; if ($titlemeta) { $titlemeta = "$rsmetatext[categorytitlemeta]"; } else { $titlemeta = "Katalog by. jaketkulitku.com"; } $descmeta = "$rsmetatext[categorydescmeta]"; if ($descmeta) { $descmeta = "$rsmetatext[categorydescmeta]"; } else { $descmeta = ""; } } else { $keywords = "Jaket Kulit Murah, Jaket Garut, Tas Kulit Garut, Sandal Kulit Garut, Sarung Tangan Kulit, Topi Kulit, Aksesoris Kulit"; $titlemeta = "Katalog by. jaketkulitku.com"; $descmeta = ""; } } else if ($modul=="ukuran") { $keywords = "Jaket Kulit Murah, Jaket Garut, Tas Kulit Garut, Sandal Kulit Garut, Sarung Tangan Kulit, Topi Kulit, Aksesoris Kulit"; $titlemeta = "Ukuran dan Warna by. jaketkulitku.com"; $descmeta = ""; } else if ($modul=="berita") { $keywords = "Jaket Kulit Murah, Jaket Garut, Tas Kulit Garut, Sandal Kulit Garut, Sarung Tangan Kulit, Topi Kulit, Aksesoris Kulit"; $titlemeta = "Artikel by. jaketkulitku.com"; $descmeta = ""; } else if ($modul=="shopping") { $keywords = "Jaket Kulit Murah, Jaket Garut, Tas Kulit Garut, Sandal Kulit Garut, Sarung Tangan Kulit, Topi Kulit, Aksesoris Kulit"; $titlemeta = "Shopping by. jaketkulitku.com"; $descmeta = ""; } else if ($modul=="account") { $keywords = "Jaket Kulit Murah, Jaket Garut, Tas Kulit Garut, Sandal Kulit Garut, Sarung Tangan Kulit, Topi Kulit, Aksesoris Kulit"; $titlemeta = "Account by. jaketkulitku.com"; $descmeta = ""; } else if ($modul=="ketentuan") { $keywords = "Jaket Kulit Murah, Jaket Garut, Tas Kulit Garut, Sandal Kulit Garut, Sarung Tangan Kulit, Topi Kulit, Aksesoris Kulit"; $titlemeta = "Ketentuan by. jaketkulitku.com"; $descmeta = ""; } else if ($modul=="contact") { $keywords = "Jaket Kulit Murah, Jaket Garut, Tas Kulit Garut, Sandal Kulit Garut, Sarung Tangan Kulit, Topi Kulit, Aksesoris Kulit"; $titlemeta = "Contact Us by. jaketkulitku.com"; $descmeta = ""; } else { $keywords = "Jaket Kulit Murah, Jaket Garut, Tas Kulit Garut, Sandal Kulit Garut, Sarung Tangan Kulit, Topi Kulit, Aksesoris Kulit"; $titlemeta = "Jaket Kulit Murah Domba Garut, Sarung Tangan Kulit Murah by. jaketkulitku.com"; $descmeta = "Pusat Penjualan & Produsen Jaket Kulit, Tas Kulit, Sarung Tangan Kulit, Sandal Kulit, Topi Kulit. Melayani Custom Order Dgn Model Terbaru, Murah & Bergaransi."; } if (empty($modul) or $modul=="index.php") { include "template/$imnmaulana/index.php"; } else { include "template/$imnmaulana/index.php"; } ?>