?? user_reg.php
字號:
<?
include_once("globla.php");
require $movie_root.("/Connections/showmov.php");
include_once("Config.php");
include_once("online.php");
$title="用戶注冊";
include_once("webtop.php");
if($_COOKIE['regip']!="")
{
echo "<script>alert('24小時內允許注冊一次!');window.close;</script>";
exit;
}
if($_GET['action']=="chk")
{
$userid=sql_cut($_POST['userid']);
$password=md5($_POST['password']);
$mail=sql_cut($_POST['mail']);
$gender=$_POST['sex'];
$location=sql_cut($_POST['location']);
$tuij=sql_cut($_POST['tuij']);
//判斷用戶名或者郵件地址存在
$sql="select uid from jdzcnnet_members where username='".$userid."' or email='".$mail."'";
$rs=mysql_fetch_array(mysql_query($sql));
if($rs[0]!="")
{
echo "<scritp>alert('用戶名或者郵件地址以存在請更換');history.back();</script>";
exit;
}
if(strlen($tuij)<4)
{
$tuij="admin";
}
mysql_free_result($rs);
$sql="insert into jdzcnnet_members(username,userlevel,password,regdate,usertype,memberid,email,gender,tuij,location) values('".$userid."',1,'".$password."',".time().",0,8,'".$mail."',".$gender.",'".$tuij."','".$location."')";
mysql_query($sql);
$winduid=mysql_insert_id();
$onlineip=$_SERVER['REMOTE_ADDR'];
$endtime=mktime()+$_POST['day']*24*3600;
$exe="INSERT INTO jdzcnnet_memberdata (uid,postnum,rvrc,money,lastvisit,thisvisit,onlineip,endtime) VALUES ('$winduid','0','0','".$_POST['usercount']."',".time().",".time().",'".$onlineip."',".$endtime.")";
mysql_query($exe);
echo "<script>alert('注冊成功!感謝您的注冊!');location.href='default.php';</script>";
setcookie('regip',$_SERVER['REMOTE_ADDR'],time()*24*60*60*1);
exit;
}
?>
<link href="img/Netbar_css.css" rel="stylesheet" type="text/css" />
<script>
function chklogin()
{
if(document.forms.userid.value=="")
{
alert('請輸入用戶ID');
document.forms.userid.focus();
return false;
}
if(document.forms.userid.value < 5)
{
alert('用戶ID必須大于5位!');
document.forms.userid.focus();
return false;
}
if(document.forms.password.value=="")
{
alert('請輸入登陸密碼');
document.forms.userid.focus();
return false;
}
if(document.forms.password2.value=="")
{
alert('請輸入驗證密碼');
document.forms.password2.focus();
return false;
}
if(document.forms.password.value!=document.forms.password2.value)
{
alert('2次密碼輸入不一致!');
document.forms.password.focus();
return false;
}
if(document.forms.location.value=="")
{
alert('請輸入來自地區');
document.forms.location.focus();
return false;
}
return true;
}
</script>
<script language="JavaScript">
function chkuid()
{
/*
*--------------- GetResult(str) -----------------
* GetResult(str)
* 功能:通過XMLHTTP發送請求,返回結果.
* 參數:str,字符串,發送條件.
* 實例:GetResult(document.all.userid.value);
* author:wanghr100(灰豆寶寶.net)
* update:2004-5-27 19:02
*--------------- GetResult(str) -----------------
*/
var oBao = new ActiveXObject("Microsoft.XMLHTTP");
//特殊字符:+,%,&,=,?等的傳輸解決辦法.字符串先用escape編碼的.
//Update:2004-6-1 12:22
oBao.open("GET","Check_uid.php?id="+document.forms.userid.value,false);
oBao.send();
//服務器端處理返回的是經過編碼的字符串.
window.upid.innerHTML=unescape(oBao.responseText);
}
</script>
<TABLE cellSpacing=0 cellPadding=0 width=778 align=center border=0>
<TBODY>
<TR bgColor=#ffffff>
<TD width=197 vAlign=top bgcolor="#ffffff">
<DIV align=center>
<TABLE id=Table_01 height=249 cellSpacing=0 cellPadding=0 width=189
border=0>
<TBODY>
<TR>
<TD><IMG height=41 alt=""
src="img/left_4_zt_01.gif"
width=189></TD></TR>
<TR>
<TD height=197 valign="top" background="img/left_4_zt_02.gif"><table width="90%" border="0" align="center" cellpadding="2" cellspacing="0">
<tr>
<td align="left"><script src="newfilm.php"></script></td>
</tr>
</table></TD>
</TR>
<TR>
<TD><IMG height=11 alt=""
src="../img/left_4_zt_03.gif"
width=189></TD></TR></TBODY></TABLE>
<TABLE id=Table_01 height=244 cellSpacing=0 cellPadding=0 width=189
border=0>
<TBODY>
<TR>
<TD height="42"><IMG height=42 alt=""
src="img/left_3_ph_01.gif"
width=189></TD>
</TR>
<TR>
<TD background="img/left_3_ph_03.gif" height=188 align="left">
<script src="hots.php?typeid=<?=$_GET['typeid']?>"></script></TD>
</TR>
<TR>
<TD><IMG height=14 alt=""
src="img/left_3_ph_04.gif"
width=189></TD>
</TR>
</TBODY>
</TABLE>
<TABLE id=Table_01 height=169 cellSpacing=0 cellPadding=0 width=189
border=0>
<TBODY>
<TR>
<TD><IMG
height=41 alt=""
src="img/left_5_wtjd_01.gif"
width=189 border=0></TD>
</TR>
<TR>
<TD
background="img/left_5_wtjd_02.gif"
height=117><TABLE cellSpacing=0 cellPadding=1 width="90%" align=center
border=0>
<TBODY>
<TR>
<TD vAlign=top width="9%"><DIV align=center><IMG height=11
src="img/icon_pc.gif"
width=8></DIV></TD>
<TD width=155 height="25" align="left" valign="top"><a href="help.php#9" target="_blank">什么是影幣?</a></TD>
</TR>
</TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=1 width="90%" align=center
border=0>
<TBODY>
<TR>
<TD vAlign=top width="9%"><DIV align=center><IMG height=9
src="img/icon_pc.gif"
width=5></DIV></TD>
<TD width="91%" height="25" align="left" valign="top"><a href="help.php#4" target="_blank">如何安裝播放器?</a> </TD>
</TR>
</TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=1 width="90%" align=center
border=0>
<TBODY>
<TR>
<TD vAlign=top width="9%"><DIV align=center><IMG height=9
src="img/icon_pc.gif"
width=5></DIV></TD>
<TD width="91%" height="25" align="left" valign="top"><a href="help.php#5" target="_blank">點播為什么會出現花屏?</a></TD>
</TR>
</TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=1 width="90%" align=center
border=0>
<TBODY>
<TR>
<TD vAlign=top width="9%"><DIV align=center><IMG height=9
src="img/icon_pc.gif"
width=5></DIV></TD>
<TD width="91%" height=35 align="left" valign="top">
<a target="_blank" href="help.php#5">播放時出現停頓,畫面停止不動?</a></TD>
</TR>
</TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=1 width="90%" align=center
border=0 height="20">
<TBODY>
<TR>
<TD vAlign=top width="9%"><DIV align=center><IMG height=9
src="img/icon_pc.gif"
width=5></DIV></TD>
<TD width="91%" height=20 align="left" valign="top">
<a href="help.php#7">收看電影時經常緩沖?</a></TD>
</TR>
</TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=1 width="90%" align=center
border=0 height="42">
<TBODY>
<TR>
<TD vAlign=top width="9%"><DIV align=center><IMG height=9
src="img/icon_pc.gif"
width=5></DIV></TD>
<TD width="91%" height=20 align="left" valign="top">
<a target="_blank" href="help.php#9">如何付費續費?</a></TD>
</TR>
<TR>
<TD vAlign=top width="9%">
<p align="center"><IMG height=9
src="img/icon_pc.gif"
width=5></TD>
<TD width="91%" height=22 align="left" valign="top">
<font color="#666666">
<STRONG style="font-weight: 400">
<a href="help.php#8">有的電影能看有的不能看.</a></STRONG></font></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD><IMG height=11 alt=""
src="img/left_5_wtjd_03.gif"
width=189></TD>
</TR>
</TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TH height=3></TH></TR></TBODY></TABLE>
<TABLE width=195 height=200
border=0 align="center" cellPadding=0 cellSpacing=0 id=Table_01>
<TBODY>
<TR>
<TD><IMG height=57 alt=""
src="img/left_7_xz_01.gif"
width=195 border=0></TD>
</TR>
<TR>
<TD
background="img/left_7_xz_02.gif"
height=121>
<TABLE height=121 cellSpacing=0 cellPadding=3 width="80%"
align=center border=0>
<TBODY>
<TR>
<TH scope=row><a target="_blank" href="soft/IE6.exe"><IMG height=33
src="img/ie6.gif"
width=143 border=0></a></TH></TR>
<TR>
<TH scope=row><a target="_blank" href="wmp9.exe"><IMG height=33
src="img/wmp9.gif"
width=143 border=0></a></TH></TR>
<TR>
<TH scope=row><a target="_blank" href="soft/realOne.exe"><IMG height=33
src="img/realoned.gif"
width=143 border=0></a></TH></TR></TBODY></TABLE></TD></TR>
<TR>
<TD><IMG height=22 alt=""
src="img/left_7_xz_03.gif"
width=195></TD>
</TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TH scope=row> </TH></TR></TBODY></TABLE>
</DIV></TD>
<TD vAlign=top width=581>
<table width="100%" border="1" cellpadding="5" cellspacing="1" bordercolor="#CCCCCC" style="border-collapse:collapse">
<form id="form1" name="forms" method="post" action="?action=chk" onsubmit="return chklogin();"><tr>
<td height="24" colspan="2" align="center" background="img/movie_reorder_bei.gif">用戶注冊</td>
</tr>
<tr>
<td width="18%">用戶名:</td>
<td width="82%"><label>
<input name="userid" type="text" class="input" id="userid" />
<input name="Submit2" type="button" class="input" value="檢測用戶是否存在" onclick="chkuid()"/>
<div id="upid"></div>
</label></td>
</tr>
<tr>
<td>登陸密碼:</td>
<td><label>
<input name="password" type="password" class="input" id="password" />
</label></td>
</tr>
<tr>
<td>重復確認:</td>
<td><input name="password2" type="password" class="input" id="password2" /></td>
</tr>
<tr>
<td>Email:</td>
<td><input name="mail" type="text" class="input" id="mail" /></td>
</tr>
<tr>
<td>推薦用戶:</td>
<td><input name="tuij" type="text" disabled="disabled" class="input" value="<?=$_COOKIE['tuij']?>" /></td>
</tr>
<tr>
<td>來自地區:</td>
<td><label>
<input name="location" type="text" class="input" id="location" />
</label></td>
</tr>
<tr>
<td>性別:</td>
<td><label>
<select name="sex" id="sex">
<option value="1">男</option>
<option value="2">女</option>
<option value="0" selected="selected">保密</option>
</select>
</label></td>
</tr>
<tr>
<td> </td>
<td>
<label>
<input type="submit" name="Submit" value="確認注冊" />
</label>
</td>
<input name="tuij" type="hidden" value="<?=$_COOKIE['tuij']?>" />
</tr></form>
</table>
<!--行--></TD>
</TR></TBODY></TABLE>
<div align="center">
<table width="778" border="0" cellspacing="0" cellpadding="0" height="86" background="../img/bottm.gif">
<tr>
<td width="265" rowspan="4"> </td>
<td width="513" align="center"> </td>
</tr>
<tr>
<td width="513" align="center">本站所有影片版權歸原公司所有,本站只提供試看.如果你喜歡請購買正版!</td>
</tr>
<tr>
<td width="513" align="center">版權所有:服務器測試系統 聯系郵箱:<a href="mailto:jdzcnnet@21cn.net?subject=業務聯系">jdzcnnet@21cn.net</a></td>
</tr>
<tr>
<td width="513" align="center">頁面執行時間:
<font color=#FF0000">0.125</font>毫秒 點播系統技術支持:<a href="http://www.jdzcn.net/"><font color="#FF0000">天天網絡-專業VOD系統開發</font></a></td>
</tr>
</table>
</div>
</BODY></HTML>
<script language=javascript src="bg5.js"></script>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -