Kod:
// *** 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 );
}
}
?>
Admin Girişi
marginheight="0">Site AnaSayfa -
Admin Sayfa
Hatalı kullanıcı adı/şifre.
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 . arwen Tue, 19 Aug 2008 20:26:32 GMT
Source: http://forum.iyinet.com/php/103431-scriptin-sifresini-bulamadim-hangisi.html
--
To unsubscribe from this feed, click here
To manage other subscriptions, click here
~
Powered by RssFwd, a service of Blue Sky Factory, Inc
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment