<?php /* 
	############################[  <about> ] #######################
		S Name   ::       MMM Primadesain
		Update   ::       2013 © Primadesain.Com
		Author   ::       Agus Susanto S.kom
		Website  ::		  http://primadesain.com
		Contact  ::		  <primapc57@gmail.com> // +62 85228657360
	
	Primadesain melayani pembuatan website MLM dan Investasi
	( dengan sistem binary, trinary atau matrix dan matahari )
	juga menerima pembuatan website Iklan Baris, Website Profile,
	Reseller, Hyip, dll.
	############################[ </about> ] #######################
	*/
if(basename($_SERVER['SCRIPT_FILENAME'])==basename(__FILE__)){echo "<p align=center><br><br><br><br><br><br><font size=\"6\" color=\"#FF0000\">ILLEGAL ACCESS !!";echo "<meta http-equiv=\"refresh\" content=\"2; url=../index.php\">";exit();}$tanggal=date("Y-m-d");$perintah2="SELECT * FROM member where tgl='$tanggal' and sponsor='$user_session'";$jumlahmember2=mysql_query($perintah2) or die(mysql_error());$smuamember2=mysql_num_rows($jumlahmember2);$perintah21="SELECT * FROM member where sponsor='$user_session'";$jumlahmember21=mysql_query($perintah21) or die(mysql_error());$smuamember21=mysql_num_rows($jumlahmember21);$sblxx2=mysql_query("select SUM(jml) from deposit where status='1' and username='$user_session'") or die(mysql_error());while($row=mysql_fetch_row($sblxx2)){$totalex2=$row[0];if($totalex2<=0){$totaldepo="---";}else {$totaldepo=rupiah($totalex2);}}$sblxx3=mysql_query("select SUM(rp) from transfer where status='1' and userid='$user_session'") or die(mysql_error());while($row3=mysql_fetch_row($sblxx3)){$totalex3=$row3[0];if($totalex3<=0||$totalex3==''){$totalwd="---";}else {$totalwd=rupiah($totalex3);}}$sblxx2d=mysql_query("select jml from deposit where status='1' and jml > 99999 and username='$user_session' order by id DESC limit 1") or die(mysql_error());while($rowsd=mysql_fetch_row($sblxx2d)){$totalex2sd=$rowsd[0];}$sblxx2dc=mysql_query("select jml from deposit where status='1' and jml < 100000 and username='$user_session' order by id DESC limit 1") or die(mysql_error());while($rowsdc=mysql_fetch_row($sblxx2dc)){$totalex2sdc=$rowsdc[0];}$sblxx7=mysql_query("select SUM(bayar) from compound where status='1' and username='$user_session'");while($row7=mysql_fetch_row($sblxx7)){$totalex007=$row7[0];if($totalex007<=0||$totalex007==''){$totalex7="---";}else {$totalex7=rupiah($totalex007);}}$sblxx3cc=mysql_query("select SUM(bayar) from komisi where jenis='komshare' and username='$user_session'");while($row3cc=mysql_fetch_row($sblxx3cc)){$totalex3cc=$row3cc[0];if($totalex3cc<=0||$totalex3cc==''){$totalprofits="---";}else {$totalprofits=rupiah($totalex3cc);}}$sblxx3ds=mysql_query("select rp from transfer where status='1' and userid='$user_session' order by id DESC limit 1") or die(mysql_error());while($row3ds=mysql_fetch_row($sblxx3ds)){$totalex3ds=$row3ds[0];}$sblxx03=mysql_query("select username from member where sponsor='$user_session'") or die(mysql_error());while($row03=mysql_fetch_row($sblxx03)){$totalex03=$row03[0];}$perintah5="SELECT * FROM memberonline WHERE usermember='$totalex03'";$jumlahmember5=mysql_query($perintah5) or die(mysql_error());$smuamember5=mysql_num_rows($jumlahmember5);$dt2=$db->dataku("tglaktif",$user_session);$start=strtotime($dt2);$end=strtotime("now");if($dt2=="0000-00-00 00:00:00"){$tg="NON ACTIVE";$days="---";}else{$tg=date('d-m-Y',strtotime($dt2));$days=round(($end-$start)/86400)." days";}$jm=date('H:i',strtotime($dt2));$tt=date('d-m-Y',strtotime($dt2));$sql="SELECT visit FROM visit";$dt=mysql_query($sql);$config=mysql_fetch_array($dt);$visitor=$config['visit'];$perintah5x="SELECT * FROM useronline WHERE file='$user_session'";$jumlahmember5x=mysql_query($perintah5x) or die(mysql_error());$smuamember5x=mysql_num_rows($jumlahmember5x);$perintah7="SELECT * FROM testimonial2 where userid='$user_session'";$jumlahmember7=mysql_query($perintah7) or die(mysql_error());$smuamember7=mysql_num_rows($jumlahmember7);$perintah8="SELECT * FROM testimonial2 where userid='$user_session' and published='1'";$jumlahmember8=mysql_query($perintah8) or die(mysql_error());$smuamember8=mysql_num_rows($jumlahmember8);?>		  		