Kod:
<?php require_once('../ayar.php'); ?>
<?php
// *** Validate request to login to this site.
if (!isset($_SESSION)) {
session_start();
}
$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($_GET['accesscheck'])) {
$_SESSION['PrevUrl'] = $_GET['accesscheck'];
}
if (isset($_POST['adminadi'])) {
$loginUsername=$_POST['adminadi'];
$password=$_POST['22101990'];
$MM_fldUserAuthorization = "adminlvl";
$MM_redirectLoginSuccess = "index.php";
$MM_redirectLoginFailed = "login.php?hata=login";
$MM_redirecttoReferrer = false;
mysql_select_db($database_videov1, $videov1);
$LoginRS__query=sprintf("SELECT adminadi, adminsifre, adminlvl FROM admin WHERE adminadi='%s' AND adminsifre='%s'",
get_magic_quotes_gpc() ? $loginUsername : addslashes($loginUsername), get_magic_quotes_gpc() ? $password : addslashes($password));
$LoginRS = mysql_query($LoginRS__query, $videov1) or die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
$loginStrGroup = mysql_result($LoginRS,0,'adminlvl');
//declare two session variables and assign them
$_SESSION['MM_Username'] = $loginUsername;
$_SESSION['MM_UserGroup'] = $loginStrGroup;
if (isset($_SESSION['PrevUrl']) && false) {
$MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
}
header("Location: " . $MM_redirectLoginSuccess );
}
else {
header("Location: ". $MM_redirectLoginFailed );
}
}
?>
<HTML><HEAD><TITLE>Admin Girişi</TITLE>
<LINK href="images/style.css" type=text/css rel=Stylesheet>
<META http-equiv=Content-Type content="text/html; charset=ISO-8859-9">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY bottomMargin=0 leftMargin=0 topMargin=0 rightMargin=0 marginwidth="0"
marginheight="0">
<TABLE class="background2 border1" cellSpacing=0 cellPadding=0
width=760 align=center border=0>
<TBODY>
<TR vAlign=top>
<TD>
<TABLE height="99%" cellSpacing=0 cellPadding=0 width="100%" align=center
border=0>
<TBODY>
<TR height=24>
<TD height="23">
<TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%"
align=center border=0>
<TBODY>
<TR>
<TD class=top-bar width="317"><a href="../index.php">
<font color="#FFFFFF">Site AnaSayfa</font></a> -
<a href="index.php"><font color="#FFFFFF">Admin Sayfa</font></a></TD>
<TD class=top-bar width="180"><center><b>Admin Girişi</b></center></TD>
<TD class=top-bar> </TD></TR></TBODY></TABLE></TD></TR>
<TR vAlign=top height="100%">
<TD class=left-column width=756 height="92%">
<p align="left">
<b>
<?php if ($_GET['hata'] == 'login') { ?></b><p align="center"><b>Hatalı kullanıcı adı/şifre.</b></p>
<b><?php } ?>
</b>
<p align="center">
<form ACTION="<?php echo $loginFormAction; ?>" METHOD="POST" name="login">
<p align="center">
<input name="adminadi" value="kullanıcı adı" onFocus="this.value='';" style="font-weight: 700"><b><br>
</b>
<input type="password" name="adminsifre" value="şifre" onFocus="this.value='';" style="font-weight: 700"><b><br>
</b>
<input type="submit" value="giriş" style="font-weight: 700"><b> </b>
</p>
</form>
<p align="center">
</p>
<b>
</div>
</b><p align="center"></TD>
Code arkadaşlar ben bulamadım biri burdan bana kullanıcı adı ve şifresinin ne olduğunu soleyebilirmi ?ama sole kul adı şu şifre şu die ne denediysem olmadı o yuzden sizden yardım istedim .