南强小屋 Design By 杰米
POST.PHP发布主题的页面,发布的信息提交到OKEY.PHP中去处理。
<html>
<head>
<title>论坛发帖</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<STYLE type=text/css>
P {FONT-FAMILY: normal; FONT-SIZE: 9pt; LINE-HEIGHT: 14pt}
DIV {FONT-FAMILY: normal; FONT-SIZE: 9pt; LINE-HEIGHT: 14pt}
</STYLE>
<?
include "linkfox.inc.php";
include "info.inc.php";
?>
<LINK href="js/cpcw.css" rel=stylesheet /LINK>
</head>
<body bgcolor="#FFFFFF">
<?
$tem=$HTTP_COOKIE_VARS[FlyFoxNet]; //取COOKIE信息
$temp=explode("|",$tem);
$cookiem=$temp[0];
$useinfo=cuser($cookiem,$action);
if ($useinfo[2]=="游客") $usename=1;
?>
<table width="100%" cellpadding="4" cellspacing="0" border="0">
<tr>
<td height="40" rowspan="2" width="60%">
<div align="right"></div>
<div align="right"></div>
</td>
<td height="20" width="10%"> </td>
<td height="20" width="10%"> </td>
<td height="20" width="10%"> </td>
<td height="20" width="10%"> </td>
</tr>
<tr>
<td height="20" width="10%">
<div align="center"><a href="reguse.php?action=xy"><img src="images/top_register.gif" width="74" height="21" border="0"></a></div>
</td>
<td height="20" width="10%">
<div align="center"><a href="useinfo.php?action=find"><img src="images/top_members.gif" width="74" height="21" border="0"></a></div>
</td>
<td height="20" width="10%"><a href="useinfo.php?action=edit"><img src="images/top_profile.gif" width="74" height="21" border="0"></a></td>
<td height="20" width="10%"><a href="okey.php?d=q"><img src="images/top_logout.gif" width="74" height="21" border="0"></a></td>
</tr>
<tr>
<td height="20">
<div align="left">当前位置:<font color="#0000FF">狐网─>狐网论坛─>发布论题</font> <? echo "<font color='00dd00'>".$useinfo[2]."</font>"; ?></div>
</td>
<td height="20">
<div align="center"><a href="foxbbs.php"><img src="images/index.gif" width="70" height="20" border="0" align="middle"></a></div>
</td>
<td height="20" width="10%">
<div align="center"><a href="superuse.php"><img src="images/super.gif" width="70" height="20" border="0" align="middle"></a></div>
</td>
<td height="20" width="10%">
<div align="center"><a href="reguse.php?action=xy"><img src="images/dl.gif" width="70" height="20" border="0" align="middle"></a></div>
</td>
<td height="20" width="10%">
<div align="center"><a href="../index.php"><img src="images/fox.gif" width="70" height="20" border="0" align="middle"></a></div>
</td>
</tr>
</table>
<script language="JavaScript"> //这段JS用来检查表单内信息状态,是不是有点眼熟?呵呵……OSO上CUT下来的了。
<!--
var submitcount=0;
function checkSubmit() {
if (submitcount == 0) {
submitcount++;
return true;
} else {
if (submitcount>0){
alert("帖子已成功提交了,别急,等等!");
return false;
}
}
}
function check_com(){
if(document.form.title.value.length ==0){
submitcount--;
alert("主题不能为空!快填上吧!");
return false;
}
if(document.form.message.value.length == 0){
submitcount--;
alert("OH!SORRY!加贴内容不能为空!");
return false;
}
return true;
}
//-->
</script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#009999">
<td height="20"><div align='center'><font color="ffffff">
<? //在前面检查是否用户时给$USEINFO[0]赋了用户信息。
if ($useinfo[0]) echo "<font color='00ff00'>[".$useinfo[2]."]</font> 你好!请在下面填写你的贴子。";
else echo "<font color='00ff00'>".$useinfo[2]."</font>你好,请先登录,再发帖,如果你还未注册,请先注册吧!";
?></font></div>
</td>
</tr>
<tr>
<td height="20"> </td>
</tr>
<tr>
<td height="20" class="bott">
<table width="65%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="100">
<div align="left">
<form name="form" method="post" onSubmit="return check_com()" ACTION='okey.php'>
<? if ($usename==1) //前面检查时如果没找到信息,则给$usename赋值为1,这里,用来判断是否需要用户身份校验。
{
echo "用户名:<input style='BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #000000 1px dashed; BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed; BORDER-TOP: #000000 1px dashed; type='text' name='username' maxlength='8' size='20'> 如果你还未注册,就来<a href='reguse.php?action=xy'>这里注册</a><br>";
echo "密 码:<input style='BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #000000 1px dashed; BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed; BORDER-TOP: #000000 1px dashed; type='password' name='userpass' size='20' maxlength='8'> 忘了密码来这里<a href='useinfo.php?c=pass'>取回密码</a>!<p>";
}
?>
<div align="center">主 题:<input style="BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #000000 1px dashed; BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed; BORDER-TOP: #000000 1px dashed;" type="text" name="title" size="40" maxlength="20"></div><br>
<div align="center">帖子内容<br>
<textarea style="BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #000000 1px dashed; BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed; BORDER-TOP: #000000 1px dashed;" name="message" wrap="VIRTUAL" cols="75" rows="10"></textarea>
<input type="submit" class="bott" name="Submit" value="好了!提交" onClick="return checkSubmit()"> <input type="reset" class="bott" name="Submit2" value="擦了!重写">
</div>
</form>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="#009999">
<td height="20"> </td>
</tr>
</table>
</body>
</html>
<html>
<head>
<title>论坛发帖</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<STYLE type=text/css>
P {FONT-FAMILY: normal; FONT-SIZE: 9pt; LINE-HEIGHT: 14pt}
DIV {FONT-FAMILY: normal; FONT-SIZE: 9pt; LINE-HEIGHT: 14pt}
</STYLE>
<?
include "linkfox.inc.php";
include "info.inc.php";
?>
<LINK href="js/cpcw.css" rel=stylesheet /LINK>
</head>
<body bgcolor="#FFFFFF">
<?
$tem=$HTTP_COOKIE_VARS[FlyFoxNet]; //取COOKIE信息
$temp=explode("|",$tem);
$cookiem=$temp[0];
$useinfo=cuser($cookiem,$action);
if ($useinfo[2]=="游客") $usename=1;
?>
<table width="100%" cellpadding="4" cellspacing="0" border="0">
<tr>
<td height="40" rowspan="2" width="60%">
<div align="right"></div>
<div align="right"></div>
</td>
<td height="20" width="10%"> </td>
<td height="20" width="10%"> </td>
<td height="20" width="10%"> </td>
<td height="20" width="10%"> </td>
</tr>
<tr>
<td height="20" width="10%">
<div align="center"><a href="reguse.php?action=xy"><img src="images/top_register.gif" width="74" height="21" border="0"></a></div>
</td>
<td height="20" width="10%">
<div align="center"><a href="useinfo.php?action=find"><img src="images/top_members.gif" width="74" height="21" border="0"></a></div>
</td>
<td height="20" width="10%"><a href="useinfo.php?action=edit"><img src="images/top_profile.gif" width="74" height="21" border="0"></a></td>
<td height="20" width="10%"><a href="okey.php?d=q"><img src="images/top_logout.gif" width="74" height="21" border="0"></a></td>
</tr>
<tr>
<td height="20">
<div align="left">当前位置:<font color="#0000FF">狐网─>狐网论坛─>发布论题</font> <? echo "<font color='00dd00'>".$useinfo[2]."</font>"; ?></div>
</td>
<td height="20">
<div align="center"><a href="foxbbs.php"><img src="images/index.gif" width="70" height="20" border="0" align="middle"></a></div>
</td>
<td height="20" width="10%">
<div align="center"><a href="superuse.php"><img src="images/super.gif" width="70" height="20" border="0" align="middle"></a></div>
</td>
<td height="20" width="10%">
<div align="center"><a href="reguse.php?action=xy"><img src="images/dl.gif" width="70" height="20" border="0" align="middle"></a></div>
</td>
<td height="20" width="10%">
<div align="center"><a href="../index.php"><img src="images/fox.gif" width="70" height="20" border="0" align="middle"></a></div>
</td>
</tr>
</table>
<script language="JavaScript"> //这段JS用来检查表单内信息状态,是不是有点眼熟?呵呵……OSO上CUT下来的了。
<!--
var submitcount=0;
function checkSubmit() {
if (submitcount == 0) {
submitcount++;
return true;
} else {
if (submitcount>0){
alert("帖子已成功提交了,别急,等等!");
return false;
}
}
}
function check_com(){
if(document.form.title.value.length ==0){
submitcount--;
alert("主题不能为空!快填上吧!");
return false;
}
if(document.form.message.value.length == 0){
submitcount--;
alert("OH!SORRY!加贴内容不能为空!");
return false;
}
return true;
}
//-->
</script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#009999">
<td height="20"><div align='center'><font color="ffffff">
<? //在前面检查是否用户时给$USEINFO[0]赋了用户信息。
if ($useinfo[0]) echo "<font color='00ff00'>[".$useinfo[2]."]</font> 你好!请在下面填写你的贴子。";
else echo "<font color='00ff00'>".$useinfo[2]."</font>你好,请先登录,再发帖,如果你还未注册,请先注册吧!";
?></font></div>
</td>
</tr>
<tr>
<td height="20"> </td>
</tr>
<tr>
<td height="20" class="bott">
<table width="65%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="100">
<div align="left">
<form name="form" method="post" onSubmit="return check_com()" ACTION='okey.php'>
<? if ($usename==1) //前面检查时如果没找到信息,则给$usename赋值为1,这里,用来判断是否需要用户身份校验。
{
echo "用户名:<input style='BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #000000 1px dashed; BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed; BORDER-TOP: #000000 1px dashed; type='text' name='username' maxlength='8' size='20'> 如果你还未注册,就来<a href='reguse.php?action=xy'>这里注册</a><br>";
echo "密 码:<input style='BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #000000 1px dashed; BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed; BORDER-TOP: #000000 1px dashed; type='password' name='userpass' size='20' maxlength='8'> 忘了密码来这里<a href='useinfo.php?c=pass'>取回密码</a>!<p>";
}
?>
<div align="center">主 题:<input style="BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #000000 1px dashed; BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed; BORDER-TOP: #000000 1px dashed;" type="text" name="title" size="40" maxlength="20"></div><br>
<div align="center">帖子内容<br>
<textarea style="BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #000000 1px dashed; BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed; BORDER-TOP: #000000 1px dashed;" name="message" wrap="VIRTUAL" cols="75" rows="10"></textarea>
<input type="submit" class="bott" name="Submit" value="好了!提交" onClick="return checkSubmit()"> <input type="reset" class="bott" name="Submit2" value="擦了!重写">
</div>
</form>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="#009999">
<td height="20"> </td>
</tr>
</table>
</body>
</html>
南强小屋 Design By 杰米
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
南强小屋 Design By 杰米
暂无我的论坛源代码(四)的评论...
稳了!魔兽国服回归的3条重磅消息!官宣时间再确认!
昨天有一位朋友在大神群里分享,自己亚服账号被封号之后居然弹出了国服的封号信息对话框。
这里面让他访问的是一个国服的战网网址,com.cn和后面的zh都非常明白地表明这就是国服战网。
而他在复制这个网址并且进行登录之后,确实是网易的网址,也就是我们熟悉的停服之后国服发布的暴雪游戏产品运营到期开放退款的说明。这是一件比较奇怪的事情,因为以前都没有出现这样的情况,现在突然提示跳转到国服战网的网址,是不是说明了简体中文客户端已经开始进行更新了呢?