Monday, March 23, 2009
Script Memberlist Dot PHP
<?
Header("content-type: application/x-javascript");
include"koneksi.inc.php";
session_start();
$sql=mysql_query("SELECT * FROM user order by nama ASC");
$juml=mysql_num_rows($sql);
echo"document.write(\"<table width='100%' style='font-family:verdana;font-size:10px'>\");";
echo"document.write(\"<tr><td>Total Members : $juml</td></tr>\");";
while($hsl=mysql_fetch_array($sql))
{
echo"document.write(\"<tr><td><a href='$hsl[url]' target='_blank' style='text-decoration:none'>$hsl[nama]</a></td></tr>\");";
}
echo"document.write(\"</table>\");";
?>
Header("content-type: application/x-javascript");
include"koneksi.inc.php";
session_start();
$sql=mysql_query("SELECT * FROM user order by nama ASC");
$juml=mysql_num_rows($sql);
echo"document.write(\"<table width='100%' style='font-family:verdana;font-size:10px'>\");";
echo"document.write(\"<tr><td>Total Members : $juml</td></tr>\");";
while($hsl=mysql_fetch_array($sql))
{
echo"document.write(\"<tr><td><a href='$hsl[url]' target='_blank' style='text-decoration:none'>$hsl[nama]</a></td></tr>\");";
}
echo"document.write(\"</table>\");";
?>
Thursday, March 19, 2009
Script Forgotpass Dot PHP
<?
include"koneksi.inc.php";
session_start();
function makeRandomcaptcha() {
$salt ="abch123efgABCDEFhjkm4LMNP567npqGHIJKrstuvwxyz89";
srand((double)microtime()*1000000);
$i = 0;
while ($i <= 5) {
$num = rand() % 33;
$tmp = substr($salt, $num, 1);
$pass = $pass . $tmp;
$i++;
}
return $pass;
}
$captcha_word = makeRandomcaptcha();
if($_GET[tampil]=="1")
{
$im = imagecreate(100, 30);
$hitam = imagecolorallocate( $im,255,255,255);
$putih = imagecolorallocate( $im,0,0,0);
$ukuran_font = 5;
imageline($im, 0, 15, 99, 15, $putih);
$pos_x = (imageSX($im) - strlen($_GET[cod]) * imagefontwidth($ukuran_font))/2;
$pos_y =(imageSY($im) - imagefontheight($ukuran_font))/2;
imagestring($im, $ukuran_font, $pos_x, $pos_y, $_GET[cod], $putih);
header("Content-Type: image/jpeg");
imageJPEG($im);
imagedestroy($im);
}
echo"<fieldset style=\"padding:4px;border:1px solid #bbbbbb;width:500px;font-family:verdana;font-size:11px\">";
echo"<legend align=right><b><i>LUPA PASSWORD</i></b></legend>";
echo"<div><form method=\"POST\" action=\"forgotpass.php\">";
echo"<input type=\"hidden\" name=\"words\" value=\"$captcha_word\">";
echo"<div>Masukkan NAMA ID Anda</div>";
echo"<div><input type=\"text\" name=\"namaid\"></div>";
echo"<div><img src=forgotpass.php?tampil=1&cod=$captcha_word></div>";
echo"<div>Masukkan Kode Unik ini</div>";
echo"<div><input type=\"text\" name=\"word\"></div>";
echo"<div><input type=\"submit\" name=\"submit\" value=\"submit\"> [ <a href=\"http://abgamal.blogspot.com\">back to BLOGPROJECT</a> ]</div>";
echo"</form></fieldset>";
if($_POST[submit])
{
$sql=mysql_query("SELECT * FROM user WHERE nama='$_POST[namaid]'");
$ada=mysql_num_rows($sql);
$hsl=mysql_fetch_array($sql);
if($_POST[namaid]=="")
{
echo"<script>alert('Nama ID anda belum diisi');</script>";
}
elseif($ada=="0")
{
echo"<script>alert('Nama ID anda belum terdaftar');</script>";
}
elseif($_POST[word]=="" || $_POST[word]!="$_POST[words]")
{
echo"<script>alert('Kode Unik belum diisi atau salah');</script>";
}
else
{
function password() {
$salt ="abch123efgABCDEFhJKrstuvwxyz89jkm4LMNP567npqGHI";
srand((double)microtime()*1000000);
$i = 0;
while ($i <= 5) {
$num = rand() % 33;
$tmp = substr($salt, $num, 1);
$pass = $pass . $tmp;
$i++;
}
return $pass;
}
$katakunci = password();
$katakuncix=md5($katakunci);
mysql_query("UPDATE user SET password='$katakuncix' WHERE nama='$_POST[namaid]'");
$welcome .="Dear $_POST[namaid]".","."\n";
$welcome .="Password Anda Telah Berubah"."\n\n";
$welcome .="LOGIN ID ANDA".":"."$_POST[namaid]"."\n";
$welcome .="PASSWORD ANDA".":"."$katakunci"."\n\n";
$welcome .="# author:BLOGPROJECT ABDGAMAL\n".
"# email: abdgamal16@gmail.com\n".
"# url :http://abgamal.blogspot.com";
$kirim= mail("$hsl[email]","PERUBAHAN PASSWORD","$welcome\n\n", "FROM:\"BLOGPROJECT ABDGAMAL\"<abdgamal16@gmail.com>\n"."X-IP-Address: $_SERVER[REMOTE_ADDR]\n"."X-Referer: $_SERVER[HTTP_REFERER]\n");
if($kirim)
{
?>
<script>alert("Password Anda telah kami kirim via Email Silahkan di Cek");
window.location="http://abgamal.blogspot.com";
</script>
<?
}
}
}
?>
INI BAGIAN YANG TIDAK TERMASUK YANG DI COPY
Ket : Ganti bagian yang berwarna merah sesuai dengan identitas anda masing-masing
include"koneksi.inc.php";
session_start();
function makeRandomcaptcha() {
$salt ="abch123efgABCDEFhjkm4LMNP567npqGHIJKrstuvwxyz89";
srand((double)microtime()*1000000);
$i = 0;
while ($i <= 5) {
$num = rand() % 33;
$tmp = substr($salt, $num, 1);
$pass = $pass . $tmp;
$i++;
}
return $pass;
}
$captcha_word = makeRandomcaptcha();
if($_GET[tampil]=="1")
{
$im = imagecreate(100, 30);
$hitam = imagecolorallocate( $im,255,255,255);
$putih = imagecolorallocate( $im,0,0,0);
$ukuran_font = 5;
imageline($im, 0, 15, 99, 15, $putih);
$pos_x = (imageSX($im) - strlen($_GET[cod]) * imagefontwidth($ukuran_font))/2;
$pos_y =(imageSY($im) - imagefontheight($ukuran_font))/2;
imagestring($im, $ukuran_font, $pos_x, $pos_y, $_GET[cod], $putih);
header("Content-Type: image/jpeg");
imageJPEG($im);
imagedestroy($im);
}
echo"<fieldset style=\"padding:4px;border:1px solid #bbbbbb;width:500px;font-family:verdana;font-size:11px\">";
echo"<legend align=right><b><i>LUPA PASSWORD</i></b></legend>";
echo"<div><form method=\"POST\" action=\"forgotpass.php\">";
echo"<input type=\"hidden\" name=\"words\" value=\"$captcha_word\">";
echo"<div>Masukkan NAMA ID Anda</div>";
echo"<div><input type=\"text\" name=\"namaid\"></div>";
echo"<div><img src=forgotpass.php?tampil=1&cod=$captcha_word></div>";
echo"<div>Masukkan Kode Unik ini</div>";
echo"<div><input type=\"text\" name=\"word\"></div>";
echo"<div><input type=\"submit\" name=\"submit\" value=\"submit\"> [ <a href=\"http://abgamal.blogspot.com\">back to BLOGPROJECT</a> ]</div>";
echo"</form></fieldset>";
if($_POST[submit])
{
$sql=mysql_query("SELECT * FROM user WHERE nama='$_POST[namaid]'");
$ada=mysql_num_rows($sql);
$hsl=mysql_fetch_array($sql);
if($_POST[namaid]=="")
{
echo"<script>alert('Nama ID anda belum diisi');</script>";
}
elseif($ada=="0")
{
echo"<script>alert('Nama ID anda belum terdaftar');</script>";
}
elseif($_POST[word]=="" || $_POST[word]!="$_POST[words]")
{
echo"<script>alert('Kode Unik belum diisi atau salah');</script>";
}
else
{
function password() {
$salt ="abch123efgABCDEFhJKrstuvwxyz89jkm4LMNP567npqGHI";
srand((double)microtime()*1000000);
$i = 0;
while ($i <= 5) {
$num = rand() % 33;
$tmp = substr($salt, $num, 1);
$pass = $pass . $tmp;
$i++;
}
return $pass;
}
$katakunci = password();
$katakuncix=md5($katakunci);
mysql_query("UPDATE user SET password='$katakuncix' WHERE nama='$_POST[namaid]'");
$welcome .="Dear $_POST[namaid]".","."\n";
$welcome .="Password Anda Telah Berubah"."\n\n";
$welcome .="LOGIN ID ANDA".":"."$_POST[namaid]"."\n";
$welcome .="PASSWORD ANDA".":"."$katakunci"."\n\n";
$welcome .="# author:BLOGPROJECT ABDGAMAL\n".
"# email: abdgamal16@gmail.com\n".
"# url :http://abgamal.blogspot.com";
$kirim= mail("$hsl[email]","PERUBAHAN PASSWORD","$welcome\n\n", "FROM:\"BLOGPROJECT ABDGAMAL\"<abdgamal16@gmail.com>\n"."X-IP-Address: $_SERVER[REMOTE_ADDR]\n"."X-Referer: $_SERVER[HTTP_REFERER]\n");
if($kirim)
{
?>
<script>alert("Password Anda telah kami kirim via Email Silahkan di Cek");
window.location="http://abgamal.blogspot.com";
</script>
<?
}
}
}
?>
INI BAGIAN YANG TIDAK TERMASUK YANG DI COPY
Ket : Ganti bagian yang berwarna merah sesuai dengan identitas anda masing-masing
Friday, March 13, 2009
Script Signup Dot PHP
<?
session_start();
function makeRandomcaptcha() {
$salt ="abch123efgABCDEFhjkm4LMNP567npqGHIJKrstuvwxyz89";
srand((double)microtime()*1000000);
$i = 0;
while ($i <= 5) {
$num = rand() % 33;
$tmp = substr($salt, $num, 1);
$pass = $pass . $tmp;
$i++;
}
return $pass;
}
$captcha_word = makeRandomcaptcha();
if($_GET[tampil]=="1")
{
$im = imagecreate(100, 30);
$hitam = imagecolorallocate( $im,255,255,255);
$putih = imagecolorallocate( $im,0,0,0);
$ukuran_font = 5;
imageline($im, 0, 15, 99, 15, $putih);
$pos_x = (imageSX($im) - strlen($_GET[cod]) * imagefontwidth($ukuran_font))/2;
$pos_y =(imageSY($im) - imagefontheight($ukuran_font))/2;
imagestring($im, $ukuran_font, $pos_x, $pos_y, $_GET[cod], $putih);
header("Content-Type: image/jpeg");
imageJPEG($im);
imagedestroy($im);
}
include"koneksi.inc.php";
?>
<fieldset style="padding:4px;border:1px solid #bbbbbb;width:500px;font-family:verdana;font-size:11px">
<legend align=right><b><i>SILAHKAN DAFTAR</i></b></legend>
<table border=0 width=500px cellpadding=4 cellspacing=4 style="font-family:verdana;font-size:10px">
<form method=post action="daftar.php">
<tr>
<td><b>NAMA ID</b></td>
<td><input type=text name=nama_id size=30 maxlength="8" value="<? echo"$_POST[nama_id]"; ?>"></td>
</tr>
<tr>
<td><b>NAMA ANDA</b></td>
<td><input type=text name=nama_dpn size=30 maxlength="50" value="<? echo"$_POST[nama_dpn]"; ?>"></td>
</tr>
<tr>
<td><b>EMAIL</b></td>
<td><input type=text name=email size=50 maxlength="30" value="<? echo"$_POST[email]"; ?>"> <br> ( mis : abdgamal16@gmail.com )</td>
</tr>
<tr>
<td><b>URL</b></td>
<td><input type=text name=url size=50 maxlength="40" value="<? echo"$_POST[url]"; ?>"> <br> ( mis : http://abgamal.blogspot.com )</td>
</tr>
<tr>
<td><b>PASSWORD</b></td>
<td><input type=password name=password size=30 maxlength="8"></td>
</tr>
<tr>
<td><b>CONFIRM PASSWORD</b></td>
<td><input type=password name=passwordc size=30 maxlength="8"></td>
</tr>
<tr><td colspan=2><b>MASUKKAN KODE</b> </td></tr>
<tr><td colspan=2>
<? echo"<img src=daftar.php?tampil=1&cod=$captcha_word>"; ?>
</td>
</tr>
<tr><td colspan=2><input type=text name=word id="word"></td></tr>
<input type=hidden name=words id="words" value="<? echo"$captcha_word"; ?>"></td></tr>
<tr>
<td colspan=2 align=right>[ <a href="http://abgamal.blogspot.com">Kembali</a> ] <input type=submit name=subdaf value='Daftar'> <input type=reset value='Reset'></td>
</tr>
</form>
</table>
</fieldset>
<?
if($_POST[subdaf])
{
$nama_id=str_replace(" ","_",$_POST[nama_id]);
$urlstr=substr("$_POST[url]",0,7);
$check_anggota=mysql_query("SELECT nama FROM user WHERE nama='$nama_id'");
$col_anggota=mysql_fetch_array($check_anggota);
if(empty($nama_id))
{
?>
<script>
alert("~~~ Warning!! ~~~ \n\n NAMA ID TIDAK BOLEH KOSONG")
</script>
<?
}
elseif(!empty($col_anggota[nama]))
{
?>
<script>
alert("~~~ Warning!! ~~~ \n\n NAMA ID YANG ANDA GUNAKAN SUDAH EXIST \n SILAHKAN COBA YANG LAIN")
</script>
<?
}
elseif(empty($_POST[nama_dpn]))
{
?>
<script>
alert("~~~ Warning!! ~~~ \n\n NAMA ANDA TIDAK BOLEH KOSONG")
</script>
<?
}
elseif(empty($_POST[email]))
{
?>
<script>
alert("~~~ Warning!! ~~~ \n\n EMAIL TIDAK BOLEH KOSONG")
</script>
<?
}
elseif(!ereg("^.+\..+$",$_POST[email]))
{
?>
<script>
alert("~~~ Warning!! ~~~ \n\n INVALID PENULISAN EMAIL")
</script>
<?
}
elseif(empty($_POST[url]))
{
echo"<script>alert('url tidak boleh kosong')</script>";
}
elseif($urlstr!="http://")
{
echo"<script>alert('salah penulisan url')</script>";
}
elseif(empty($_POST[password]))
{
?>
<script>
alert("~~~ Warning!! ~~~ \n\n PASSWORD TIDAK BOLEH KOSONG")
</script>
<?
}
elseif($_POST[password]!="$_POST[passwordc]")
{
?>
<script>
alert("~~~ Warning!! ~~~ \n\n PASSWORD TIDAK MATCH")
</script>
<?
}
elseif($_POST[word]!=$_POST[words])
{
echo"<script>alert('kode salah')</script>";
}
else
{
$now=time();
$passwordc=md5($_POST[password]);
$register=mysql_query("INSERT INTO user (NAMA,PASSWORD,LEVEL,REALNAME,EMAIL,URL,WAKTU) VALUES('$_POST[nama_id]','$passwordc','2','$_POST[nama_dpn]','$_POST[email]','$_POST[url]','$now')");
if($register)
{
$welcome .="Dear $_POST[nama_dpn]".","."\n";
$welcome .="Welcome, Salam Kenal dengan Anda dan Selamat bergabung dengan kami"."\n\n";
$welcome .="LOGIN ID ANDA".":"."$_POST[nama_id]"."\n";
$welcome .="PASSWORD ANDA".":"."$_POST[password]"."\n\n";
$welcome .="# author:BLOGPROJECT ABDGAMAL\n".
"# email: abdgamal16@gmail.com\n".
"# url :http://abgamal.blogspot.com";
$kirim= mail("$_POST[email]","KEANGGOTAAN ANDA","$welcome\n\n", "FROM:\"BlogProject AbdGamal\"<abdgamal16@gmail.com>\n"."X-IP-Address: $_SERVER[REMOTE_ADDR]\n"."X-Referer: $_SERVER[HTTP_REFERER]\n");
}
?>
<script>alert("Thanks, Anda Sudah Menjadi Member Kami \n ID dan PASSWORD sudah kami kirim ke EMAIL Anda \n Silahkan di Cek");
window.location="http://abgamal.blogspot.com";
</script>
<?
}
}
?>
Bagian yang tidak termasuk untuk di copy
Keterangan
Ganti Text berwarna Merah dengan alamat anda di Blogspot
Yang Berwarna Biru, ganti sesuai dengan title, email dan url anda, sebagai informasi, bagian yang berwarna biru akan dikirim langsung ke Email pendaftar, jika registrasinya berhasil dieksekusi
session_start();
function makeRandomcaptcha() {
$salt ="abch123efgABCDEFhjkm4LMNP567npqGHIJKrstuvwxyz89";
srand((double)microtime()*1000000);
$i = 0;
while ($i <= 5) {
$num = rand() % 33;
$tmp = substr($salt, $num, 1);
$pass = $pass . $tmp;
$i++;
}
return $pass;
}
$captcha_word = makeRandomcaptcha();
if($_GET[tampil]=="1")
{
$im = imagecreate(100, 30);
$hitam = imagecolorallocate( $im,255,255,255);
$putih = imagecolorallocate( $im,0,0,0);
$ukuran_font = 5;
imageline($im, 0, 15, 99, 15, $putih);
$pos_x = (imageSX($im) - strlen($_GET[cod]) * imagefontwidth($ukuran_font))/2;
$pos_y =(imageSY($im) - imagefontheight($ukuran_font))/2;
imagestring($im, $ukuran_font, $pos_x, $pos_y, $_GET[cod], $putih);
header("Content-Type: image/jpeg");
imageJPEG($im);
imagedestroy($im);
}
include"koneksi.inc.php";
?>
<fieldset style="padding:4px;border:1px solid #bbbbbb;width:500px;font-family:verdana;font-size:11px">
<legend align=right><b><i>SILAHKAN DAFTAR</i></b></legend>
<table border=0 width=500px cellpadding=4 cellspacing=4 style="font-family:verdana;font-size:10px">
<form method=post action="daftar.php">
<tr>
<td><b>NAMA ID</b></td>
<td><input type=text name=nama_id size=30 maxlength="8" value="<? echo"$_POST[nama_id]"; ?>"></td>
</tr>
<tr>
<td><b>NAMA ANDA</b></td>
<td><input type=text name=nama_dpn size=30 maxlength="50" value="<? echo"$_POST[nama_dpn]"; ?>"></td>
</tr>
<tr>
<td><b>EMAIL</b></td>
<td><input type=text name=email size=50 maxlength="30" value="<? echo"$_POST[email]"; ?>"> <br> ( mis : abdgamal16@gmail.com )</td>
</tr>
<tr>
<td><b>URL</b></td>
<td><input type=text name=url size=50 maxlength="40" value="<? echo"$_POST[url]"; ?>"> <br> ( mis : http://abgamal.blogspot.com )</td>
</tr>
<tr>
<td><b>PASSWORD</b></td>
<td><input type=password name=password size=30 maxlength="8"></td>
</tr>
<tr>
<td><b>CONFIRM PASSWORD</b></td>
<td><input type=password name=passwordc size=30 maxlength="8"></td>
</tr>
<tr><td colspan=2><b>MASUKKAN KODE</b> </td></tr>
<tr><td colspan=2>
<? echo"<img src=daftar.php?tampil=1&cod=$captcha_word>"; ?>
</td>
</tr>
<tr><td colspan=2><input type=text name=word id="word"></td></tr>
<input type=hidden name=words id="words" value="<? echo"$captcha_word"; ?>"></td></tr>
<tr>
<td colspan=2 align=right>[ <a href="http://abgamal.blogspot.com">Kembali</a> ] <input type=submit name=subdaf value='Daftar'> <input type=reset value='Reset'></td>
</tr>
</form>
</table>
</fieldset>
<?
if($_POST[subdaf])
{
$nama_id=str_replace(" ","_",$_POST[nama_id]);
$urlstr=substr("$_POST[url]",0,7);
$check_anggota=mysql_query("SELECT nama FROM user WHERE nama='$nama_id'");
$col_anggota=mysql_fetch_array($check_anggota);
if(empty($nama_id))
{
?>
<script>
alert("~~~ Warning!! ~~~ \n\n NAMA ID TIDAK BOLEH KOSONG")
</script>
<?
}
elseif(!empty($col_anggota[nama]))
{
?>
<script>
alert("~~~ Warning!! ~~~ \n\n NAMA ID YANG ANDA GUNAKAN SUDAH EXIST \n SILAHKAN COBA YANG LAIN")
</script>
<?
}
elseif(empty($_POST[nama_dpn]))
{
?>
<script>
alert("~~~ Warning!! ~~~ \n\n NAMA ANDA TIDAK BOLEH KOSONG")
</script>
<?
}
elseif(empty($_POST[email]))
{
?>
<script>
alert("~~~ Warning!! ~~~ \n\n EMAIL TIDAK BOLEH KOSONG")
</script>
<?
}
elseif(!ereg("^.+\..+$",$_POST[email]))
{
?>
<script>
alert("~~~ Warning!! ~~~ \n\n INVALID PENULISAN EMAIL")
</script>
<?
}
elseif(empty($_POST[url]))
{
echo"<script>alert('url tidak boleh kosong')</script>";
}
elseif($urlstr!="http://")
{
echo"<script>alert('salah penulisan url')</script>";
}
elseif(empty($_POST[password]))
{
?>
<script>
alert("~~~ Warning!! ~~~ \n\n PASSWORD TIDAK BOLEH KOSONG")
</script>
<?
}
elseif($_POST[password]!="$_POST[passwordc]")
{
?>
<script>
alert("~~~ Warning!! ~~~ \n\n PASSWORD TIDAK MATCH")
</script>
<?
}
elseif($_POST[word]!=$_POST[words])
{
echo"<script>alert('kode salah')</script>";
}
else
{
$now=time();
$passwordc=md5($_POST[password]);
$register=mysql_query("INSERT INTO user (NAMA,PASSWORD,LEVEL,REALNAME,EMAIL,URL,WAKTU) VALUES('$_POST[nama_id]','$passwordc','2','$_POST[nama_dpn]','$_POST[email]','$_POST[url]','$now')");
if($register)
{
$welcome .="Dear $_POST[nama_dpn]".","."\n";
$welcome .="Welcome, Salam Kenal dengan Anda dan Selamat bergabung dengan kami"."\n\n";
$welcome .="LOGIN ID ANDA".":"."$_POST[nama_id]"."\n";
$welcome .="PASSWORD ANDA".":"."$_POST[password]"."\n\n";
$welcome .="# author:BLOGPROJECT ABDGAMAL\n".
"# email: abdgamal16@gmail.com\n".
"# url :http://abgamal.blogspot.com";
$kirim= mail("$_POST[email]","KEANGGOTAAN ANDA","$welcome\n\n", "FROM:\"BlogProject AbdGamal\"<abdgamal16@gmail.com>\n"."X-IP-Address: $_SERVER[REMOTE_ADDR]\n"."X-Referer: $_SERVER[HTTP_REFERER]\n");
}
?>
<script>alert("Thanks, Anda Sudah Menjadi Member Kami \n ID dan PASSWORD sudah kami kirim ke EMAIL Anda \n Silahkan di Cek");
window.location="http://abgamal.blogspot.com";
</script>
<?
}
}
?>
Bagian yang tidak termasuk untuk di copy
Keterangan
Ganti Text berwarna Merah dengan alamat anda di Blogspot
Yang Berwarna Biru, ganti sesuai dengan title, email dan url anda, sebagai informasi, bagian yang berwarna biru akan dikirim langsung ke Email pendaftar, jika registrasinya berhasil dieksekusi
Friday, March 6, 2009
Insert Admin
Keterangan Gambar
ID : kosongkan saja
Nama : isi terserah anda (atau isi aja dengan kata "admin" )
Password : karena password di encript, anda harus encript dulu password anda di sini [encript password]. Hasil kode encript anda isikan di kolom password
Level : isi dengan angka 1
Real Name : isi dengan Nama Anda
Email : Isi dengan email anda
URL : isi dengan URL anda mis http://abgamal.blogspot.com
Waktu : isi dengan angka ini 1236148440
Seperti contoh gambar dibawah ini
Table User Mysql Terbentuk
kemudian kembali ke Main phpMyadmin dengan meng klik link database disisi kiri seperti contoh gambar
setelah klik akan muncul gambar Main phpMyadmin seperti ini
Table User Mysql
CREATE TABLE `user` (
`id` int(10) NOT NULL auto_increment,
`nama` varchar(20) collate latin1_general_ci NOT NULL,
`password` varchar(100) collate latin1_general_ci NOT NULL,
`level` int(3) NOT NULL,
`realname` varchar(50) collate latin1_general_ci NOT NULL,
`email` varchar(100) collate latin1_general_ci NOT NULL,
`url` varchar(100) collate latin1_general_ci NOT NULL,
`waktu` int(20) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=6 ;
`id` int(10) NOT NULL auto_increment,
`nama` varchar(20) collate latin1_general_ci NOT NULL,
`password` varchar(100) collate latin1_general_ci NOT NULL,
`level` int(3) NOT NULL,
`realname` varchar(50) collate latin1_general_ci NOT NULL,
`email` varchar(100) collate latin1_general_ci NOT NULL,
`url` varchar(100) collate latin1_general_ci NOT NULL,
`waktu` int(20) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=6 ;
Script Logout Dot PHP
<?
session_start();
session_destroy();
header("location:http://ueuodotcom.blogspot.com");
?>
Tidak termasuk yang di copy
Ganti Teks yang berwarna merah dengan alamat anda di blogspot
session_start();
session_destroy();
header("location:http://ueuodotcom.blogspot.com");
?>
Tidak termasuk yang di copy
Ganti Teks yang berwarna merah dengan alamat anda di blogspot
Script Kirim Dot PHP
<html>
<body>
<?
include"koneksi.inc.php";
session_start();
$passwordc=md5($_POST[password]);
$query="SELECT * FROM user WHERE nama='$_POST[namaid]' AND password='$passwordc'";
$hasil=@mysql_query($query);
$row=@mysql_fetch_array($hasil);
if(!empty($row[nama]) && !empty($row[password]))
{
session_register("namauser");
$_SESSION[namauser]="$row[nama]";
?>
<script>
window.location='http://ueuodotcom.blogspot.com';
</script>
<?
}
else
{
?>
<script>
alert("~~~ Warning!! ~~~ \n\n invalid NAMA_ID dan PASSWORD")
window.location ="http://ueuodotcom.blogspot.com";
</script>
<?
}
?>
</body>
</html>
Tidak Termasuk yang di copy
Catatan : Ganti text yang berwarna merah dengan alamat anda di blogspot.com
<body>
<?
include"koneksi.inc.php";
session_start();
$passwordc=md5($_POST[password]);
$query="SELECT * FROM user WHERE nama='$_POST[namaid]' AND password='$passwordc'";
$hasil=@mysql_query($query);
$row=@mysql_fetch_array($hasil);
if(!empty($row[nama]) && !empty($row[password]))
{
session_register("namauser");
$_SESSION[namauser]="$row[nama]";
?>
<script>
window.location='http://ueuodotcom.blogspot.com';
</script>
<?
}
else
{
?>
<script>
alert("~~~ Warning!! ~~~ \n\n invalid NAMA_ID dan PASSWORD")
window.location ="http://ueuodotcom.blogspot.com";
</script>
<?
}
?>
</body>
</html>
Tidak Termasuk yang di copy
Catatan : Ganti text yang berwarna merah dengan alamat anda di blogspot.com
Script Login Dot PHP
<?
Header("content-type: application/x-javascript");
include"koneksi.inc.php";
session_start();
$form="<form method='POST' action='http://blogproject.ueuo.com/kirim.php'>";
$form .="<table>";
$form .="<tr><td colspan=2><input type='text' name='namaid' value='login'></td></tr>";
$form .="<tr><td colspan=2><input type='password' name='password' value='******'></td></tr>";
$form .="<tr><td><input type='submit' name='submit' value='sign in'></td><td><a href='http://blogproject.ueuo.com/daftar.php'>Sign Up</a></td></tr>";
$form .="</table>";
$form .="</form>";
if($_SESSION[namauser]=="")
{
echo "document.write(\"$form\")";
}
else
{
$login="<table><tr>";
$login .="<td>$_SESSION[namauser]</td>";
$login .="<td><a href=\"http://blogproject.ueuo.com/logout.php\">[LOGOUT]</a></td></tr></table>";
echo "document.write('$login')";
}
?>
Tidak termasuk yang di copy
Catatan : Ganti bagian yang berwarna merah dengan alamat hosting anda sendiri
Header("content-type: application/x-javascript");
include"koneksi.inc.php";
session_start();
$form="<form method='POST' action='http://blogproject.ueuo.com/kirim.php'>";
$form .="<table>";
$form .="<tr><td colspan=2><input type='text' name='namaid' value='login'></td></tr>";
$form .="<tr><td colspan=2><input type='password' name='password' value='******'></td></tr>";
$form .="<tr><td><input type='submit' name='submit' value='sign in'></td><td><a href='http://blogproject.ueuo.com/daftar.php'>Sign Up</a></td></tr>";
$form .="</table>";
$form .="</form>";
if($_SESSION[namauser]=="")
{
echo "document.write(\"$form\")";
}
else
{
$login="<table><tr>";
$login .="<td>$_SESSION[namauser]</td>";
$login .="<td><a href=\"http://blogproject.ueuo.com/logout.php\">[LOGOUT]</a></td></tr></table>";
echo "document.write('$login')";
}
?>
Tidak termasuk yang di copy
Catatan : Ganti bagian yang berwarna merah dengan alamat hosting anda sendiri
Monday, March 2, 2009
Edit script Bloglist
Cari script seperti ini untuk mengubah background halaman
<body bgcolor="#ffffff" leftmargin="0">
<table style="position:absolute;top:0;left:0px;z-index:100" width="1000px" height="270px" bgcolor="#ffffff"><tr><td> </td></tr></table>
Ganti bagian yang berwarna merah, #ffffff itu menunjukkan background warna putih, silahkan gunakan kode warna sendiri atau jika bingung, ganti saja dengan nama warna dalam bahasa inggris misalnya "blue", "green", "yellow" dst.
Cari script seperti ini untuk mengubah ukuran lebar (width) dan tinggi (height) view bloglist
<div style="position:absolute; overflow:auto;top:5;left:0px;z-index:101;font-size:11px;width:220px;height:400px;padding:3px;font-family:verdana">
Ganti bagian yang berwarna hijau dengan ukuran yang sesuai selera anda
<body bgcolor="#ffffff" leftmargin="0">
<table style="position:absolute;top:0;left:0px;z-index:100" width="1000px" height="270px" bgcolor="#ffffff"><tr><td> </td></tr></table>
Ganti bagian yang berwarna merah, #ffffff itu menunjukkan background warna putih, silahkan gunakan kode warna sendiri atau jika bingung, ganti saja dengan nama warna dalam bahasa inggris misalnya "blue", "green", "yellow" dst.
Cari script seperti ini untuk mengubah ukuran lebar (width) dan tinggi (height) view bloglist
<div style="position:absolute; overflow:auto;top:5;left:0px;z-index:101;font-size:11px;width:220px;height:400px;padding:3px;font-family:verdana">
Ganti bagian yang berwarna hijau dengan ukuran yang sesuai selera anda
View Bloglist dot PHP
Bagian Awal yang harus anda Copy
<html>
<? include"koneksi.inc.php";
$sqlj=mysql_query("SELECT * FROM bloglist");
$jum=mysql_num_rows($sqlj);
$sql=mysql_query("SELECT * FROM bloglist ORDER BY RAND() LIMIT $jum");
?>
<body bgcolor="#ffffff" leftmargin="0">
<table style="position:absolute;top:0;left:0px;z-index:100" width="1000px" height="270px" bgcolor="#ffffff"><tr><td> </td></tr></table>
<script type="text/javascript">
function myPopup2() {
window.open( "http://blogproject.ueuo.com/forminputbloglist.php", "myWindow",
"status = 1, height = 350, width = 400, resizable = 0,scrollbars=yes; left=10" )
}
</script>
<div style="position:absolute; overflow:auto;top:5;left:0px;z-index:101;font-size:11px;width:220px;height:400px;padding:3px;font-family:verdana">
<?
if($jum!="0")
{
echo"$jum BLOG<br><br>";
$x=0;
while($hsl=mysql_fetch_array($sql))
{
$x++;
$scroll[$x]="$hsl[ket]<br><a href=\"$hsl[link]\" target=\"_blank\"><b>$hsl[nama]</b></a>";
echo"$scroll[$x]<br><br>";
}
}
?>
</div>
<div style="position:absolute;top:420px;z-index:101;font-size:10px;font-family:verdana;width:170px" align="right"><button onClick="window.location.reload()" style="font-size:8pt">refresh</button><button onClick="myPopup2()" style="font-size:8pt">add</button>
</div>
</body>
</html>
Bagian Akhir
Catatan : text yang berwarna merah, ganti dengan alamat hosting anda
<html>
<? include"koneksi.inc.php";
$sqlj=mysql_query("SELECT * FROM bloglist");
$jum=mysql_num_rows($sqlj);
$sql=mysql_query("SELECT * FROM bloglist ORDER BY RAND() LIMIT $jum");
?>
<body bgcolor="#ffffff" leftmargin="0">
<table style="position:absolute;top:0;left:0px;z-index:100" width="1000px" height="270px" bgcolor="#ffffff"><tr><td> </td></tr></table>
<script type="text/javascript">
function myPopup2() {
window.open( "http://blogproject.ueuo.com/forminputbloglist.php", "myWindow",
"status = 1, height = 350, width = 400, resizable = 0,scrollbars=yes; left=10" )
}
</script>
<div style="position:absolute; overflow:auto;top:5;left:0px;z-index:101;font-size:11px;width:220px;height:400px;padding:3px;font-family:verdana">
<?
if($jum!="0")
{
echo"$jum BLOG<br><br>";
$x=0;
while($hsl=mysql_fetch_array($sql))
{
$x++;
$scroll[$x]="$hsl[ket]<br><a href=\"$hsl[link]\" target=\"_blank\"><b>$hsl[nama]</b></a>";
echo"$scroll[$x]<br><br>";
}
}
?>
</div>
<div style="position:absolute;top:420px;z-index:101;font-size:10px;font-family:verdana;width:170px" align="right"><button onClick="window.location.reload()" style="font-size:8pt">refresh</button><button onClick="myPopup2()" style="font-size:8pt">add</button>
</div>
</body>
</html>
Bagian Akhir
Catatan : text yang berwarna merah, ganti dengan alamat hosting anda
Subscribe to:
Posts (Atom)