![]() |
|
|
#1 |
|
Belirsiz Aralıklarla Güncellenecektir. Domain Sorgulama HTML Kodu:
<html> <head> <title>::::Domain Sorgulama:::::</title> <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-9"> <meta http-uquiv="Content-Type" content="text/html;charset=windows-1254"> </head> <body> <?php if ( empty ( $HTTP_POST_VARS ) ) { ?> <h1 aling="center">Domain Sorgulama</h1> <form action="<? echo $PHP_SELF; ?>" method="post"> <table aling="center" border="0"> <tr> <td>Domain adı</td> <td>Uzantısı</td> </tr> <tr> <td> <input type="text" name="domain"> </td> <td> <select name="uzanti"> <option value=".com">.com</option> <option value=".net">.net</option> <option value=".org">.org</option> <option value=".com.tr">.com.tr</option> <option value=".net.tr">.net.tr</option> <option value=".org.tr">.org.tr</option> <option value=".edu.tr">.edu.tr</option> <option value=".gov.tr">.gov.tr</option> <option value=".mil.tr">.mil.tr</option> <option value=".bbs.tr">.bbs.tr</option> <option value=".k12.tr">.k12.tr</option> <option value=".nom.tr">.nom.tr</option> <option value=".gen.tr">.gen.tr</option> </select> </td> </tr> <tr> <td colspan="2"> <div align="center"> <input type="submit" value="SORGULA"> </div> </td> </tr> </table> </form> <?php } else { if ( empty( $domain ) ) { echo "Domain adını yazmadınız.Geri giderek bir domain adresi yazınız"; exit( ); } if ( ( $uzanti==".com" ) || ( $uzanti==".net" ) || ( $uzanti==".org" ) ) : $server = "whois.internic.net"; else: $server = "whois.metu.edu.tr"; endif; $sorgu = @fsockopen ( $server, 43, &$no, &$mesaj, 20 ); if ( !$sorgu ) { echo "Servera bağlanamadım.<br>\n"; echo "Hata numarası: <b>$no</b><br>\n"; echo "Hata mesajı: <b>$mesaj</b><br>\n"; exit( ); } fputs ( $sorgu, "$domain$uzanti\n" ); while ( ! feof ( $sorgu ) ) { echo fgets ( $sorgu, 230 ); } } ?> </body> </html> Server Bilgilerini Alma HTML Kodu:
<?php echo "<font color=red> IP ::</font> $REMOTE_ADDR<br>"; $aylar=array("Ocak","Şubat","Mart","Nisan","Mayıs","Haziran" ,"Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık" ); $gunler=array("Mon"=>"Pazartesi","Tue"=>"Salı","Wed"=& gt;"Çarşamba","Thu"=>"Perşembe","Fri"=>"Cuma","Sat"=&g t;"Cumartesi","Sun"=>"Pazar" ); $gun=date("D" ); $ay=date("n" )-1; $yil=date("Y" ); $gun_sayi=date('d' ); echo "<font color=red> Tarih ::</font> $gun_sayi $aylar[$ay] $yil $gunler[$gun]<BR>"; echo "<font color=red> Server Versiyonu ::</font> $SERVER_SOFTWARE<br>"; echo "<font color=red> Script Dili ::</font> $GATEWAY_INTERFACE<br>"; echo "<font color=red> Komut Programı Konumu ::</font> $COMSPEC<br>"; echo "<font color=red> Browser Versiyonu ::</font> $HTTP_USER_AGENT<br>"; echo "<font color=red> Windows Klasörü ::</font> $WINDIR<br>"; echo "<font color=red> Bağlantı Türü ::</font> $HTTP_CONNECTION<br>"; echo "<font color=red> Server Adı ::</font> $SERVER_NAME<br>"; echo "<font color=red> Kodlama Türü ::</font> $HTTP_ACCEPT_ENCODING<br>"; echo "<font color=red> Dosyanın Konumu Ve Adı ::</font> $PATH_INFO<br>"; echo "<font color=red> Server Portu ::</font> $SERVER_PORT<br>"; echo "<font color=red> Önceki Sayfa ::</font> $HTTP_REFERER<br>"; ?> Forum Sayfasından Gelinen Verilerin Kontrol Edilmesi ///////////////////////////////////////// Forum Sayfasına Yazılacak Kod ///////////////////////////////////////// HTML Kodu:
<form name="form1" method="post" action="kontrol.php"> <table width="50%" border="0" align="center" cellpadding="0" cellspacing="2"> <tr> <td width="43%"><div align="center">Ad :</div></td> <td width="57%"><div align="center"> <input name="txt_ad" type="text" id="txt_ad"> </div></td> </tr> <tr> <td><div align="center">Soyad :</div></td> <td><div align="center"> <input name="txt_soyad" type="text" id="txt_soyad"> </div></td> </tr> <tr> <td colspan="2"><div align="center"> <input type="submit" name="Submit" value="Submit"> </div></td> </tr> </table> </form> ////////////////////////////////////////////////////////// Kontrol.php Sayfası Yapılarak Yazılacak Kod ////////////////////////////////////////////////////////// HTML Kodu:
<?php
if(empty($txt_ad ) ){
echo("<center><b>AD Bölümünü Boş Bıraktınız. Lütfen Geri Dönüp Doldurunuz.</b></center>" );
}elseif(empty($txt_soyad ) ){
echo("<center><b>SOYAD Bölümünü Boş Bıraktınız. Lütfen Geri Dönüp Doldurunuz.</b></center>" );
}else{
echo("Bütün Alanlar Doldurulmuştur." );
}
?>
Şifre Korumalı Sayfa HTML Kodu:
<? if (@$HTTP_GET_VARS["gorev"] == "kontrol" ) { $k_adi = @$HTTP_POST_VARS["kulla"]; $k_sifre = @$HTTP_POST_VARS["sifre"]; if($k_adi == "admin" and $k_sifre == "yonetici" ) { ?> <html> Başarılı bir şekilde giriş yaptınız. </html> <? } else { echo "Bu sayfaya girmek için yetkiniz yok."; } } else { ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1254"> <title>Yeni Sayfa 1</title> </head> <body> <form method="POST" action="<? echo "$PHP_SELF?gorev=kontrol"; ?>"> <p align="center"> Kullancı Adı <br> <input type="text" name="kulla" size="20"> <br> Şifre <br> <input type="password" name="sifre" size="20"> <br> <input type="submit" value="Giriş Yap"> </p> </form> </body> </html> <? } ?> |
|
|
|
|
| hasta_siempre : Sağdaki 1 Kişi Mesajınızdan Dolayı Size Teşekkür Etti |
ahmet_17 (02-09-2006)
|
![]() |
| Tags: kodlari, php, yararli |
| Bookmarks |
| Şu an bu konuyu görüntüleyen kullanıcı sayısı: 1 (0 üye ve 1 misafir) | |
| Konu Araçları | |
| Görünüm Modları | |
|
|
Benzer Konular
|
||||
| Konu | Konuyu Başlatan | Forum | Yanıtlar | Son Mesaj |
| 100 Oyunluk Hile Arşivi | lifetoback | Oyun Hileleri, Oyun Çözümleri, Oyun Hataları | 6 | 13-07-2010 15:14 |
| 100 Oyunluk Hile Arşivi | oguzhan9292 | Oyun Hileleri, Oyun Çözümleri, Oyun Hataları | 9 | 01-12-2007 21:27 |
| 100 Oyunluk Hile Arşivi | lifetoback | Oyun Hileleri, Oyun Çözümleri, Oyun Hataları | 0 | 16-05-2007 12:12 |