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

PHP+TEXT liu yan ben ( er )

2008-12-28 07:39:48 编辑來源:互联网 评论
 
本文为【PHP+TEXT留言本(二)】的拼音翻译版
  shang yi ci wo men yan jiu le guest.php wen jian . ju ti de wen ti huan yao qiu du zhe peng you zi ji shen ru de qu shi jian , er qie xu yao yi xie gong ju shu lai xue xi , ru guo nin yi dian php de zhi shi dou mei you , bi zhe feng quan nin jiu bu yao xiang xia kan le , bi zhe mei you tai duo de shi jian he pian fu qu zhu ju tan jiu yi ge php wen jian de yong tu he yi yi . hao de , jie xia lai wo men lai zuo edit.php zhe ge wen jian .
  -----------
  //edit.php
  <?
   if ($Submit)
   {
  if ($SavePassword=="on")
  {setcookie("TxtPassword","$TxtPassword",time()+30*24*3600);}
  else
  {setcookie("TxtPassword");}
   }
  ?>
  <html>
  <style type=text/css>
  Td {FONT-SIZE: 10pt;}
  TEXTAREA
  {
  FONT-FAMILY: " song ti ";
  FONT-SIZE: 10pt;
  }
  </style>
  <head>
  <meta http-equiv="Content-Language" content="zh-cn">
  <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  <title> xiu gai liu yan </title>
  <?
  require("sys.php");
  function readvalue($tags,$tage)
  {
  global $message,$long,$reply;
  $StrStart=strlen(strstr($message,$tags))-strlen($tags);// qu chu biao ji hou bian liang suo zai zi chuan de qi shi wei zhi .
  $StrEnd=strlen(strstr($message,$tage));
  $len=$StrStart-$StrEnd;
  $StrStart=$long-$StrStart;// qi shi zi fu .
  $StrString=substr($message,$StrStart,$len);
  return $StrString;
  }
  function save($record)
  {
  global $TxtContent,$TxtEmail,$TxtHomepage,$TxtEmail,$TxtName,$TxtFrom,$TxtReply,$REMOTE_ADDR,$guestfile;
  $content=file($guestfile,"r");
  $space = "&nbsp;";
  $time = date(Y nian m yue d ri H xiao shi i fen );
  $ip=$REMOTE_ADDR;
  $TxtReply=StripSlashes($TxtReply);
  $TxtContent=StripSlashes($TxtContent);
  $TxtContent=htmlspecialchars($TxtContent);
  $TxtContent=check_strlen_long($TxtContent);
  $TxtContent=nl2br($TxtContent);
  $Wcontent = "<tr><td><font color=#AB00E1> liu yan nei rong :</font><br><!--content>$TxtContent<!--endcontent> ";
  $Wcontent=$Wcontent."<br><font color=#6633FF> liu yan ren da ming :</font><!--name>$TxtName<!--endname> ";
  if ($TxtEmail !="")
  {$Wcontent=$Wcontent."<br><font color=#9900CC> dian zi xin xiang </font><a href="TxtEmail]$TxtEmail"."$space'mailto:$TxtEmail"><!--email>$TxtEmail<!--endemail></a>"."$space";}
  if ($TxtHomepage !="http://")
  {$Wcontent=$Wcontent."<font color=#9900CC> zhu ye :</font>$TxtHompage<a href="$TxtHomepage" target=new><!--homepage>$TxtHomepage<!--endhomepage></a>";}
  $Wcontent=$Wcontent."<br><font color=#0000FF> shi jian :$time lai zi :<!--from>$TxtFrom<!--endfrom> ".$ip."</font>";
  $Wcontent=ereg_replace(chr(10),"",$Wcontent);
  $Wcontent=$Wcontent."<hr size=1></td></tr>";
  $TxtReply=ereg_replace(chr(10),"",$TxtReply);
  $WContent=$Wcontent.$TxtReply."n";
  $count=count($content);
  $fp=fopen($guestfile,"w");
  for ($i=0;$i<$count;$i++)
  {
  if ($i==$record-1)
  {$content[$i]=$WContent;}
  fputs($fp,$content[$i]);
  }
  fclose($fp);
  }
  $content=file($guestfile,"r");
  $message=$content[$record-1];
  $long=strlen($message);
  $txtcontent=readvalue('<!--content>','<!--endcontent>');
  $txtname=readvalue('<!--name>','<!--endname>');
  $txtfrom=readvalue('<!--from>','<!--endfrom>');
  $txtemail=readvalue('<!--email>','<!--endemail>');
  $txthomepage=readvalue('<!--homepage>','<!--endhomepage>');
  $txtcontent=strip_tags($txtcontent);
  $tags="<!--reply>";
  $txtreply=strstr($message,$tags);
  $txtreply=ereg_replace(""","&quot;",$txtreply);
  if ($Submit)
  {
  if ($TxtPassword==$managepwd)
  {
  if ($TxtName!="" and $TxtContent!="")
   {
  save($record);
  echo "<meta http-equiv=Refresh content="1;url=guest.php">";
  exit;
   }else {$errorm=" liu yan ren xing ming he nei rong bi tian !!";}
  }
  else {$errorm=" mi ma cuo wu , zhi you guan li yuan you quan xiu gai !!";}
  }
  ?>
  </head>
  <body bgcolor="#FFFFFF" background="back.gif">
  <? include('head.htm');?>
  <div align="center">
  <center>
   <table border="1" width="68%" height="31" cellspacing="0" cellpadding="7" bordercolor="#E3E3E3">
   <form action="edit.php" method=post>
   <?
   if ($errorm and $Submit)
   {
   echo"<tr>";
   echo"<td height=40 colspan=4>";
   echo"<font color=red> chu cuo le ,</font>$errorm";
   echo"</td>";
   echo"</tr>";
   }
   ?>
   <tr>
   <td width="18%" height="37" bgcolor="#f0f0f0"><font color="#000000"> liu yan da ming </font></td>
   <td width="39%" height="37" bgcolor="#FFFFFF">
   <input type="text" name="TxtName" size="26" value=<?echo "$txtname"?>>
   </td>
   <td width="11%" height="37" bgcolor="#f0f0f0"><font color="#000000"> lai zi </font></td>
   <td width="32%" height="37" bgcolor="#FFFFFF">
   <input type="text" name="TxtFrom" size="20" value=<?echo "$txtfrom"?>>
   </td>
   </tr>
   <tr>
   <td width="18%" height="31" bgcolor="#f0f0f0"><font color="#000000"> zhu ye di zhi </font></td>
   <td width="39%" height="31" bgcolor="#FFFFFF">
   <input type="text" name="TxtHomepage" size="26" value=<?echo "$txthomepage"?>>
   </td>
   <td width="11%" height="31" bgcolor="#f0f0f0"><font color="#000000">Email</font></td>
   <td width="32%" height="31" bgcolor="#FFFFFF">
   <input type="text" name="TxtEmail" size="20" value=<?echo "$txtemail"?>>
   </td>
   </tr>
   <tr bgcolor="#FFFFFF">
   <td height="31" colspan="4"><font color="#000000"> liu yan nei rong </font></td>
   </tr>
   <tr bgcolor="#f0f0f0">
   <td height="105" colspan="4" valign="middle" align="center">
   <textarea rows="6" name="TxtContent" cols="50" wrap="VIRTUAL"><? echo "$txtcontent"?>
   </textarea>
   </td>
   </tr>
   <tr bgcolor="#FFFFFF">
   <td height="40" colspan="4" valign="middle" align="center"> <font color="#000000"> xiu gai mi ma </font>
   <input type="password" name="TxtPassword" size="10" value=<?echo "$TxtPassword"?>>
   <font color="#000000"> shi fou bao cun mi ma </font>
   <input type="checkbox" name="SavePassword" value="on" checked>
   <input type=hidden name=record value=<? echo "$record"?>>
  
   <input type="submit" value=" wo yao xiu gai le " name="Submit">
   </td>
   </tr>
   <? echo "$txtreply"?>
   <input type=hidden name=TxtReply value="<? echo "$txtreply" ?>">
   </form>
   </table>
  </center>
  </div>
  <?include('bottom.htm');?>
  </body>
  </html>
  ----------
  gai zhu ming de di fang wo yi zuo le quan shi .php ke yi qian ru html dai ma zhong , zhe yang xie qi dai ma hen qie yi .
  dai xu ...【原文】【汉音对照
 
 
 
 
 
 
 
 
日版宠物情人插曲《Winding Road》歌词

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

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

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

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

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

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

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

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

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

 
 
shang yi ci wo men yan jiu le guest.php wen jian . ju ti de wen ti huan yao qiu du zhe peng you zi ji shen ru de qu shi jian , er qie xu yao yi xie gong ju shu lai xue xi , ru guo nin yi dian php de zhi shi dou mei you , bi zhe feng quan nin jiu bu yao xiang xia kan le , bi zhe mei you tai duo de shi jian he pian fu qu zhu ju tan jiu yi ge php wen jian de yong tu he yi yi . hao de , jie xia lai wo men lai zuo edit.php zhe ge wen jian . ----------- //edit.php <? if ($Submit) { if ($SavePassword=="on") {setcookie("TxtPassword","$TxtPassword",time()+30*24*3600);} else {setcookie("TxtPassword");} } ?> <html> <style type=text/css> Td {FONT-SIZE: 10pt;} TEXTAREA { FONT-FAMILY: " song ti "; FONT-SIZE: 10pt; } </style> <head> <meta http-equiv="Content-Language" content="zh-cn"> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title> xiu gai liu yan </title> <? require("sys.php"); function readvalue($tags,$tage) { global $message,$long,$reply; $StrStart=strlen(strstr($message,$tags))-strlen($tags);// qu chu biao ji hou bian liang suo zai zi chuan de qi shi wei zhi . $StrEnd=strlen(strstr($message,$tage)); $len=$StrStart-$StrEnd; $StrStart=$long-$StrStart;// qi shi zi fu . $StrString=substr($message,$StrStart,$len); return $StrString; } function save($record) { global $TxtContent,$TxtEmail,$TxtHomepage,$TxtEmail,$TxtName,$TxtFrom,$TxtReply,$REMOTE_ADDR,$guestfile; $content=file($guestfile,"r"); $space = "&nbsp;"; $time = date(Y nian m yue d ri H xiao shi i fen ); $ip=$REMOTE_ADDR; $TxtReply=StripSlashes($TxtReply); $TxtContent=StripSlashes($TxtContent); $TxtContent=htmlspecialchars($TxtContent); $TxtContent=check_strlen_long($TxtContent); $TxtContent=nl2br($TxtContent); $Wcontent = "<tr><td><font color=#AB00E1> liu yan nei rong :</font><br><!--content>$TxtContent<!--endcontent> "; $Wcontent=$Wcontent."<br><font color=#6633FF> liu yan ren da ming :</font><!--name>$TxtName<!--endname> "; if ($TxtEmail !="") {$Wcontent=$Wcontent."<br><font color=#9900CC> dian zi xin xiang </font><a href="[url=mailto:$TxtEmail]$TxtEmail[/url]"."$space'mailto:$TxtEmail"><!--email>$TxtEmail<!--endemail></a>"."$space";} if ($TxtHomepage !="http://") {$Wcontent=$Wcontent."<font color=#9900CC> zhu ye :</font>$TxtHompage<a href="$TxtHomepage" target=new><!--homepage>$TxtHomepage<!--endhomepage></a>";} $Wcontent=$Wcontent."<br><font color=#0000FF> shi jian :$time lai zi :<!--from>$TxtFrom<!--endfrom> ".$ip."</font>"; $Wcontent=ereg_replace(chr(10),"",$Wcontent); $Wcontent=$Wcontent."<hr size=1></td></tr>"; $TxtReply=ereg_replace(chr(10),"",$TxtReply); $WContent=$Wcontent.$TxtReply."n"; $count=count($content); $fp=fopen($guestfile,"w"); for ($i=0;$i<$count;$i++) { if ($i==$record-1) {$content[$i]=$WContent;} fputs($fp,$content[$i]); } fclose($fp); } $content=file($guestfile,"r"); $message=$content[$record-1]; $long=strlen($message); $txtcontent=readvalue('<!--content>','<!--endcontent>'); $txtname=readvalue('<!--name>','<!--endname>'); $txtfrom=readvalue('<!--from>','<!--endfrom>'); $txtemail=readvalue('<!--email>','<!--endemail>'); $txthomepage=readvalue('<!--homepage>','<!--endhomepage>'); $txtcontent=strip_tags($txtcontent); $tags="<!--reply>"; $txtreply=strstr($message,$tags); $txtreply=ereg_replace(""","&quot;",$txtreply); if ($Submit) { if ($TxtPassword==$managepwd) { if ($TxtName!="" and $TxtContent!="") { save($record); echo "<meta http-equiv=Refresh content="1;url=guest.php">"; exit; }else {$errorm=" liu yan ren xing ming he nei rong bi tian !!";} } else {$errorm=" mi ma cuo wu , zhi you guan li yuan you quan xiu gai !!";} } ?> </head> <body bgcolor="#FFFFFF" background="back.gif"> <? include('head.htm');?> <div align="center"> <center> <table border="1" width="68%" height="31" cellspacing="0" cellpadding="7" bordercolor="#E3E3E3"> <form action="edit.php" method=post> <? if ($errorm and $Submit) { echo"<tr>"; echo"<td height=40 colspan=4>"; echo"<font color=red> chu cuo le ,</font>$errorm"; echo"</td>"; echo"</tr>"; } ?> <tr> <td width="18%" height="37" bgcolor="#f0f0f0"><font color="#000000"> liu yan da ming </font></td> <td width="39%" height="37" bgcolor="#FFFFFF"> <input type="text" name="TxtName" size="26" value=<?echo "$txtname"?>>  </td> <td width="11%" height="37" bgcolor="#f0f0f0"><font color="#000000"> lai zi </font></td> <td width="32%" height="37" bgcolor="#FFFFFF"> <input type="text" name="TxtFrom" size="20" value=<?echo "$txtfrom"?>> </td> </tr> <tr> <td width="18%" height="31" bgcolor="#f0f0f0"><font color="#000000"> zhu ye di zhi </font></td> <td width="39%" height="31" bgcolor="#FFFFFF"> <input type="text" name="TxtHomepage" size="26" value=<?echo "$txthomepage"?>> </td> <td width="11%" height="31" bgcolor="#f0f0f0"><font color="#000000">Email</font></td> <td width="32%" height="31" bgcolor="#FFFFFF"> <input type="text" name="TxtEmail" size="20" value=<?echo "$txtemail"?>> </td> </tr> <tr bgcolor="#FFFFFF"> <td height="31" colspan="4"><font color="#000000"> liu yan nei rong </font></td> </tr> <tr bgcolor="#f0f0f0"> <td height="105" colspan="4" valign="middle" align="center"> <textarea rows="6" name="TxtContent" cols="50" wrap="VIRTUAL"><? echo "$txtcontent"?> </textarea> </td> </tr> <tr bgcolor="#FFFFFF"> <td height="40" colspan="4" valign="middle" align="center"> <font color="#000000"> xiu gai mi ma </font> <input type="password" name="TxtPassword" size="10" value=<?echo "$TxtPassword"?>> <font color="#000000"> shi fou bao cun mi ma </font> <input type="checkbox" name="SavePassword" value="on" checked> <input type=hidden name=record value=<? echo "$record"?>> <input type="submit" value=" wo yao xiu gai le " name="Submit"> </td> </tr> <? echo "$txtreply"?> <input type=hidden name=TxtReply value="<? echo "$txtreply" ?>"> </form> </table> </center> </div> <?include('bottom.htm');?> </body> </html> ---------- gai zhu ming de di fang wo yi zuo le quan shi .php ke yi qian ru html dai ma zhong , zhe yang xie qi dai ma hen qie yi . dai xu ...
󰈣󰈤
  免责声明:本文仅代表作者个人观点,与王朝网络无关。王朝网络登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述,其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
追忆.绯红色的审判
新竹的果子风
热裤女孩
凯宾斯基酒店随拍
金色草原
菜园小品
情人谷
广东惠州—巽寮湾的海景
 
>>返回首页<<
 为你推荐
 
 
 转载本文
 UBB代码 HTML代码
复制到剪贴板...
 
 热帖排行
 
 
 
 
©2005- 王朝网络 版权所有