| 订阅 | 在线投稿
分享
 
 
当前位置: 王朝网络 >> php >> PHP+TEXT liu yan ben ( wu )

PHP+TEXT liu yan ben ( wu )

2008-12-28 07:39:44 编辑來源:互联网 评论
 
 
 
本文为【PHP+TEXT留言本(五)】的拼音翻译版
  xian zai wo men lai jiang yi xia reply.php de dai ma :
  ---------------------------------
  //reply.php
  <?
  function check_strlen_long($txt)
  {
  $len=strlen($txt);
  $count=0;
  for ($i=0;$i<$len;$i++)
  {
  if (ord($txt[$i])<128)
  { $count=$count+1;}
  if (ord($txt[$i])==10 or ord($txt[$i])==32)
  {$count=0;}
  if ($count>=60)
  {
  $txt[$i]="n";
  $count=0;
  }
  }
  return $txt;
  }
  function encode ($txt)
  {
  $txt=strip_tags($txt);
  $txt=htmlspecialchars($txt);
  $message=StripSlashes($txt);
  return $message;
  }
  $content=file("guest.txt");
  $disptext=$content[$record-1];
  if ($job=="addreply" and $replyname!="" and $replycontent!="")
  {
  $content=file("guest.txt");
  $count=count($content);
  $time = date(Y nian m yue d ri H xiao shi i fen );
  $ip=$REMOTE_ADDR;
  $replycontent=StripSlashes($replycontent);
  $replyname=encode($replyname);
  $replycontent=htmlspecialchars($replycontent);
  $replycontent=check_strlen_long($replycontent);
  $replycontent=nl2br($replycontent);
  $replycontent=ereg_replace(chr(10),"",$replycontent);
  $content[$record-1]=substr($content[$record-1],0,strlen($content[$i])-1); $content[$record-1]=$content[$record-1]."<!--reply><tr><td colspan=4><ul><font color=#AB00E1> hui fu nei rong :</font><br>".$replycontent."<br> hui fu ren da ming :".$replyname."<br><font color=#CC33FF> shi jian :$time lai zi :$ip</font></ul><hr size=1 color=blue></td></tr>n";
  $fp=fopen("guest.txt","w");
  for ($i=0;$i<$count;$i++)
  {
   fputs($fp,$content[$i],strlen($content[$i]));
  }
  echo "<meta http-equiv=Refresh content=1;url=guest.php>";
  exit;
  }
  ?>
  <title>zihanonline</title>
  <style>
  <!--
  A:link {text-decoration: none ; color:0000ff}
  A:visited {text-decoration: none; color:004080}
  A:active {text-decoration: none}
  A:hover {text-decoration: underline; color:ff0000}
  BODY {FONT-SIZE: 10p}
  TH {FONT-SIZE: 10pt}
  TD {FONT-SIZE: 10pt}
  -->
  </style>
  <body bgcolor="#FFFFFF" background="back.gif">
  <div align=center >
  <? include('head.htm');?>
  <table border= 1 width= 65% height= 169 cellpadding="8" cellspacing="0" bordercolor="#E3E3E3" >
   <form method= POST action=reply.php >
   <?
   if ($Submit)
   {
   if ($replyname=="" or $replycontent=="")
   {
   echo"<tr align=left valign=middle bgcolor=#F0F0F0> ";
   echo"<td width= 100% height= 31 > ";
   echo "<font color=red> chu cuo le </font> hui fu ren xing ming he hui fu nei rong bi tian -www.devdao.com!";
   echo"</td>";
   echo"</tr>";
   }
   }
   ?>
   <? echo $disptext ?>
   <tr align="left" valign="middle" bgcolor="#F0F0F0">
   <td width= 100% height= 31 bgcolor="#FFFFFF" > hui fu da ming
   <input type= text name= replyname size= 20 >
   </td>
   </tr>
   <tr valign="middle">
   <td width= 100% height= 26 align= left bgcolor="#f0f0f0" >
   <p> hui fu nei rong </p>
   </td>
   </tr>
   <tr align="center">
   <td width= 100% height= 52 valign= top bgcolor="#FFFFFF" >
   <textarea rows= 6 name= replycontent cols= 46 wrap="VIRTUAL" ></textarea>
   </td>
   </tr>
   <tr valign="middle" align="center" bgcolor="#F0F0F0">
   <td width= 100% height= 14 bgcolor="#f0f0f0" >
   <input type=hidden name=job value=addreply>
   <input type=hidden name=record value=<? echo $record ?>>
   <input type= submit value= ti jiao name=Submit >
   &nbsp;&nbsp;&nbsp;
   <input type=reset value= chong xie name= B2 >
   </td>
   </tr>
   </form>
   </table>
   <?include('bottom.htm');?>
  </div>
  </body>
  </html>
  ------------------
   dao ci wei zhi ,php de dai ma wo men yi jing xie wan , sheng xia de shi nin yao zuo yi ge liu yan ben de ben tou he di bu nin ke yi she ji ren he de yang shi . bu guo ji de zai ben tou shang mian yao you zhi shao 3 ge lian jie : cha kan fan hui zhu ye fa you jian . zhe yang nin de liu yan ben xi tong cai suan wan zheng . bu guo you yu zhe shi yi wen ben de liu yan ben , suo yi nin bu yong dan xin shu ju ku de wen ti , nin zhi yao zai xie yi ge guest.txt de wen jian jiu wan zheng le . sui ran zhe ge liu yan ben mei you mysql deng deng , ke shi gong neng reng ran bu cuo . er qie shi wan quan shu yu nin zi ji de liu yan ben . hao le , xia yi jie wo men jiang wei nin jiang shu guest.txt de jian li he shang chuan liu yan ben de ji ge chong yao bu zhou .
  wei wan dai xu ...【原文】【汉音对照
 
 
 
 
 
 
 
 
 
