Minggu, 06 Oktober 2013

PHP Indonesia - Facebook: gan,ada yang bisa bantu? Ane uda buat script count...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
gan,ada yang bisa bantu? Ane uda buat script count...
Oct 6th 2013, 10:31, by Arvin Inti

Arvin Inti 10:31am Oct 6
gan,ada yang bisa bantu?
Ane uda buat script countdown timer (kyk idws,dll),tapi cara mau buat kek khusus donatur tanpa countdown timer gimana ya?
----Berikut adalah script countdown timer-------
<html>
<head>
<title>D dan U Sepuasnya!!</title>
<script type="text/javascript">
var counter = 30;
function countDown()
{
if(counter>=0)
{
document.getElementById("timer").innerHTML = counter;
}
else
{
download();
return;
}
counter -= 1;

var counter2 = setTimeout("countDown()",5000);
return;
}
function download()
{
document.getElementById("link").innerHTML = "<a href='http://*********/***'>Download</a>";
}
</script>
</head>

<body onload="countDown();">
<h1>Download Server ******</h1><br />
<h3>Dapat download dalam <span id="timer"></span> detik.</h3>

<span id="link"></span>

</body>
</html>
--------------------------------
Nah intinya,gimana ya mau buat yang khusus vip/donatur/group tertentu yg jk download tanpa countdown timer? (perlu user?, atau bisa gk ya tanpa user cukup dengan tau IPnya aja?

Aji Saputra 10:37am Oct 6
ijin nyimak gan..

Wahyu Raja Butar-Butar 10:41am Oct 6
klo mnrt sy sih dlm pemikiran sy. buat variable user vip javascript. br d tes query cek user. br isikan var user d js. trs d cek dah. atau ada lbh simple lg?

Arvin Inti 10:43am Oct 6
Sip (y) ..

Rossa Purwaning Tyas 10:44am Oct 6
code php4 bisa di pake di dreamweaver gak ?

Wahyu Raja Butar-Butar 10:49am Oct 6
atau biasa kan login d create cookies/ session. yauda ambil dr situ aja buat d cek

Rossa Purwaning Tyas 10:50am Oct 6
kak wahyu code php4 bisa di pake di dreamweaver gak ?

Arvin Inti 11:13am Oct 6
Kak Wahyu Raja Butar-Butar ,rencananya gw mau buat seperti ini ..:
<?
session_start(); //Disini kita akan memulai session
?>

<html>
<head>
<title>Proses...</title>
</head>

<body>

<?
$lgcu=$_POST[user]; //mengambil username
$lgcp=$_POST[pass]; //mengambil password

$lgcu_anda="demo"; //username yang harus diinput ..liat bagian sini gan
$lgcp_anda="demo123"; //password yang harus diinput...liat bagian sini gan

if(empty($lgcu)) //ini akan tejadi jika username belom diisi
{
echo "Maaf,Username belum di isi<br />";
echo "<a href=\"login.php\">Kembali</a>";
}
elseif(empty($lgcp)) //ini akan terjadi jika password belom diisi
{
echo "Maaf,Password anda kosong<br />";
echo "<a href=\"login.php\">Kembali</a>";
}
else //Jika username dan passwordnya sudah di isi
{
if($lgcu==$lgcu_anda AND $lgcp==$lgcp_anda) //mengecek apakah semuanya benar
{
$_SESSION[user]=$lgcu; //username masuk ke session. ini terpenting gan
echo "Berhasil Login<br />";
echo "<a href=\"logout.php\">Keluar</a>"; //Link untuk keluar/logout
}
else
{
echo "Username atau Password salah!!<br />";
echo "<a href=\"login.php\">Kembali</a>";
}
}
?>

</body>
</html>
----Itu di atas adalah login tanpa mysql (sisanya gk di tulis)...----
,jadi seseorang msk grup/donate akan di kasi id dan pw (sperti di atas,ID:demo,pw:demo123) ..ntar akun tsb pada saat download tak ada countdown timer gituu :D ..kira2 bisa bantu gk ya :( ?

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar