澳门新葡萄京官网注册我的论坛源代码(六)

通过ODBC连接的SQL SERVER实例一 ? $connection =
odbc_connect(“mydata”,”userid”,”passwd”); $query = “select * from
tab_1 whereno0” ; $result = odbc_do($connection,$query) ; print “table
border=1 width=100% id=tab1 cellPadding=1 cellSpacing=0align=top
bordercolorlight=#008000 bordercolordark=#008000”;
while(odbc_fetch_into($result,$fields)) { print “tr”; for ($i = 21; $i
= 31 ; $i ++){ print “td width=6%input style=BACKGROUND-COLOR: #ffffff;
BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #ffffff 1px solid;
BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #ffffff1px solid;
BORDER-BOTTOM: #ffffff 1px solid; COLOR: #000000; FONT-SIZE: 9ptsize=7
type=textname=text$i value=$temp”; } } print “/table”;
odbc_close($connection); ?

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卡塔尔==161卡塔尔国//第壹位是还是不是全角空格
$mess=$mess.$oldmess[$i]澳门新葡萄京官网注册,; else $mess=$mess. .trim($oldmess[$i]); }
return $mess; } function mesput($query,$use,$id){
$req=mysql_query($query卡塔尔国; if ($reqState of Qatar { echo script language=’JavaScript’
alert(‘多谢你的过来!系统将回来论题!’State of Qatar; /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==ddState of Qatar//假若是援用回复,加上原来的书文内容 { $messages=font
color=’999999′.$mess.div
align=’center’★原作……★……引用★/div/fontbr.$messages; }
$fp=fputs($fo,$messagesState of Qatar;
$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,$idState of Qatar; } else { echo script
language=’JavaScript’ alert(‘数据库错误:104号’卡塔尔(قطر‎; /script; } } function
gr($ft,$message,$youname,$youmail,$youoicq,$youweb,$youaddr,$youbq,$id,$use,$mess,$c卡塔尔(قطر‎//非注册用户{ if (!uinfo($youmail,mail卡塔尔国||strlen($youmail卡塔尔国12State of Qatar//校验MAIL { echo script
language=’JavaScript’ alert(‘请输入正确的MAIL地址!’卡塔尔(قطر‎; /script; } else
if (!uinfo($youoicq,oicq卡塔尔国||strlen($youoicq卡塔尔12卡塔尔国//校验OICQ,只可以决断是或不是数字和位数,要是有更加好的艺术就好。 { echo script
language=’JavaScript’ alert(‘请输入准确的OICQ号!’卡塔尔国; /script; } else {
if (uinfo($youweb,web卡塔尔==OK&&substr($youweb,0,3State of Qatar!=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_ADD君越State of Qatar;
$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,$messages卡塔尔(قطر‎; $query=update foxbbs set
hfnum=hfnum+1,hfname=’.$ft.’,hfusename=’.$youname.’,hfdate=’.$time.’
where id=’.$id.’; mesput($query,$use,$id卡塔尔(قطر‎; } } ? /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
($usename卡塔尔国gr($ft,$message,$youname,$youmail,$youoicq,$youweb,$youaddr,$youbq,$id,$use,$mess,$c卡塔尔;
else usehf($message,$useinfo,$id,$use,$ft,$mess,$cState of Qatar; } } else echo
script language=’JavaScript’
alert(‘张开文件漏洞超多!只怕服务器忙,请稍候再试!’State of Qatar; /script; ? 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=10% 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=十分一 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 (submitcount0卡塔尔(قطر‎{
alert(帖子已成功交付了,别急,等等!卡塔尔国; return false; } } } function
check_com(卡塔尔国{ if(document.form.youname.value.length ==0卡塔尔国{ submitcount–;
alert(名字不可能为空!快填上吧!State of Qatar; return false; }
if(document.form.youmail.value.length ==0卡塔尔{ submitcount–;
alert(EMAIL不可能为空!快填上吗!State of Qatar; 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(卡塔尔(قطر‎ method=postdiv align=center ? if
($usename卡塔尔国//不是注册顾客就显示输入框输入旅客消息。 { echo 你的芳名:input
onFocus=’this.select(卡塔尔国’ style=’BACKGROUND-COLO奥迪Q5: #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-COLOENVISION: #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-COLO奥迪Q7: #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-COLOEvoque: #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-COLO陆风X8: #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

发表评论

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