【php开源代码栏目提醒】:网学会员在php开源代码频道为大家收集整理了RegPro.php提供大家参考,希望对大家有所帮助!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD
HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HEAD>
<TITLE>注册协议</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="CSS/style.css" type=text/css rel=stylesheet>
<script src="JS/check.js" language="javascript">
</script>
</HEAD>
<BODY style="MARGIN-TOP: 0px; VERTICAL-ALIGN: top; PADDING-TOP: 0px; TEXT-ALIGN: center">
<?php
$str=array("大","更","创","天","科","客","博","技","立","新");
$word=strlen($str);
for($i=0;$i<4;$i++){
$num=rand(0,$word*2-1); //$word=$
word*2-1
$img=$img."<img src=' images/checkcode/".$num.".gif' width='16' height='16'>"; //显示随机图片
$pic=$pic.$str[$num]; //将图片转换成数组中的文字
}
?>
<TABLE width="757" cellPadding=0 cellSpacing=0 style="WIDTH: 755px">
<TBODY>
<TR> <TD style="VERTICAL-ALIGN: bottom; HEIGHT: 6px" colSpan=3 background="images/F_head.jpg"> <table width="100%" height="149" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="51" align="right">
<br>
<table width="262" border="0" cellspacing="0" cellpadding="0">
<tr align="left">
<td width="26" height="20"><a href="index.php"></a></td>
<td width="71" class="word_white"><a href="index.php"><span style="FONT-SIZE: 9pt; COLOR: #000000; TEXT-DECORATION: none">首 页</span></a></td>
<td width="87"><a href="file.php"><span style="FONT-SIZE: 9pt; COLOR: #000000; TEXT-DECORATION: none">我的博客</span></a></td>
<td width="55"><a href="<?php echo (!isset($_SESSION[username])?'Re
gpro.php':'safe.php'); ?>"><span style="FONT-SIZE: 9pt; COLOR: #000000; TEXT-DECORATION: none"><?php echo (!isset($_SESSION[username])?"博客
注册":"安全退出"); ?></span></a></td>
<td width="23"> </td>
</tr>
</table>
<br></td>
</tr>
<tr>
<td height="66" align="right"><p> </p></td>
</tr>
<tr>
<form name="form" method="post" action="checkuser.php">
<td height="20" valign="baseline">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="32%" height="20" align="center" valign="baseline"> </td>
<td width="67%" align="left" valign="baseline" style="text-indent:10px;">
<?php
if(!isset($_SESSION[username])){
?>
用户名:
<input name=txt_user size="10">
密码:
<input name=txt_pwd type=password style="FONT-SIZE: 9pt; WIDTH: 65px" size="6">
验证码:
<input name="txt_yan" style="FONT-SIZE: 9pt; WIDTH: 65px" size="8">
<input type="hidden" name="txt_hyan" id="txt_hyan" value="<?php echo $pic;?>">
<?php echo $img; ?>
<input style="FONT-SIZE: 9pt" type=submit value=登录 name=sub_dl onClick="return f_check(form)">
<?php
}else{
?>
<font color="red"><?php echo $_SESSION[username]; ?></font> 博客天空网站欢迎您的光临!!!当前时间:<font color="red"><?php echo date("Y-m-d l"); ?>
</font>
<?
}
?>
</td>
<td width="1%" align="center" valign="baseline"> </td>
</tr>
</table>
</td>
</form>
</tr>
</table></TD>
</TR>
<TR>
<TD colSpan=3 valign="middle" style="BACKGROUND-IMAGE: url( images/bg.jpg); VERTICAL-ALIGN: middle; HEIGHT: 450px; TEXT-ALIGN: center"> <TABLE height="304" cellPadding=0 cellSpacing=0 style="WIDTH: 224px">
<TBODY>
<TR>
<TD height="29"
style="WIDTH: 368px; HEIGHT: 21px; TEXT-ALIGN: center"><STRONG><SPAN
style="COLOR: #993300">用户注册协议</SPAN></STRONG></TD>
</TR>
<TR>
<TD style="WIDTH: 368px; HEIGHT: 302px" rowSpan=2> <TABLE
style="BORDER-RIGHT: black thin solid; BORDER-TOP: black thin solid; BORDER-LEFT: black thin solid; WIDTH: 369px; BORDER-BOTTOM: black thin solid"
align=center>
<TBODY>
<TR>
<TD style="HEIGHT: 15px; TEXT-ALIGN: left" colSpan=4
rowSpan=4> 为维护网上公共秩序和社会稳定,请您自觉遵守以下条款:
<BR>
一、不得利用本站危害国家安全、泄露国家秘密,不得侵犯国家社会集体的和公民的合法权益,不得利用本站制作、复制和传播下列信息: <BR>
(一)煽动抗拒、破坏宪法和法律、行政法规实施的; <BR>
(二)煽动颠覆国家政权,推翻社会主义制度的; <BR>
(三)煽动分裂国家、破坏国家统一的; <BR>
(四)煽动民族仇恨、民族歧视,破坏民族团结的; <BR>
(五)捏造或者歪曲事实,散布谣言,扰乱社会秩序的; <BR>
(六)宣扬封建迷信、淫秽、色情、赌博、暴力、凶杀、恐怖、教唆犯罪的; <BR>
(七)公然侮辱他人或者捏造事实诽谤他人的,或者进行其他恶意攻击的; <BR>
(八)损害国家机关信誉的; <BR>
(九)其他违反宪法和法律行政法规的; <BR>
(十)进行商业广告行为的。 <BR>
二、互相尊重,对自己的言论和行为负责。</TD>
</TR>
<TR></TR>
<TR></TR>
<TR></TR>
<TR>
<TD style="HEIGHT: 8px; TEXT-ALIGN: center" colSpan=4><INPUT id=Button1 style="FONT-SIZE: 9pt" type=submit value=同意以上条款 name=Button1 onClick=