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

📄 user_reg.php

📁 ∷源码简介∷ 简介: 本程序采用php+mysql构建。运行速度更快,更安全,运行程序目录中install.php进行安装 1、采用模块化后台管理。可轻松管理电影数据。实现影片等级制度。隐藏影
💻 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>&nbsp;</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>&nbsp;</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 + -