日版宠物情人插曲《Winding Road》歌词

日版宠物情人2017的插曲,很带节奏感,日语的,女生唱的。 最后听见是在第8集的时候女主手割伤了,然后男主用嘴帮她吸了一下,插曲就出来了。 歌手:Def...

兄弟共妻,我成了他们夜里的美食

老钟家的两个儿子很特别,就是跟其他的人不太一样,魔一般的执着。兄弟俩都到了要结婚的年龄了,不管自家老爹怎么磨破嘴皮子,兄弟俩说不娶就不娶,老父母为兄弟两操碎了心...

如何磨出破洞牛仔裤?牛仔裤怎么剪破洞?

把牛仔裤磨出有线的破洞 1、具体工具就是磨脚石,下面垫一个硬物,然后用磨脚石一直磨一直磨,到把那块磨薄了,用手撕开就好了。出来的洞啊很自然的。需要猫须的话调几...

我就是扫描下图得到了敬业福和爱国福

先来看下敬业福和爱国福 今年春节,支付宝再次推出了“五福红包”活动,表示要“把欠大家的敬业福都还给大家”。 今天该活动正式启动,和去年一样,需要收集“五福”...

冰箱异味产生的原因和臭味去除的方法

有时候我们打开冰箱就会闻到一股异味,冰箱里的这种异味是因为一些物质发出的气味的混合体,闻起来让人恶心。 产生这些异味的主要原因有以下几点。 1、很多人有这种习...

 
 
