<%set rs=Server.CreateObject("Adodb.recordset")
sql="select id,title,dateandtime from jdzcn_net_movie where hidden=0 and canlook<=1 order by id desc"
rs.open sql,conn,1,1
i=0
do while not rs.eof
i=i+1
%>
| |
<%=rs(1)%> |
<%=month(rs("dateandtime"))%>月<%=day(rs("dateandtime"))%>日 |
<%if i>=10 then exit do
rs.movenext
loop
rs.close
set rs=nothing
%>
|
<%set rs=Server.CreateObject("Adodb.recordset")
sql="select id,title,hits from jdzcn_net_movie where hidden=0 and canlook<=1 order by hits desc"
rs.open sql,conn,1,1
i=0
do while not rs.eof
i=i+1
%>
| |
<%=rs(1)%> |
<%=rs(2)%>次 |
<%if i>=10 then exit do
rs.movenext
loop
rs.close
set rs=nothing
%>
|
|
|
|
 |
if($_GET['action']==""){?>
}
elseif($_GET['action']=="next")
{
$sql="select email from jdzcnnet_members where username='".sql_cut($_POST['userid'])."'";
$result=mysql_query($sql);
$rs=mysql_fetch_array($result);
if($rs[0]=="" or strrpos($rs[0],"@")==false)
{
echo"";
exit;
}
$pwd=substr(time(),1,6);
$html='
| 尊敬的用户'.$_POST['userid'].'您好: |
| 您的新密码为'.$pwd.'。请妥善保管好您的密码。如果您忘记了密码可以使用本站密码找回功能。
再次感谢您的使用。
'.$web_title.' |
| |
';
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=gb2312' . "\r\n";
$headers .= 'From: '.$web_title.'密码找会 <'.$sitemail.'>' . "\r\n";
//$headers.="天天网络密码找回";
mysql_query("update jdzcnnet_members set password='".md5($pwd)."' where username='".sql_cut($_POST['userid'])."'");
mail($rs[0],"密码找会回",$html,$headers);
echo "";
exit;
}
?>
|
| |
|