Location: PHPKode > projects > MythPHP > MythPHPv1.0/www/admin/giriskontrol.php
<?php
session_start();

include '../ayar.php';

$kad = $_POST['kulad'];
$passc = $_POST['passw'];
$pass = md5($passc);

$sansurle = array('CREATE','DELETE','SELECT','FROM','LIMIT','TABLE','MYISAM','*','ORDER','ASC','JOIN','BINARY','WHERE','<','>');
$editle = array('---','---','---','---','---','---','---','---','---','---','---','---','---','---','---');
$kad2 = str_replace($sansurle,$editle,$kad);

$securekad = mysql_real_escape_string($kad2);

if(empty($securekad)){ Header("Location:girishata.php"); }

$sansurle2 = array('CREATE','DELETE','SELECT','FROM','LIMIT','TABLE','MYISAM','*','ORDER','ASC','JOIN','BINARY','WHERE','<','>');
$editle2 = array('---','---','---','---','---','---','---','---','---','---','---','---','---','---','---');
$pass2 = str_replace($sansurle2,$editle2,$pass);

$securepass = mysql_real_escape_string($pass2);

if(empty($securepass)){ Header("Location:girishata.php"); }

$kontrol = mysql_query("SELECT * FROM yoneticibil WHERE kulad='$securekad' and pass='$securepass'");
$oku = mysql_fetch_array($kontrol);
$securemember = mysql_num_rows($kontrol);

if ($securemember == '0') {
Header("Location:girishata.php");
mysql_close(); 
}else{
$_SESSION['yoneticiid'] = $oku['id'];
$_SESSION['yoneticibil'] = $oku['kulad'];
Header("Location:index2.php");
}
?>
Return current item: MythPHP