澳门新葡萄京官网首页我的论坛源代码(十)

repal.php回复用的页面,因为回复能够不需即便客户,所以没加客商地点校验
html head title回复论题:? echo $zt;?/title meta 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 LINK href=js/cpcw.css rel=stylesheet /LINK
?php include linkfox.inc.php;//包蕴进文件 include info.inc.php; function
yy($f卡塔尔 { $oldmess=@file($f卡塔尔(قطر‎;//援用原来的文章管理 for
($i=0;$icount($oldmess卡塔尔国;$i++卡塔尔(قطر‎ { if
(ord(substr($oldmess[$i],0,1State of Qatar卡塔尔国==161State of Qatar//首个人是不是全角空格
$mess=$mess.$oldmess[$i]; else $mess=$mess. .trim($oldmess[$i]); }
return $mess; } function mesput($query,$use,$id){
$req=mysql_query($query卡塔尔国; if ($req卡塔尔国 { echo script language=’JavaScript’
alert(‘多谢你的死灰复然!系统将赶回论题!’卡塔尔; /script; echo script
language=’JavaScript’
javascript:location.href=’dispbbs.php?id=.$id.&use=.$use.’; /script;;
echo div align=’center’a
href=’dispbbs.php?id=.$id.&use=.$use.’假诺系统尚未影响,请点击/a/a; }
else echoscript language=’JavaScript’ alert(‘写入失败!’卡塔尔; /script; }
function
usehf($message,$useinfo,$id,$use,$ft,$mess,$c卡塔尔(قطر‎//客户回复就一贯从表里调出客商消息{ $query=select * from useinfo where usename=’.$useinfo[0].’;
$req=mysql_query($query); if ($req) {
$useinfo=mysql_fetch_array($req); $fo=fopen($ft,a);
$message=str_replace(,,str_replace(,,$message));
$message=nl2br($message); $gip=getenv(REMOTE_ADDR);
$messages=$message.ㄞㄚㄓ.$useinfo[2].ㄞㄚㄓ.$useinfo[3].ㄞㄚㄓ.$useinfo[9].ㄞㄚㄓ.$useinfo[8].ㄞㄚㄓ.$useinfo[14].ㄞㄚㄓ.$useinfo[11].ㄞㄚㄓ.$time.ㄞㄚㄓ.$gip.δεζ;
if($c==dd卡塔尔(قطر‎//纵然是援用回复,加上原著内容 { $messages=font
color=’999999′.$mess.div
align=’center’★原版的书文……★……援引★/div/fontbr.$messages; }
$fp=fputs($fo,$messages卡塔尔;
$time=date(Y年n月j日G时i分卡塔尔;//主题回复数加一,覆盖上二次复人与时间
$query=update foxbbs set
hfnum=hfnum+1,hfname=’.$ft.’,hfusename=’.$useinfo[2].’,hfdate=’.$time.’
where id=’.$id.’; mesput($query,$use,$id卡塔尔(قطر‎; } else { echo script
language=’JavaScript’ alert(‘数据库错误:104号’State of Qatar; /script; } } function
gr($ft,$message,$youname,$youmail,$youoicq,$youweb,$youaddr,$youbq,$id,$use,$mess,$c卡塔尔(قطر‎//非注册客商{ if (!uinfo($youmail,mail卡塔尔||strlen($youmail卡塔尔国12卡塔尔//校验MAIL { echo script
language=’JavaScript’ alert(‘请输入正确的MAIL地址!’State of Qatar; /script; } else
if (!uinfo($youoicq,oicq卡塔尔国||strlen($youoicqState of Qatar12卡塔尔(قطر‎//校验OICQ,只好剖断是或不是数字和位数,如若有越来越好的艺术就好。 { echo script
language=’JavaScript’ alert(‘请输入精确的OICQ号!’卡塔尔国; /script; } else {
if (uinfo($youweb,webState of Qatar==OK&&substr($youweb,0,3卡塔尔国!=htt卡塔尔(قطر‎ $youweb=$youweb;
else if (uinfo($youweb,web卡塔尔==OK&&substr($youweb,0,3卡塔尔(قطر‎==htt卡塔尔(قطر‎$youweb=$youweb; else $youweb=不告知您;
$time=date(Y年n月j日G时i分卡塔尔国;//取当今日子
$message=str_replace(,,str_replace(,,$message));
$message=nl2br($message); $gip=getenv(REMOTE_ADDGL450卡塔尔(قطر‎;
$messages=$message.ㄞㄚㄓ.$youname.ㄞㄚㄓ.$youoicq.ㄞㄚㄓ.$youweb.ㄞㄚㄓ.$youmail.ㄞㄚㄓ.$youbq.ㄞㄚㄓ.$youaddr.ㄞㄚㄓ.$time.ㄞㄚㄓ.$gip.δεζ;
if($c==dd卡塔尔(قطر‎//借使是引用回复 { $messages=font color=’999999′.$mess.div
align=’center’★原作……★……援用★/div/fontbr.$messages; } $fo=fopen($ft,a卡塔尔(قطر‎;
$fp=fputs($fo,$messagesState of Qatar; $query=update foxbbs set
hfnum=hfnum+1,hfname=’.$ft.’,hfusename=’.$youname.’,hfdate=’.$time.’
where id=’.$id.’; mesput($query,$use,$idState of Qatar; } } ? /head body
bgcolor=#FFFFFF ? $tem=$HTTP_COOKIE_VARS[FlyFoxNet];
$temp=explode(|,$tem); $cookiem=$temp[0];
$useinfo=cuser($cookiem,$action); if
(!$useinfo[0]){$useinfo[2]=游客; $usename=1;} $query=select mesname
from foxbbs where id=’.$id.’; $req=mysql_query($query); if ($req) {
$f=mysql_fetch_array($req); $mess=yy($f[0]); if
($message&&$action=add) { $ft=foxbbs/.$f[0]..bbs; if
(ord(substr($message,0,1))!=161) $message= .$message; for
($i=0;$i10;$i++) { if ($bq[$i]) $youbq=$bq[$i]; } if
($usenameState of Qatargr($ft,$message,$youname,$youmail,$youoicq,$youweb,$youaddr,$youbq,$id,$use,$mess,$cState of Qatar;
else usehf($message,$useinfo,$id,$use,$ft,$mess,$c卡塔尔国; } } else echo
script language=’JavaScript’
alert(‘展开文件破绽相当多!可能服务器忙,请稍候再试!’State of Qatar; /script; ? table
width=百分百 cellpadding=4 cellspacing=0 border=0 tr td height=20 div
align=right/div /td td height=20 width=75/td td height=20 width=75/td td
height=20 width=75/td td height=20 width=75/td /tr tr td height=20 div
align=right/div /td td height=20 width=百分之十 div align=centera
href=reguse.php?action=xyimg src=images/top_register.gif width=74
height=21 border=0/a/div /td td height=20 width=10% div align=centera
href=useinfo.php?action=findimg src=images/top_members.gif width=74
height=21 border=0/a/div /td td height=20 width=10%a
href=useinfo.php?action=editimg src=images/top_profile.gif width=74
height=21 border=0/a/td td height=20 width=10%a href=okey.php?d=qimg
src=images/top_logout.gif width=74 height=21 border=0/a/td /tr tr td
height=20 div align=left当前职分:font
color=#0000FF狐网─狐网论坛─回复核心:?echo font
color=’ff0000′.$zt./font;?/font/div /td tddiv align=centera
href=foxbbs.phpimg src=images/index.gif width=70 height=20 border=0
align=middle/a/div /td td height=20 width=10% div align=centera
href=superuse.phpimg src=images/super.gif width=70 height=20 border=0
align=middle/a/div /td td height=20 width=一成 div align=centera
href=reguse.php?action=xyimg src=images/dl.gif width=70 height=20
border=0 align=middle/a/div /td td height=20 width=10% div align=centera
href=../index.phpimg src=images/fox.gif width=70 height=20 border=0
align=middle/a/div /td/tr /table script language=JavaScript !– var
submitcount=0; function checkSubmit(卡塔尔国 { if (submitcount == 0卡塔尔(قطر‎ {
submitcount++; return true; } else { if (submitcount0State of Qatar{
alert(帖子已成功交付了,别急,等等!卡塔尔; return false; } } } function
check_com(State of Qatar{ if(document.form.youname.value.length ==0卡塔尔国{ submitcount–;
alert(名字无法为空!快填上呢!卡塔尔; return false; }
if(document.form.youmail.value.length ==0卡塔尔{ submitcount–;
alert(EMAIL无法为空!快填上啊!卡塔尔(قطر‎; return false; }
if(document.form.youoicq.value.length ==0State of Qatar{ submitcount–;
alert(OICQ不可能为空!快填上呢!卡塔尔(قطر‎; return false; }
if(document.form.message.value.length == 0卡塔尔{ submitcount–;
alert(内容不可能为空!卡塔尔(قطر‎; return false; } return true; } //– /script table
width=’八成’ border=’0′ cellspacing=’0′ cellpadding=’0′
bgcolor=’#000000′ align=’center’ tr td table width=’100%’ border=’0′
cellspacing=’0′ cellpadding=’0′ tr bgcolor=’#006699′ tddiv
align=centerfont color=ffffff? echo font
color=’00ff00′.$useinfo[2]./font; ? 你正在苏醒的核心是:[? echo $zt;
?]/font/div/td /tr tr bgcolor=’#eeeeee’ td form name=form
onSubmit=return check_com(State of Qatar method=postdiv align=center ? if
($usename卡塔尔国//不是注册客户就显示输入框输入游客音信。 { echo 你的芳名:input
onFocus=’this.select(State of Qatar’ style=’BACKGROUND-COLORAV4: #ffffff;
BORDER-BOTTOM: #000000 1px dashed; BORDER-LEFT: #000000 1px dashed;
BORDER-RIGHT: #000000 1px dashed; BORDER-TOP: #000000 1px dashed;’
type=’text’ name=’youname’ size=’30’ maxlength=’30’ value=’.$youname.’;
echo OICQ:input onFocus=’this.select()’ 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=’youoicq’ size=’16’ maxlength=’16’
value=’.$youoicq.’br; echo 来自哪个地方:input onFocus=’this.select(State of Qatar’
style=’BACKGROUND-COLOMurano: #ffffff; BORDER-BOTTOM: #000000 1px dashed;
BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed;
BORDER-TOP: #000000 1px dashed;’ type=’text’ name=’youaddr’ size=’55’
value=’.$youaddr.’br; echo 电子信箱:input onFocus=’this.select(卡塔尔(قطر‎’
style=’BACKGROUND-COLORAV4: #ffffff; BORDER-BOTTOM: #000000 1px dashed;
BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed;
BORDER-TOP: #000000 1px dashed;’ type=’text’ name=’youmail’ size=’55’
value=’.$youmail.’br; echo 个人主页:input onFocus=’this.select(卡塔尔(قطر‎’
style=’BACKGROUND-COLO普拉多: #ffffff; BORDER-BOTTOM: #000000 1px dashed;
BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed;
BORDER-TOP: #000000 1px dashed;’ type=’text’ name=’youweb’ size=’55’
value=’.$youweb.’br; echo 表情brinput type=’radio’ name=’bq[0]’
value=’a’img src=’images/a.gif’input type=’radio’ name=’bq[1]’
value=’1’img src=’images/1.gif’; echo input type=’radio’ name=’bq[2]’
value=’2’img src=’images/2.gif’input type=’radio’ name=’bq[3]’
value=’3’img src=’images/3.gif’; echo input type=’radio’ name=’bq[4]’
value=’4’img src=’images/4.gif’input type=’radio’ name=’bq[5]’
value=’5’img src=’images/5.gif’; echo input type=’radio’ name=’bq[6]’
value=’6’img src=’images/6.gif’input type=’radio’ name=’bq[7]’
value=’7’img src=’images/7.gif’; echo input type=’radio’ name=’bq[8]’
value=’8’img src=’images/8.gif’input type=’radio’ name=’bq[9]’
value=’9’img src=’images/9.gif’br; } echo div align=’center’回复内容br;
echo textarea onFocus=’this.select(State of Qatar’ style=’BACKGROUND-COLOENCORE: #ffffff;
BORDER-BOTTOM: #000000 1px dashed; BORDER-LEFT: #000000 1px dashed;
BORDER-RIGHT: #000000 1px dashed; BORDER-TOP: #000000 1px dashed;’
name=’message’ cols=’64’ rows=’5′ wrap=’VIRTUAL’.$message./textareabr; ?
input type=submit name=Submit value=确定 onClick=return checkSubmit()
input type=reset name=Submit2 value=重写/div/div/form /td /tr tr
bgcolor=’#eeeeee’//假若是引用原来的小说就显示 tddiv align=center? if ($c==dd卡塔尔echo 原来的文章如下brdiv align=’left’.$mess;?/div/td /tr /table /td /tr /table
/body /html

体现主旨内容页面。 HTML HEAD TITLE狐网论坛/TITLE 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 LINK
href=js/cpcw.css rel=stylesheet /LINK ?php include linkfox.inc.php;
include info.inc.php; ? /HEAD body bgcolor=#FFFFFF text=#000000 id=all
? $query=select * from foxbbs where
id=’.$id.’;//这些ID是从面也正是FOXBBS.PHP里传过来的。
$req=mysql_query($query); if ($req) {
$bbsmes=mysql_fetch_array($req);
$djnum=$bbsmes[djnum]+1;//点击数加一 $query=update foxbbs set
djnum=’$djnum’ where id=’.$id.’; $req=mysql_query($query); }
$query=select * from useinfo where
usename=’.$bbsmes[usename].’;//从客商新闻Curry抽出发帖客户的消息$req=mysql_query($query); if ($req) {
$useinfo=mysql_fetch_array($req); switch
($useinfo[澳门新葡萄京官网首页 ,11]卡塔尔国//因为作者是用一位数字来代表客商身份 { case
($useinfo[11]==1): $useinfo[11]=会员; break; case
($useinfo[11]==2): $useinfo[11]=版主; break; case
($useinfo[11]==3): $useinfo[11]=管理员; break; case
($useinfo[11]==4): $useinfo[11]=站长; break; default:
$useinfo[11]=游客; break; } } ? table width=100% cellpadding=4
cellspacing=0 border=0 tr td height=20 div align=right/div /td td
height=20 width=75/td td height=20 width=75/td td height=20 width=75/td
td height=20 width=75/td /tr tr td height=20 div align=right/div /td td
height=20 width=75 div align=centera href=reguse.php?action=xyimg
src=images/top_register.gif width=74 height=21 border=0/a/div /td td
height=20 width=75 div align=centera href=useinfo.php?action=findimg
src=images/top_members.gif width=74 height=21 border=0/a/div /td td
height=20 width=10%a href=useinfo.php?action=useimg
src=images/top_profile.gif width=74 height=21 border=0/a/td td
height=20 width=75a href=foxbbs.php?d=qimg 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/div /td
td div align=centera href=foxbbs.phpimg src=images/index.gif width=70
height=20 border=0/a/div /td td div align=centera href=post.phpimg
src=images/newthread.gif width=70 height=20 border=0 alt=发布新帖/a/div
/td td height=20 width=一成 div align=center? echo a
href=’repal.php?action=add&id=.$id.&zt=.$bbsmes[3].&use=.$use.’img
src=’images/reply.gif’ width=’70’ height=’20’ border=’0′
alt=’回复此贴’/a; ?/div /td td height=20 width=百分之十 div align=centera
href=reguse.php?action=dlimg src=images/dl.gif width=70 height=20
border=0/a/div /td /tr /table table width=100% border=0 cellspacing=0
cellpadding=0 tr bgcolor=#000000 td colspan=2 table width=100% border=0
cellspacing=1 cellpadding=1 tr bgcolor=#009999 td width=20% div
align=centerfont color=#FFFFFF原贴小编/font/div /td td width=八成 div
align=centerfont color=#FFFFFF原 贴 内 容/font/div /td /tr tr
bgcolor=#eeeeee valign=top td width=百分之二十 div align=center
?//在客户消息Curry没寄存表情图象的门径和扩张名 echo $useinfo[2].br;
echo img src=’images/.$bbsmes[2].’.gifbr; echo $useinfo[11].p; echo
发帖数 [.$useinfo[ftnum].]br; ?/div /td td width=80%div align=left ?
$ft=foxbbs/.$bbsmes[5]..fox;//收取寄放的公文名
$message=@file($ft卡塔尔国;//读出文件内容 for ($i=0;$icount($message卡塔尔;$i++State of Qatar {
if (ord(substr($message[$i],0,1卡塔尔(قطر‎卡塔尔国==161卡塔尔//第一位是还是不是全角空格 echo
$message[$i]; else { $message[$i]= .trim($message[$i]);echo
$message[$i];//突显核心内容 } } ?/div/td /tr tr bgcolor=#009999 td
width=20% div align=leftimg src=images/posticon.gif width=14 height=11?
echo $bbsmes[4]; ?/div /td td width=80% div align=left? if
($useinfo[9]==不告知你State of Qatar echo img src=’images/email.gif’ width=’43’
height=’17’; else echo a href=’mailto:.$useinfo[8].’img
src=’images/email.gif’ width=’43’ height=’17’ alt=’给笔者发邮件’
border=’0’/a; echo a href=’.$useinfo[9].’ img src=’images/home.gif’
width=’43’ height=’17’ alt=’小编的主页’ border=’0’/a; echo a
href=’useinfo.php?action=look’img src=’images/profile.gif’ width=’43’
height=’16’ alt=’笔者的详细音信’ border=’0’/a; echo a
href=’useinfo.php?action=edit’img src=’images/edit.gif’ width=’43’
height=’17’ alt=’修正新闻’ border=’0’/a; echo a
href=’foxbbs.php?action=find&user=.$useinfo[0].’img
src=’images/find.gif’ width=’43’ height=’17’ alt=’查找该客商的所以小说’
border=’0’/a; echo a
href=’repal.php?action=add&use=.$useinfo[13].&id=.$id.&zt=.$bbsmes[3].&c=dd’img
src=’images/quote.gif’ width=’43’ height=’17’ alt=’引用该客商的作品回复’
border=’0’/a; echo a href=’#’img src=’images/ip.gif’ border=’0′
alt=’.$bbsmes[11].’/a; ? /div /td /tr /table /td /tr tr ?
$hfft=foxbbs/.substr($bbsmes[5])..bbs; if
(file_exists($hfftState of QatarState of Qatar//是不是有回复 { $tem=@file($hfft卡塔尔国;
$temp=implode(,$tem卡塔尔(قطر‎;//先把数组转换成字符串,不用加分融符
$tem=explode(δεζ,$temp卡塔尔; $num=count($tem卡塔尔国-1; for ($i=0;$i$num;$i++卡塔尔国{$x=$i+1; $temp=explode(ㄞㄚㄓ,$tem[$i]卡塔尔;//把每条回复音讯分别 if
($temp[5]0) $temp[5]=images/.$temp[5]..gif;//展现回复内容 else
$temp[5]=images/a.gif; if (!$temp[6]) $temp[6]=不想告知您; echo
trtdtable width=’百分之百’ border=’0′ cellspacing=’1′ cellpadding=’1′; echo
tr bgcolor=’#009999’td width=’20%’div align=’center’font
color=’#FFFFFF’回贴作者/font/div/td; echo td width=’十分之八’div
align=’center’font color=’#FFFFFF’回 复 内 容 (第font
color=’00ff00’NO..$x./font号)/font/div/td/tr; echo tr bgcolor=’#eeeeee’
valign=’top’td width=’20%’div align=’center’.$temp[1].brimg
src=’.$temp[5].’brOICQ:.$temp[2].br来自:.$temp[6].font
color=’#FFFFFF’/font/div/td; echo td width=’80%’div
align=’left’.$temp[0]./div/td/tr; echo tr bgcolor=’#009999’td
width=’20%’div align=’left’font color=’#FFFFFF’img
src=’images/posticon.gif’ width=’14’
height=’11’.$temp[7]./font/div/td; echo td width=’80%’div
align=’left’; echo a href=’mailto:.$temp[4].’img
src=’images/email.gif’ width=’43’ height=’17’ alt=’给我发邮件’
border=’0’/a; echo a href=’.$temp[3].’ img src=’images/home.gif’
width=’43’ height=’17’ alt=’笔者的主页’ border=’0’/a; echo a href=’#’img
src=’images/ip.gif’ border=’0′ alt=’.$temp[8].’/a; echo /div/td/tr;
echo /table/td/tr; } } ? /tr /table /body /html

reguse.inc.php管理登记客商时的音讯

<?

function regok($mess,$reginfo)       //记录成功后输出客户新闻
{
echo “<table width=’70%’ border=’0′ cellspacing=’0′ cellpadding=’0′
bgcolor=’#000000′ align=’center’>”;
echo “<tr><td><table width=’100%’ border=’0′
cellspacing=’1′ cellpadding=’1′ align=’center’
bgcolor=’#eeeeee’><tr bgcolor=’#006699′><td
colspan=’4′><div align=’center’><font
color=’ffffff’>”.$mess.”</font></div></td></tr>”;
echo “<tr ><td width=’15%’ ><div
align=’left’>ID号:</div></td><td
width=’35%’><div align=’center’><font
color=’#FF0000′>”.$reginfo[13].”</font></div></td>”;
echo “<td width=’15%’><div
align=’left’>用户:</div></td><td width=’35%’
><div align=’center’><font
color=’#FF0000′>”.$reginfo[0].”</div></td></tr>”;
echo “<tr ><td width=’15%’><div
align=’left’>密码:</div></td><td
width=’35%’><div align=’center’><font
color=’#FF0000′>”.$reginfo[1].”</font></div></td>”;
echo “<td width=’15%’><div
align=’left’>主页:</div></td><td width=’35%’
><div align=’center’><font
color=’#FF0000′>”.$reginfo[9].”</div></td></tr>”;
echo “<tr ><td width=’15%’><div
align=’left’>邮箱:</div></td><td
width=’35%’><div align=’center’><font
color=’#FF0000′>”.$reginfo[8].”</font></div></td>”;
echo “<td width=’15%’><div
align=’left’>oicq:</div></td><td
width=’35%’><div align=’center’><font
color=’#FF0000′>”.$reginfo[3].”</div></td></tr>”;
echo “<tr ><td width=’15%’><div
align=’left’>昵称:</div></td><td
width=’35%’><div align=’center’><font
color=’#FF0000′>”.$reginfo[2].”</font></div></td>”;
echo “<td width=’15%’><div
align=’left’>等级:</div></td><td
width=’35%’><div align=’center’><font
color=’#FF0000′>”.$reginfo[11].”</div></td></tr>”;
echo “<tr ><td width=’15%’><div
align=’left’>性别:</div></td><td
width=’35%’><div align=’center’><font
color=’#FF0000′>”.$reginfo[4].”</font></div></td>”;
echo “<td width=’15%’><div
align=’left’>年龄:</div></td><td
width=’35%’><div align=’center’><font
color=’#FF0000′>”.$reginfo[5].”</div></td></tr>”;
echo “<tr ><td width=’15%’><div
align=’left’>职业:</div></td><td
width=’35%’><div align=’center’><font
color=’#FF0000′>”.$reginfo[6].”</font></div></td>”;
echo “<td width=’15%’><div
align=’left’>来自:</div></td><td width=’35%’
><div align=’center’><font
color=’#FF0000′>”.$reginfo[7].”</div></td></tr>”;
echo “<tr ><td width=’15%’><div
align=’left’>新闻保密:</div></td><td
width=’35%’><div align=’center’><font
color=’#FF0000′>”.$reginfo[12].”</font></div></td>”;
echo “<td width=’15%’><div
align=’left’>签名:</div></td><td width=’35%’
><div align=’center’><font
color=’#FF0000′>”.$reginfo[10].”</div></td></tr>”;
echo “<tr ><td width=’15%’><div
align=’left’>邮件文告:</div></td><td
width=’35%’><div align=’center’><font
color=’#FF0000′>”.$reginfo[18].”</font></div></td>”;
echo “<td width=’15%’><div
align=’left’>注册时间:</div></td><td width=’35%’
><div align=’center’><font
color=’#FF0000′>”.$reginfo[15].”</div></td></tr>”;
echo “<tr ><td width=’15%’><div
align=’left’>登录时间:</div></td><td
width=’35%’><div align=’center’><font
color=’#FF0000′>”.$reginfo[16].”</font></div></td>”;
echo “<td width=’15%’><div
align=’left’>头像:</div></td><td width=’35%’
><div align=’center’><img
src=’images/”.$reginfo[14].”.gif’></div></td></tr>”;
$reginfo=$reginfo[0];
echo “<tr bgcolor=’#006699′><td colspan=’4′><div
align=’center’><a
href=’reguse.php?action=dl&use=”.$reginfo.”‘>客商登陆</a></div></td></tr>”;
echo “</table></td></tr></table>”;

}

     //检查新闻并写入记录
function
reg($usename,$usepass,$usemail,$useweb,$useni,$useoicq,$usesex,$useage,$usezy,$useaddr,$useinf,$usety,$usebq,$useqm)
{
  if ($usenameState of Qatar     //就算有客商名传入则管理   客户注册模块
    {
      if(strlen($usename)>8) return 1;
      else if(strlen($usepass)>8) return 2;
      else if(strlen($useoicq)>12) return 3;
      else if(!uinfo($usepass,pass)) return 4;
      else if(!uinfo($usename,name)) return 5;
      else if(!uinfo($useoicq,oicq)) return 6;
      else if(!uinfo($usemail,mail)) return 7;
      else
        {
          if(!$useinf) $useinf=2;
          $query=”select * from useinfo where
usename='”.$usename.”‘”;  //是还是不是业已存在客户
          $req=mysql_query($query);
          $useinfp=mysql_fetch_array($req);
          if ($useinfp[0]) return 8;
          else
            {
              $time=date(Y年n月j日G时i分);
              $useqm=nl2br($useqm卡塔尔(قطر‎;                                                                            //写入客户音讯
              $query=”insert into useinfo
(usename,usepass,usemail,useweb,useni,useoicq,usesex,useage,usezy,useaddr,useinf,usety,usebq,useqm,useattr,regdate,enddate)
values
(‘”.$usename.”‘,'”.$usepass.”‘,'”.$usemail.”‘,'”.$useweb.”‘,'”.$useni.”‘,'”.$useoicq.”‘,'”.$usesex.”‘,'”.$useage.”‘,'”.$usezy.”‘,'”.$useaddr.”‘,'”.$useinf.”‘,'”.$usety.”‘,'”.$usebq.”‘,'”.$useqm.”‘,1,now(),'”.$time.”‘)”;
              $req=mysql_query($query);
              if ($req)
                 {
                 $query=”select * from useinfo where
usename='”.$usename.”‘”;  //抽出顾客音信,并传播顾客端
                 $req=mysql_query($query);
                 $useinfo=mysql_fetch_array($req);
                 return $useinfo;
                 }
              else return 10;
            }
        }
        return 9;
    }
}

function
usemess($mess,$usename,$usemail,$useweb,$useni,$useoicq,$useaddr,$useqmState of Qatar      //消息输入表单
{
echo “<FORM METHOD=post>”;
echo “<table width=’90%’ border=’0′ cellspacing=’0′ cellpadding=’0′
bgcolor=’#000000′ align=’center’>”;
echo “<tr><td><table width=’100%’ border=’0′
cellspacing=’1′ cellpadding=’1′ align=’center’>”;
echo “<tr bgcolor=’#006699′><td colspan=’2′><font
color=’ffffff’><div align=’center’>狐网论坛客商注册—<font
color=’00ff00′>”.$mess.”</font></div></font></td></tr>”;
echo “<tr bgcolor=’#eeeeee’><td width=’40%’><div
align=’left’> 用 户 名:<font
color=’#FF0000′>七位,第一人必需是字母</FONT></div></td><td
width=’51%’><input onFocus=’this.select(卡塔尔国’
style=’BACKGROUND-COLOLAND: #ffffff; BORDER-BOTTOM: #000000 1px dashed;
BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed;
BORDER-TOP: #000000 1px dashed;’ type=’text’ name=’usename’ size=’30’
maxlength=’8′ value='”.$usename.”‘></td></tr>”;
echo “<tr bgcolor=’#eeeeee’><td width=’40%’><div
align=’left’>密  码:<font
color=’#FF0000′>陆人,数字和字母组合.</font></div></td><td
width=’十分二’><input style=’BACKGROUND-COLOCRUISER: #ffffff;
BORDER-BOTTOM: #000000 1px dashed; BORDER-LEFT: #000000 1px dashed;
BORDER-RIGHT: #000000 1px dashed; BORDER-TOP: #000000 1px dashed;’
type=’password’ name=’usepass’ size=’30’
maxlength=’8′></td></tr>”;
echo “<tr bgcolor=’#eeeeee’><td width=’十分之四’><div
align=’left’>电子信箱:<font
color=’#FF0000′>请填入真正的邮箱地址。</font></div></td><td
width=’半数’><input onFocus=’this.select(卡塔尔国’
style=’BACKGROUND-COLORubicon: #ffffff; BORDER-BOTTOM: #000000 1px dashed;
BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed;
BORDER-TOP: #000000 1px dashed;’ type=’text’ name=’usemail’ size=’50’
maxlength=’50’ value='”.$usemail.”‘></td></tr>”;
echo “<tr bgcolor=’#eeeeee’><td width=’20%’><div
align=’left’>个人主页:</div></td><td
width=’四分之一’><div align=’left’><input onFocus=’this.select(卡塔尔国’
style=’BACKGROUND-COLO索罗德: #ffffff; BORDER-BOTTOM: #000000 1px dashed;
BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed;
BORDER-TOP: #000000 1px dashed;’ type=’text’ name=’useweb’ size=’50’
maxlength=’50’
value='”.$useweb.”‘></div></td></tr>”;
echo “<tr bgcolor=’#006699′><td colspan=’2′><div
align=’center’><font
color=’#FFFFFF’>个人新闻设定</font></div></td></tr>”;
echo “<tr bgcolor=’#eeeeee’><td width=’百分之三十三’><div
align=’left’>你的别名:</div></td><td
width=’二分之一’><div align=’left’><input onFocus=’this.select(卡塔尔(قطر‎’
style=’BACKGROUND-COLO智跑: #ffffff; BORDER-BOTTOM: #000000 1px dashed;
BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed;
BORDER-TOP: #000000 1px dashed;’ type=’text’ name=’useni’ size=’30’
maxlength=’15’
value='”.$useni.”‘></div></td></tr>”;
echo “<tr bgcolor=’#eeeeee’><td width=’40%’><div
align=’left’>OICQ:</div></td><td
width=’52%’><div align=’left’><input onFocus=’this.select()’
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=’useoicq’ size=’20’
maxlength=’20’
value='”.$useoicq.”‘></div></td></tr>”;
echo “<tr bgcolor=’#eeeeee’><td width=’40%’><div
align=’left’>性  别:</div></td><td
width=’52%’><div align=’left’><select
onFocus=’this.select()’ 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=’usesex’><option value=’1′
selected>小编是男人</option><option
value=’0′>笔者是女人</option></select></div></td></tr>”;
echo “<tr bgcolor=’#eeeeee’><td width=’40%’><div
align=’left’>年  龄:</div></td><td
width=’52%’><div align=’left’><select
onFocus=’this.select()’ 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=’useage’><option
value=’14’>15岁以下</option><option value=’15’>15
岁</option><option value=’16’>16 岁</option><option
value=’17’>17 岁</option>”;
echo “<option value=’18’>18 岁</option><option
value=’19’>19 岁</option><option value=’20’ selected>20
岁</option><option value=’21’>21 岁</option><option
value=’22’>22 岁</option><option value=’23’>23
岁</option><option value=’24’>24 岁</option><option
value=’25’>25 岁</option><option value=’26’>26
岁</option><option value=’27’>27 岁</option><option
value=’28’>28 岁</option><option value=’29’>29
岁</option><option
value=’30’>30或以上</option></select></div></td></tr>”;
echo “<tr bgcolor=’#eeeeee’><td width=’40%’><div
align=’left’>职  业:</div></td><td
width=’52%’><div align=’left’><select
onFocus=’this.select()’ 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=’usezy’><option value=’5′
selected>小编是学员</option><option
value=’1′>国家公务员</option><option
value=’2′>公司雇员</option><option
value=’3′>自由专业</option><option
value=’4′>无所事事</option><option
value=’5′>不报告您</option></select></div></td></tr>”;
echo “<tr bgcolor=’#eeeeee’><td width=’四分之三’><div
align=’left’>来自何地:</div></td><td
width=’1/4′><div align=’left’><input onFocus=’this.select(State of Qatar’
style=’BACKGROUND-COLO景逸SUV: #ffffff; BORDER-BOTTOM: #000000 1px dashed;
BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed;
BORDER-TOP: #000000 1px dashed;’ type=’text’ name=’useaddr’ size=’50’
maxlength=’50’
value='”.$useaddr.”‘></div></td></tr>”;
echo “<tr bgcolor=’#006699′><td colspan=’2′><div
align=’left’></div><div align=’center’><font
color=’#FFFFFF’>参数设定</font></div></td></tr>”;
echo “<tr bgcolor=’#eeeeee’><td width=’百分之七十五’><div
align=’left’>是不是充许外人查看你的新闻:</div></td><td
width=’三分之二’><div align=’left’><input type=’radio’
name=’useinf’ value=’2′>否  <input type=’radio’ name=’useinf2′
value=’1′ checked>是</div></td></tr>”;
echo “<tr bgcolor=’#eeeeee’><td width=’五分一’
valign=’top’><div
align=’left’>个人签名档:</div></td><td
width=’四分之一’><div align=’left’><textarea
onFocus=’this.select(State of Qatar’ style=’BACKGROUND-COLO本田CR-V: #ffffff;
BORDER-BOTTOM: #000000 1px dashed; BORDER-LEFT: #000000 1px dashed;
BORDER-RIGHT: #000000 1px dashed; BORDER-TOP: #000000 1px dashed;’
name=’useqm’ cols=’40’ wrap=’VIRTUAL’
rows=’5′>”.$useqm.”</textarea></div></td></tr>”;
echo “<tr bgcolor=’#eeeeee’><td width=’60%’><div
align=’left’>是或不是同意版主或管理人给您发邮件通告:</div></td><td
width=’二分之一’><div align=’left’><input type=’radio’
name=’usety’ value=’2′>否  <input type=’radio’ name=’usee2′
value=’1′ checked>是</div></td></tr>”;
echo “<tr bgcolor=’#006699′><td colspan=’2′><div
align=’center’><font
color=’#FFFFFF’>头像设定</font></div></td></tr>”;
echo “<tr bgcolor=’#eeeeee’><td colspan=’2′><div
align=’center’><input type=’radio’ name=’bq[0]’
value=’a’><img src=’images/a.gif’ width=’15’ height=’15’
checked>  <input type=’radio’ name=’bq[1]’ value=’1′><img
src=’images/1.gif’ width=’15’ height=’15’>  <input type=’radio’
name=’bq[2]’ value=’2′><img src=’images/2.gif’ width=’15’
height=’15’>  <input type=’radio’ name=’bq[3]’
value=’3′><img src=’images/3.gif’ width=’15’ height=’15’>
 <input type=’radio’ name=’ba[4]’ value=’4′><img
src=’images/4.gif’ width=’15’ height=’15’>  ”;
echo “<input type=’radio’ name=’bq[5]’ value=’5′><img
src=’images/5.gif’ width=’15’ height=’15’>  <input type=’radio’
name=’bq[6]’ value=’6′><img src=’images/6.gif’ width=’15’
height=’15’>  <input type=’radio’ name=’ba7′
value='[7]’><img src=’images/7.gif’ width=’15’ height=’15’>
 <input type=’radio’ name=’ba[8]’ value=’8′><img
src=’images/8.gif’ width=’15’ height=’15’>  <input type=’radio’
name=’ba[9]’ value=’9′><img src=’images/9.gif’ width=’15’
height=’15’></div></td></tr>”;
echo “<tr bgcolor=’#eeeeee’><td
colspan=’2′></td></tr>”;
echo “</table></td></tr></table>”;
echo “<div align=’center’><INPUT TYPE=’HIDDEN’ NAME=’action’
VALUE=’add’><INPUT class=’bott’ TYPE=’SUBMIT’ name=’submit’
VALUE=’提 交!’><INPUT class=bott TYPE=’RESET’ NAME=’Reset’
VALUE=’重 填’></form></div>”;
}
function dlmes($mess)
{
echo “<table width=’50%’ border=’0′ cellspacing=’0′ cellpadding=’0′
bgcolor=’#000000′ align=’center’>”;
echo “<tr><td>”;
echo “<table width=’100%’ border=’0′ cellspacing=’1′ cellpadding=’1′
bgcolor=’#eeeeee’><form method=’post’>”;
echo “<tr bgcolor=’#009999′><td><div
align=’center’><font
color=’#FFFFFF’>”.$mess.”</font></div></td></tr>”;
echo “<tr><td><div align=’center’>用户名:<input
type=’text’ name=’uname’></div></td></tr>”;
echo “<tr><td><div align=’center’>密 码:<input
type=’password’ name=’upass’></div></td></tr>”;
echo “<tr><td><div align=’center’><input
type=’submit’ name=’Submit’
value=’确定’></div></td></tr>”;
echo “<tr><td><input type=’hidden’ name=’action’
value=’dl’></td></tr>”;
echo “<tr><td><div align=’center’><a
href=’useinfo.php?action=pass’>[忘记密码]</a>     <a
href=’reguse.php?action=xy’>[自家要登记]</a></div></td></tr>”;
echo “<tr bgcolor=’#009999′><td
height=’20’></td></tr>”;
echo
“</form></table></td></tr></table>”;
}
?> 

发表评论

电子邮件地址不会被公开。 必填项已用*标注