⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cf_phplogin.php

📁 支持多种播放器RealPlayer,MediaPlayer
💻 PHP
字号:


<?
@include("CF_phpuserrec.php");
?>
<?
function alerturl($alertstr,$url)
{
  echo "<script>";
  echo "alert('".$alertstr."');";
  echo "location.href='".$url."';";
  echo "</script>";
  exit;
}

function chkstr($inputstr) //过滤非法字符
{
 $inputstr=str_replace("'"," ",$inputstr);
 return $inputstr;
}

$UserName=chkstr($_GET["UserName"]);
$pwd=chkstr($_GET["pwd"]);
$cookies_time=chkstr($_GET["cookies_time"]);

$pwd_2=chkstr($_GET["pwd"]);

if($passwordtype==2) $pwd_2=substr(md5($pwd_2),8,16);
if($passwordtype==3) $pwd_2=md5($pwd_2);

 $sql="select * from $saveregtable where $saveregusername='$UserName'";
 $result=mysql_query($sql);
 $rs=mysql_fetch_array($result);
 
 if ($rs[$saveregusername]=="") alerturl("没有此用户","index.asp");
 if ($rs[$saveregpassword]<>$pwd_2) alerturl("密码错误","index.asp");
 
 $checkcode=md5($UserName.$pwd);
 
 $fp=@fopen("CF_Temp.asp","w") or die("写方式打开文件 $filename 失败");//把正确的验证码写入临时文件中
 @fputs($fp,"<%'".$checkcode."%>") or die("文件写入失败"); 
 @fclose($fp); 
?>

<body onLoad="form1.submit();">
<form method="post" name="form1" action="CF_RecLogin.asp">
 <input type="hidden" name="UserName" value="<?echo $UserName?>">
 <input type="hidden" name="pwd" value="<?echo $pwd?>">
 <input type="hidden" name="cookies_time" value="<?echo $cookies_time?>">
 <input type="hidden" name="checkcode" value="<?echo $checkcode?>">
		
 <input type="hidden" name="loginsubmit" value="会员登录">
</form>
<body>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -