Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as PHP by andy ( 18 years ago )
<?php
$txtlogin=$_GET[txtlogin];
$txtpwd=$_GET[txtpwd];
include_once "../config.php";
session_start();
if (@!$txtlogin) {
print "<b>нЬХÐЙЮ: </b>оСЯРÐИ КÐЦХМ<br>";
exit;
};
if (@!$txtpwd) {
print "<b>нЬХÐЙЮ: </b>оСЯРÐИ ОЮПÐКЭ<br>";
exit;
};
$sql = "SELECT * FROM `users` WHERE `login` = '$txtlogin'";
$result = mysql_query($sql);
$raw = mysql_fetch_array($result, MYSQL_ASSOC);
if ($raw["login"]==$txtlogin) {
if ($raw["pwd"]==$txtpwd) {
echo 'ok';
$_SESSION["onlogin"] = 1;
$_SESSION["login"] = $txtlogin;
echo '<meta http-equiv="refresh" content="1;url=admin.php">';
exit;
} else {
print '<div align="center" ><strong>нЬХÐЙЮ ЮБРÐПХГЮЖХХ</strong></div>';
exit;
};
} else {
print '<div align="center" ><strong>нЬХÐЙЮ ЮБРÐПХГЮЖХХ</strong></div>';
exit;
};
?>
Revise this Paste