0byt3m1n1-V2
Path:
/
home
/
bangtoey
/
domains
/
bangtoey.go.th
/
public_html
/
admin
/
[
Home
]
File: auth.php
<?php session_start(); if(isset($_POST[user])){ $user=$_POST[user]; } if(isset($_POST[passwd])){ $passwd=$_POST[passwd]; } $_SESSION["user"] = $user; $_SESSION["passwd"] = $passwd; //echo " pass = ".$pass; if(($_SESSION[user]==" ") && ($_SESSION[passwd]==" ")){ //echo "Hello 3"; session_destroy(); $message="Please type user and password !"; $url="index.php"; include "alert.php"; } else if( $_SESSION[user]=="admin" && $_SESSION[passwd]=="1234" ){ //echo '<meta HTTP-EQUIV="REFRESH" CONTENT="0; URL=menu.php"">'; } else{ //echo "u = ".$user; //echo "p = ".$passwd; session_destroy(); $message="Username or Password Incorrect !"; $url="index.php"; include "alert.php"; } ?>
©
2018.