<?php require_once('../../Connections/Tabelle.php'); ?>
<?php
// *** Validate request to login to this site.
session_start();
$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($accesscheck)) {
$GLOBALS['PrevUrl'] = $accesscheck;
session_register('PrevUrl');
}
if (isset($_POST['kadi'])) {
$loginUsername=$_POST['kadi'];
$password=$_POST['pwd'];
$MM_fldUserAuthorization = "";
$MM_redirectLoginSuccess = "http://localhost/imerhev/login?id=profil.php";
$MM_redirectLoginFailed = "http://localhost/imerhev/hata.php";
$MM_redirecttoReferrer = false;
mysql_select_db($database_Tabelle, $Tabelle);
$LoginRS__query=sprintf("SELECT Nickiniz, Sifreniz FROM uyeler WHERE Nickiniz='%s' AND Sifreniz='%s'",
get_magic_quotes_gpc() ? $loginUsername : addslashes($loginUsername), get_magic_quotes_gpc() ? $password : addslashes($password));
$LoginRS = mysql_query($LoginRS__query, $Tabelle) or die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
$loginStrGroup = "";
//declare two session variables and assign them
$GLOBALS['MM_Username'] = $loginUsername;
$GLOBALS['MM_UserGroup'] = $loginStrGroup;
//register the session variables
session_register("MM_Username");
session_register("MM_UserGroup");
if (isset($_SESSION['PrevUrl']) && false) {
$MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
}
header("Location: " . $MM_redirectLoginSuccess );
}
else {
header("Location: ". $MM_redirectLoginFailed );
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Unbenanntes Dokument</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.Stil1 {
font-size: 12px;
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
}
.Stil2 {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
.Stil4 {font-family: Arial, Helvetica, sans-serif}
.Stil5 {font-size: 12px}
-->
</style>
</head>
<body>
<form name="form1" method="POST" action="<?php echo $loginFormAction; ?>">
<p> </p>
<div align="left"></div>
<table width="155" border="0">
<tr>
<td width="145"><div align="center" class="Stil2"><strong>Üye Adi </strong></div></td>
</tr>
<tr>
<td>
<div align="center" class="Stil4 Stil5">
<input name="kadi" type="text" id="kadi">
</div></td>
</tr>
<tr>
<td><div align="center" class="Stil2"><strong>Sifreniz : </strong></div></td>
</tr>
<tr>
<td>
<div align="center" class="Stil2">
<input name="pwd" type="text" id="pwd">
</div></td>
</tr>
<tr>
<td><div align="center">
<input name="gir" type="submit" id="gir" value="Giris">
</div></td>
</tr>
</table>
<p align="left" class="Stil1"> Hala hesabiniz yok mu? <br>
Hemen <a href="register1.php">açabilirsiniz </a>. </p>
<p align="center"> </p>
</form>
</body>
</html>