日期:2014-05-17 浏览次数:20496 次
<?php session_start(); include '../includes/config.php'; $_session["admin"] = null; $m = new mysql(); $m->open(); $user = trim($_POST["user"]); $password = trim($_POST["password"]); $yz = trim($_POST["yz"]); //echo $yz; if($yz == $_SESSION['checkcode']) { $sql = "select * from admin where adname= '$user' and adpassword = '$password'"; $m->get($sql); if($m->getRows()){ $n = $m->getValue(0,'adname'); $j = $m->getValue(0,'adjurisdiction'); $add = $m->getValue(0,'aduid'); $_SESSION["admin"] = $n; $_SESSION["jur"] = $j; $_SESSION["aduid"] = $add; $sid = session_id(); //echo $sid; //echo $_SESSION["admin"]; header( "Location: ../member/index.php?sid={$sid}"); //$url = "./member/index.php"; //header("location:./member/index.php"); }else{ echo "<script type='text/javascript' charset=‘gb2312’>top.location='../templates/jump.html';</script>"; } }else{ echo "<script type='text/javascript' charset=‘gb2312’>top.location='../templates/jump.html';</script>"; } ?>