İçeriğe geç
ShiftDelete.Net
Haber ara/ SDN'ye SorGiriş
Haber Akışı SDNTV İnceleme Forum Yapay Zeka Akıllı Telefon Elektrikli Otomobil Oyun ShiftDelete.Net Global Teknoloji Haberleri Mobil Otomobil Donanım Savunma Bilim Sosyal Medya İnternet Giyilebilir Teknoloji Rehber Ürünler Son dakika Yazarlar
  1. Ana sayfa
  2. Topluluk
  3. Webmaster Dünyası
  4. Web Tasarımı
Web Tasarımı

hata nerde

javascript:??29.03.20090 cevap1.095 görüntüleme
2008'den beri165 mesaj
#1
Login.php
<form action="action.php" method=post> 
Kullanıcı: 
<input type=text value="ornek" name="kullanici"> 
Parola: 
<input type=password value="123" name="parola"> 
<img src="guvenlik.php"> 
Güvenlik Kodu: 
<input type=text name="guvenlik_kodu"> 
<br> 
<input type="submit" value="Gönder"> 
</form>

Guvenlik.php
<? 
session_start(); 
[EMAIL="$text=@$ses_guvenlik_kodu"]$text=@$ses_guvenlik_kodu[/EMAIL]; 
header("Content-type: image/png"); 

function ses_guvenlik_kodu() {
 $sifre = substr(md5(rand(0,999999999999)),-1);
 $sifre1 = substr(md5(rand(0,999999999999)),-1);
 $sifre2 = substr(md5(rand(0,999999999999)),-1);
 $sifre3 = substr(md5(rand(0,999999999999)),-1);
 if ($sifre) {
  session_start();
  $_SESSION["ses_guvenlik_kodu"] = $sifre.$sifre1.$sifre2.$sifre3;
  $width  = 100;
  $height =  30;
  $resim  = ImageCreate($width,$height);
  $beyaz  = ImageColorAllocate($resim, rand(0,80), 0, 0);
   $gri  = ImageColorAllocate($resim, 140, rand(1,80), 140);
   $rastgele  = ImageColorAllocate($resim, 140, 140, rand(1,80));
  $rand   = ImageColorAllocate($resim, 255, 255, 255);
  ImageFill($resim, 0, 0, $rand);
  ImageString($resim, 5, 10, rand(2,15), $sifre, $gri);
  ImageString($resim, 5, 30, rand(1,15), $sifre1,$beyaz );
  ImageString($resim, 5, 50, rand(2,15), $sifre2, $beyaz);
  ImageString($resim, 5, 70, rand(2,15), $sifre3, $gri);
   
 
  
  
  
  
  ImageLine($resim, rand(5,40), rand(5,20), rand(5,50), rand(10,30), $gri);
ImageLine($resim, rand(1,10), rand(1,30), rand(1,50), rand(5,30), $rastgele);
ImageLine($resim, rand(40,90), rand(5,20), rand(5,50), rand(20,70), $beyaz);
ImageLine($resim, rand(5,90), rand(5,30), rand(5,30), rand(5,30), $gri);
ImageLine($resim, rand(5,50), rand(5,20), rand(5,50), rand(20,20), $rastgele);

ImageLine($resim, rand(50,100), rand(5,40), rand(5,50), rand(1,90), $gri);
  header("Content,type: image/png");
  ImagePng($resim);
  ImageDestroy($resim);
 }
}
ses_guvenlik_kodu();
?>

Action.php
<? 
session_start(); 
$db_kullanici="ornek"; 
$db_parola=123; 

if([EMAIL="$kullanici==@$db_kullanici"]$kullanici==@$db_kullanici[/EMAIL] and [EMAIL="$parola==@$db_parola"]$parola==@$db_parola[/EMAIL] and @$ses_guvenlik_kodu==$guvenlik_kodu) 
    $cikti= "Merhaba <b>$db_kullanici</b><br>;     
else 
{ 
    $ses_guvenlik_kodu=""; 
   session_start("ses_guvenlik_kodu"); 
 
    $cikti= "Giriş bilgileriniz kabul edilmedi!<br><a href="index.php">Tekrar Dene</a>"; 
} 
?>

action.php hata veriyor???

Cevabını yaz

Cevap yazmak için giriş yap ya da üye ol. Eski forum kullanıcı adın ve parolanla girebilirsin.