id; return true; } } function sesi(){ global $password_session,$password_satu; session_start(); if ($password_session!=$password_satu) { header("Location:../member.php"); exit(); } } function cekidmember($id) { global $salah; koneksi(); $sql="select * from member where id='$id'"; $res=mysql_query($sql); $jum=mysql_num_rows($res); if ($jum==0) { return true; } else { $salah="

MAAF, USER ID TELAH TERPAKAI

User ID yang anda masukkan telah digunakan member lain
Silahkan tekan BACK untuk mengganti dengan yang lain


"; return false; } } function pesanan() { global $nama,$alamat,$email,$telepon,$lostnumber,$password,$komisi,$harga,$username,$transaksisp,$transaksiown,$id_sesi,$kota,$hp,$no2; config(); koneksi(); $tanggaldaftar=sekarang(); $transaksisp=$komisi; $transaksiown=$harga-$transaksisp; $sql ="INSERT INTO member (no, id, tanggaldaftar,nama, alamat, email, telepon, hp, bank, kota, sponsor, status,lostnumber,pass,traffic,transaksisp,transaksiown) VALUES('', '$username', '$tanggaldaftar','$nama', '$alamat','$email', '$telepon', '$hp', 'SEGERA DI UPDATE !!!', '$kota', '$id_sesi', 'no','$lostnumber','$password','0','$transaksisp','$transaksiown')"; mysql_query($sql); $swl="select * from member where lostnumber='$lostnumber'"; $result=mysql_query($swl); $yes=mysql_fetch_array($result); $no1=100000+$yes[no]; $no2=substr($no1,-3); $transaksisp=$transaksisp+$no2; $transaksiown=$transaksiown+$no2; $stl="update member set transaksisp='$transaksisp',transaksiown='$transaksiown' where lostnumber ='$lostnumber'"; mysql_query($stl); } function caridata($id) { global $data; koneksi(); $sql="select * from member where id= '$id'"; $result=mysql_query($sql); $data=mysql_fetch_array($result); } function caridata1($id) { global $data1; koneksi(); $sql="select * from member where id= '$id'"; $result=mysql_query($sql); $data1=mysql_fetch_array($result); } function caridata2($id) { global $data2; koneksi(); $sql="select * from member where id= '$id'"; $result=mysql_query($sql); $data2=mysql_fetch_array($result); } function rupiah($nilai) { $nilai1=number_format($nilai,0,",","."); $nilai2="Rp ".$nilai1." ,-"; return $nilai2; } function cek() { global $id_sesi,$id; session_start(); if ($id) { tes($id); } else { if (!$id_sesi) { tes($id); } } } function tes($id) { global $wrong; if (!status($id)) { echo"$wrong"; exit(); } } function status($id){ global $defaultsp,$wrong,$id_sesi,$nama_sesi,$email_sesi,$noid_sesi,$kota_sesi,$bank_sesi,$telepon_sesi,$hp_sesi,$emailadmin,$randomizer; koneksi(); if($randomizer==0) { if ($id=="") { $sol="select * from member where no='$defaultsp' and status='yes'"; $res=mysql_query($sol); $has=mysql_fetch_array($res); $id=$has[id]; } } else { if ($id=="") { $sol="select * from member where status='yes'"; $res=mysql_query($sol); $jumlahsemua=mysql_num_rows($res); $randomizer=rand(0,$jumlahsemua-1); mysql_data_seek($res,$randomizer); $has=mysql_fetch_array($res); $id=$has[id]; } } $sql = "select * from member where id='$id'"; $result = mysql_query ($sql); if ($dat=mysql_fetch_array($result)) { if ($dat[status]=='yes') { session_register("id_sesi"); session_register("email_sesi"); session_register("nama_sesi"); session_register("kota_sesi"); session_register("bank_sesi"); session_register("telepon_sesi"); session_register("hp_sesi"); $nama_sesi=$dat[nama]; $email_sesi=$dat[email]; $level_sesi=$dat[level]; $kota_sesi=$dat[kota]; $bank_sesi=$dat[bank]; $telepon_sesi=$dat[telepon]; $hp_sesi=$dat[hp]; $id_sesi=$id; return true; } else { $wrong=" Website anda terblokir...

 

     
 


Maaf ... website anda belum teraktivasi
segera hubungi webmaster ...!

Pengelola
$emailadmin


 
     
"; return false; } } else { $wrong=" URL ini tidak ditemukan...

 

     
 


Maaf...
URL yang anda tuliskan tidak kami temukan pada database
mungkin ada kesalahan penulisan URL
segera hubungi webmaster ...!

Pengelola
$emailadmin


 
     
"; return false; } } function lostnumber() { $the_char = array( "a","A","b","B","c","C","d","D","e","E","f","F","g","G","h","H","i","I","j","J", "k","K","l","L","m","M","n","N","o","O","p","P","q","Q","r","R","s","S","t","T", "u","U","v","V","w","W","x","X","y","Y","z","Z","1","2","3","4","5","6","7","8", "9","0" ); $max_elements = count($the_char) - 1; srand((double)microtime()*1000000); $c1 = $the_char[rand(0,$max_elements)]; $c2 = $the_char[rand(0,$max_elements)]; $c3 = $the_char[rand(0,$max_elements)]; $c4 = $the_char[rand(0,$max_elements)]; $c5 = $the_char[rand(0,$max_elements)]; $c6 = $the_char[rand(0,$max_elements)]; $c7 = $the_char[rand(0,$max_elements)]; $c8 = $the_char[rand(0,$max_elements)]; $c9 = $the_char[rand(0,$max_elements)]; $c10 = $the_char[rand(0,$max_elements)]; $c11 = $the_char[rand(0,$max_elements)]; $c12 = $the_char[rand(0,$max_elements)]; $c13 = $the_char[rand(0,$max_elements)]; $c14 = $the_char[rand(0,$max_elements)]; $c15 = $the_char[rand(0,$max_elements)]; $c16 = $the_char[rand(0,$max_elements)]; $c17 = $the_char[rand(0,$max_elements)]; $c18 = $the_char[rand(0,$max_elements)]; $c19 = $the_char[rand(0,$max_elements)]; $c20 = $the_char[rand(0,$max_elements)]; $c21 = $the_char[rand(0,$max_elements)]; $c22 = $the_char[rand(0,$max_elements)]; $c23 = $the_char[rand(0,$max_elements)]; $c24 = $the_char[rand(0,$max_elements)]; $c25 = $the_char[rand(0,$max_elements)]; $c26 = $the_char[rand(0,$max_elements)]; $c27 = $the_char[rand(0,$max_elements)]; $c28 = $the_char[rand(0,$max_elements)]; $c29 = $the_char[rand(0,$max_elements)]; $c30 = $the_char[rand(0,$max_elements)]; $ranc = "$c1$c2$c3$c4$c5$c6$c7$c8$c9$c10$c11$c12$c13$c14$c15$c16$c17$c18$c19$c20$c21$c22$c23$c24$c25$c26$c27$c28$c29$c30"; return $ranc; } function sekarang() { $bulan=date("m"); $hari=date("d"); $tahun=date("Y"); $date =mktime(0,0,0,$bulan,$hari,$tahun); return $date; } function tanggal($waktu) { $tanggal=strftime("%d-%b-%Y",$waktu); return $tanggal; } function ubahbulanketext($month){ switch ($month){ case "01": $minth="Januari"; break; case "02": $minth="Februari"; break; case "03": $minth="Maret"; break; case "04": $minth="April"; break; case "05": $minth="Mei"; break; case "06": $minth="Juni"; break; case "07": $minth="Juli"; break; case "08": $minth="Agustus"; break; case "09": $minth="September"; break; case "10": $minth="Oktober"; break; case "11": $minth="November"; break; case "12": $minth="Desember"; break; } return $minth; } function hariindo($hariinggris){ switch($hariinggris){ case "Sunday": $hari="Minggu"; break; case "Monday": $hari="Senin"; break; case "Tuesday": $hari="Selasa"; break; case "Wednesday": $hari="Rabu"; break; case "Thursday": $hari="Kamis"; break; case "Friday": $hari="Jum'at"; break; case "Saturday": $hari="Sabtu"; break; } return $hari; } function tambahwaktu ($satuanwaktu,$tambahanwaktu) { global $akandatang,$tanggalditambah,$next; $bulan1=date("m"); $hari1=date("d"); $tahun1=date("Y"); $date =mktime(0,0,0,$bulan1,$hari1,$tahun1); $date_time_array = getdate($date); $month = $date_time_array["mon"]; $day = $date_time_array["mday"]; $year = $date_time_array["year"]; switch ($satuanwaktu) { case "yyyy": $year +=$tambahanwaktu; break; case "q": $year +=($tambahanwaktu*3); break; case "m": $month +=$tambahanwaktu; break; case "y": $day+=$tambahanwaktu; break; case "d": $day+=$tambahanwaktu; break; case "w": $day+=$tambahanwaktu; break; case "ww": $day+=($tambahanwaktu*7); break; case "h": $hours+=$tambahanwaktu; break; case "n": $minutes+=$tambahanwaktu; break; case "s": $seconds+=$tambahanwaktu; break; } $next=mktime(0 ,0, 0,$month ,$day, $year); $hari2=strftime( "%d",$next); $harin2=strftime( "%A",$next); $bulan2=strftime( "%m",$next); $tahun2=strftime( "%Y",$next); if (($tahun2*1) < 1900) { $tahun2=$tahun2+1900; } $monn2=ubahbulanketext($bulan2); $dayn2=hariindo($harin2); $tanggalditambah=strftime("%Y-%m-%d",$next); $akandatang=$dayn2.", ".$hari2." ".$monn2." ".$tahun2; } function waktuenak($next1) { $hari1=strftime( "%d",$next1); $harin1=strftime( "%A",$next1); $bulan1=strftime( "%m",$next1); $tahun1=strftime( "%Y",$next1); $monn1=ubahbulanketext($bulan1); //$dayn1=hariindo($harin1); $akandatang1=$hari1." ".$monn1." ".$tahun1; return $akandatang1; } function statistik() { global $set,$id_ses,$total,$harga; koneksi(); if (empty($set)) { $set=0; } $sql= "select * from member where sponsor='$id_ses' and status='yes'"; $result = mysql_query ($sql); $total= mysql_num_rows($result); $sql1 = "select * from member where sponsor='$id_ses' and status='yes' order by tanggaldaftar desc limit $set,10"; $result1 = mysql_query ($sql1); if($total==0) { echo"
"; } else { echo""; $j=1; $color="#C6C6FF"; while ( $yap = mysql_fetch_array($result1)){ if ($color=='#C6C6FF') { $color="white"; } else { $color="#C6C6FF"; } echo ""; $j++; } echo "
No
Nama
Email
Transfer
BLOKIR
$j
$yap[nama]
$yap[email]
".rupiah($yap[transaksisp])."
BLOKIR

"; } $limitmember=10; halaman($total,$set,$limitmember); } function aktivasi() { global $set,$id_ses,$total; koneksi(); if (empty($set)) { $set=0; } $sql= "select * from member where sponsor='$id_ses' and status='no'"; $result = mysql_query ($sql); $total= mysql_num_rows($result); $sql1 = "select * from member where sponsor='$id_ses' and status='no' order by tanggaldaftar desc limit $set,10"; $result1 = mysql_query ($sql1); if($total==0) { echo"
"; } else { echo""; $j=1; $color="#C6C6FF"; while ( $yap = mysql_fetch_array($result1)){ if ($color=='#C6C6FF') { $color="white"; } else { $color="#C6C6FF"; } echo ""; $j++; } echo "
No
Nama
Email
HP
Transfer
Kota
$j
$yap[nama]
$yap[email]
$yap[hp]
".rupiah($yap[transaksisp])."
$yap[kota]

"; } $limitmember=10; halaman($total,$set,$limitmember); } function halaman($numrows,$set,$limit) { if ($set!=0) { $prevoffset=$set-$limit; print "Prev   \n"; } $pages=intval($numrows/$limit); if ($numrows%$limit) { $pages++; } for ($i=1;$i<=$pages;$i++) { $newoffset=$limit*($i-1); print "$i \n"; } if ((($set/$limit)<$pages-1)) { $newoffset=$set+$limit; print "Next

\n"; } } function setting() { global $sett; koneksi(); $sql="select * from setting where id= '1'"; $result=mysql_query($sql); $sett=mysql_fetch_array($result); } function halamanmember($numrows,$set,$limit,$urut) { global $urut; if ($set!=0) { $prevoffset=$set-$limit; print "Prev   \n"; } $pages=intval($numrows/$limit); if ($numrows%$limit) { $pages++; } for ($i=1;$i<=$pages;$i++) { $newoffset=$limit*($i-1); print "$i \n"; } if ((($set/$limit)<$pages-1)) { $newoffset=$set+$limit; print "Next

\n"; } } ?>