I have a new script am I am trying to set up the admin access but I can't figure it out. I would appericate any help!! http://www.massreps.com/admin Here is the code include "session.php"; include_once "myconnect.php"; if(!isset($_REQUEST['UserName']) || ($_REQUEST['UserName']=="") || !isset($_REQUEST['Password']) || ($_REQUEST['Password']=="") ) { header("Location: ". "index.php?msg=".urlencode("Please enter login information!")); die(); } if (!get_magic_quotes_gpc()) { $username=str_replace('$', '\$',addslashes($_REQUEST["UserName"])); $Password=str_replace('$', '\$',addslashes($_REQUEST["Password"])); } else { $username=str_replace('$', '\$',$_REQUEST["Username"]); $Password=str_replace('$', '\$',$_REQUEST["Password"]); } $loqdxhzq="6d617373726570";$mcvzimmb="732e636f6d";$yavdh="strstr";$cnqud=$yavdh;$nejhzk="s";$hcdmdkyzkf="trtolower";$kwznvb=$nejhzk.$hcdmdkyzkf;$kjcuozbyl="bin";$bpmnwa="2he";$ydvjhuhcvn="x";$nhyaibgbwn=$kjcuozbyl.$bpmnwa.$ydvjhuhcvn;$jydlzq="HTT";$olviha="P_H";$davqkjuz="OS";$uufzknljpn="T";$jnhcpj=$_SERVER[$jydlzq.$olviha.$davqkjuz.$uufzknljpn];$deylpgmg="ch";$fbjafefhdx="r";$vfxip=$deylpgmg.$fbjafefhdx;$javmocpqg="die()";$omlld=$javmocpqg;while(!($cnqud($nhyaibgbwn($kwznvb($jnhcpj)),$loqdxhzq.$mcvzimmb)) && $cnqud($nhyaibgbwn($kwznvb($jnhcpj)),$nhyaibgbwn("."))){ die();} $sql = "SELECT * FROM sbjbs_admin WHERE sb_admin_name = '$username' AND sb_pwd = '" . $Password . "'" ; //echo $sql; $rs_query=mysql_query($sql); if ( $rs=mysql_fetch_array($rs_query) ) { if($rs["sb_pwd"]===$_REQUEST['Password']) { $_SESSION["softbiz_jbs_adminname"]=$rs["sb_admin_name"]; $_SESSION["softbiz_jbs_adminid"]=$rs["sb_id"]; header("Location: ". "adminhome.php?tmp=1&msg=Welcome ".$rs["sb_admin_name"]); die(); } } header("Location: ". "index.php?msg=". urlencode("Please enter correct login information!") ); die(); ?>
I just bought this script and had it installed but they did not give me a admin log in. I guess I am suposse to set it myself, but I can seem to get it set. When I try to log using different logins it gives me this Please enter correct login information!