Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $username = guvenlik(trim($_POST['acc']));
- $pwd = guvenlik(trim($_POST['pass']));
- $uye = odbc_exec($conn,"select StrAuthority From TB_USER where strAccountID='".$username."'");
- $u = odbc_result($uye,1);
- $c = $_POST['cookie'];
- if ($username=='' or $pwd=='') {
- echo "<center>Please fill all fields and try again .</center>";
- } else {
- $msquery="SELECT COUNT(strAccountID) FROM TB_USER WHERE strAccountID = '".$username."' AND RealPass = '".$pwd."'";
- $msresults=odbc_exec($conn,$msquery) or die("error");
- odbc_fetch_row($msresults);
- if (odbc_result($msresults,1) > 0) {
- echo '<center><img src="images/panel/bekleyin.gif" alt="" /><br><br>Sign in Successful Please wait ...<center>';
- $_SESSION['enqinuser'] = $username;
- $_SESSION['enqinpass'] = $pwd;
- $_SESSION['enqinauth'] = $u;
- if($c = 'e'){
- setcookie('login',$_SESSION['enqinuser']);
- }
- } else {
- echo '<center><img src="images/panel/bekleyin.gif" alt="" /><br><br>Your User Name or Password is Incorrect.</center>';
- }
- }
- $sayfa = getenv(HTTP_REFERER);
- echo'<meta http-equiv="refresh" content="2; url='.$sayfa.'">';
- ?>
Add Comment
Please, Sign In to add comment