xian zai wo men lai jiang yi xia reply.php de dai ma : --------------------------------- //reply.php <? function check_strlen_long($txt) { $len=strlen($txt); $count=0; for ($i=0;$i<$len;$i++) { if (ord($txt[$i])<128) { $count=$count+1;} if (ord($txt[$i])==10 or ord($txt[$i])==32) {$count=0;} if ($count>=60) { $txt[$i]="n"; $count=0; } } return $txt; } function encode ($txt) { $txt=strip_tags($txt); $txt=htmlspecialchars($txt); $message=StripSlashes($txt); return $message; } $content=file("guest.txt"); $disptext=$content[$record-1]; if ($job=="addreply" and $replyname!="" and $replycontent!="") { $content=file("guest.txt"); $count=count($content); $time = date(Y nian m yue d ri H xiao shi i fen ); $ip=$REMOTE_ADDR; $replycontent=StripSlashes($replycontent); $replyname=encode($replyname); $replycontent=htmlspecialchars($replycontent); $replycontent=check_strlen_long($replycontent); $replycontent=nl2br($replycontent); $replycontent=ereg_replace(chr(10),"",$replycontent); $content[$record-1]=substr($content[$record-1],0,strlen($content[$i])-1); $content[$record-1]=$content[$record-1]."<!--reply><tr><td colspan=4><ul><font color=#AB00E1> hui fu nei rong :</font><br>".$replycontent."<br> hui fu ren da ming :".$replyname."<br><font color=#CC33FF> shi jian :$time lai zi :$ip</font></ul><hr size=1 color=blue></td></tr>n"; $fp=fopen("guest.txt","w"); for ($i=0;$i<$count;$i++) { fputs($fp,$content[$i],strlen($content[$i])); } echo "<meta http-equiv=Refresh content=1;url=guest.php>"; exit; } ?> <title>zihanonline</title> <style> <!-- A:link {text-decoration: none ; color:0000ff} A:visited {text-decoration: none; color:004080} A:active {text-decoration: none} A:hover {text-decoration: underline; color:ff0000} BODY {FONT-SIZE: 10p} TH {FONT-SIZE: 10pt} TD {FONT-SIZE: 10pt} --> </style> <body bgcolor="#FFFFFF" background="back.gif"> <div align=center > <? include('head.htm');?> <table border= 1 width= 65% height= 169 cellpadding="8" cellspacing="0" bordercolor="#E3E3E3" > <form method= POST action=reply.php > <? if ($Submit) { if ($replyname=="" or $replycontent=="") { echo"<tr align=left valign=middle bgcolor=#F0F0F0> "; echo"<td width= 100% height= 31 > "; echo "<font color=red> chu cuo le </font> hui fu ren xing ming he hui fu nei rong bi tian -www.devdao.com!"; echo"</td>"; echo"</tr>"; } } ?> <? echo $disptext ?> <tr align="left" valign="middle" bgcolor="#F0F0F0"> <td width= 100% height= 31 bgcolor="#FFFFFF" > hui fu da ming <input type= text name= replyname size= 20 > </td> </tr> <tr valign="middle"> <td width= 100% height= 26 align= left bgcolor="#f0f0f0" > <p> hui fu nei rong </p> </td> </tr> <tr align="center"> <td width= 100% height= 52 valign= top bgcolor="#FFFFFF" > <textarea rows= 6 name= replycontent cols= 46 wrap="VIRTUAL" ></textarea> </td> </tr> <tr valign="middle" align="center" bgcolor="#F0F0F0"> <td width= 100% height= 14 bgcolor="#f0f0f0" > <input type=hidden name=job value=addreply> <input type=hidden name=record value=<? echo $record ?>> <input type= submit value= ti jiao name=Submit > &nbsp;&nbsp;&nbsp; <input type=reset value= chong xie name= B2 > </td> </tr> </form> </table> <?include('bottom.htm');?> </div> </body> </html> ------------------ dao ci wei zhi ,php de dai ma wo men yi jing xie wan , sheng xia de shi nin yao zuo yi ge liu yan ben de ben tou he di bu nin ke yi she ji ren he de yang shi . bu guo ji de zai ben tou shang mian yao you zhi shao 3 ge lian jie : cha kan fan hui zhu ye fa you jian . zhe yang nin de liu yan ben xi tong cai suan wan zheng . bu guo you yu zhe shi yi wen ben de liu yan ben , suo yi nin bu yong dan xin shu ju ku de wen ti , nin zhi yao zai xie yi ge guest.txt de wen jian jiu wan zheng le . sui ran zhe ge liu yan ben mei you mysql deng deng , ke shi gong neng reng ran bu cuo . er qie shi wan quan shu yu nin zi ji de liu yan ben . hao le , xia yi jie wo men jiang wei nin jiang shu guest.txt de jian li he shang chuan liu yan ben de ji ge chong yao bu zhou . wei wan dai xu ...
󰈣󰈤
  免责声明:本文仅代表作者个人观点,与王朝网络无关。王朝网络登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述,其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
时尚秀气模特裴裴(8)
时尚秀气模特裴裴(7)
时尚秀气模特裴裴(6)
时尚秀气模特裴裴(5)
白墙黑瓦
广州东郊[原创]
八美至丹巴的东谷天然盆景
不一样的
 
>>返回首页<<
 
 
 为你推荐
 
 
 
 转载本文
 UBB代码 HTML代码
复制到剪贴板...
 
 热帖排行
 
 
 
 
 
©2005- 王朝网络 版权所有