wir haben eine seite zum eingeben des comments...
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>Guestbook T-Delight.com official Homepage - AMS - 2DNM - Electric-Haze Music - presswerk.de - Siebenpunkt - Midiflash</title>
<link href="../../web-content/tstyle.css" type="text/css" rel="stylesheet" media="all" />
<meta name="keywords" content="T-Delight, T-Delight.com, t-delight.com, t-delight, T-Delight official Website, AMS, 2DNM, elctric-haze music, presswerk.de, siebenpunkt, marysolmusic, midiflash, emsiono, el delincuente, mafia meier, baby v., Mark Thornton, münchen Rap, deutscher HipHop, deutscher rap, chief am mic, choose your destiny, trottel renn, beweg deinen arsch, münchen neuhausen, rap aus bayern, hiphop aus bayern" />
</head>
<body onload="SendDate()" background="../../web-content/gfx/thbglr.jpg" bgcolor="#ffffff" link="white" leftmargin="0" marginheight="0" marginwidth="0" topmargin="0">
<div align="center">
<table width="923" border="0" cellspacing="2" cellpadding="0" bgcolor="#010000">
<tr height="247">
<td rowspan="2" valign="top" bgcolor="#010000" width="7"><img src="../../web-content/gfx/thborder2.jpg" alt="" height="674" width="7" align="top" border="0"></td>
<td colspan="3" align="center" valign="top" height="247" background="../../web-content/gfx/Thead-Ani.gif">
<div align="center"></div>
</td>
<td rowspan="2" valign="top" width="7"><img src="../../web-content/gfx/thborder2.jpg" alt="" height="674" width="7" align="top" border="0"></td>
</tr>
<tr>
<td valign="top" bgcolor="#010000" width="181">
<table width="181" border="0" cellspacing="2" cellpadding="0">
<tr>
<td bgcolor="#010000"><font color="#010000"><img src="../../web-content/gfx/bgclear.gif" alt="" height="16" width="176" border="0"></font></td>
</tr>
<tr>
<td bgcolor="#010000" background="../../web-content/gfx/thwgm.jpg"><font color="#010000"><img src="../../web-content/gfx/bgclear.gif" alt="" height="29" width="176" border="0"></font></td>
</tr>
<tr>
<td bgcolor="#010000">
<div align="center">
<font size="2" color="#010000" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><strong><a title="T-Delight Home" href="../../home.html">HOME</a></strong></font></div>
</td>
</tr>
<tr>
<td bgcolor="#010000" background="../../web-content/gfx/thwgm.jpg"><img src="../../web-content/gfx/bgclear.gif" alt="" height="29" width="176" border="0"></td>
</tr>
<tr>
<td bgcolor="#010000">
<div align="center">
<font size="2" color="#010000" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><strong><a title="T-Delight Biografie" href="../../bio.html">BIOGRAFIE</a></strong></font></div>
</td>
</tr>
<tr>
<td bgcolor="#010000" background="../../web-content/gfx/thwgm.jpg"><img src="../../web-content/gfx/bgclear.gif" alt="" height="29" width="176" border="0"></td>
</tr>
<tr>
<td bgcolor="#010000">
<div align="center">
<font size="2" color="#010000" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><strong><a title="T-Delight Discografie" href="../../disco.html">DISCOGRAFIE</a></strong></font></div>
</td>
</tr>
<tr>
<td bgcolor="#010000" background="../../web-content/gfx/thwgm.jpg"><img src="../../web-content/gfx/bgclear.gif" alt="" height="29" width="176" border="0"></td>
</tr>
<tr>
<td bgcolor="#010000">
<div align="center">
<font size="2" color="#010000" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><strong><a title="T-Delight Musik" href="../../musik.html">MUSIK </a></strong></font></div>
</td>
</tr>
<tr>
<td bgcolor="#010000" background="../../web-content/gfx/thwgm.jpg"><img src="../../web-content/gfx/bgclear.gif" alt="" height="29" width="176" border="0"></td>
</tr>
<tr>
<td bgcolor="#010000">
<div align="center">
<font size="2" color="#010000" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><strong><a title="T-Delight Live" href="../../live.html">LIVE</a></strong></font></div>
</td>
</tr>
<tr>
<td bgcolor="#010000" background="../../web-content/gfx/thwgm.jpg"><img src="../../web-content/gfx/bgclear.gif" alt="" height="29" width="176" border="0"></td>
</tr>
<tr>
<td bgcolor="#010000">
<div align="center">
<font size="2" color="#010000" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><strong><a title="T-Delight Pictures" href="../../pics.html">PICS</a></strong></font></div>
</td>
</tr>
<tr>
<td bgcolor="#010000" background="../../web-content/gfx/thwgm.jpg"><img src="../../web-content/gfx/bgclear.gif" alt="" height="29" width="176" border="0"></td>
</tr>
<tr>
<td bgcolor="#010000">
<div align="center">
<font size="2" color="#010000" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><strong><a title="T-Delight Videos" href="../../videos.html">VIDEOS</a></strong></font></div>
</td>
</tr>
<tr>
<td bgcolor="#010000" background="../../web-content/gfx/thwgm.jpg"><img src="../../web-content/gfx/bgclear.gif" alt="" height="29" width="176" border="0"></td>
</tr>
<tr>
<td bgcolor="#010000">
<div align="center">
<font size="2" color="#010000" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><strong><a title="T-Delight Presse" href="../../presse.html">PRESSE</a></strong></font></div>
</td>
</tr>
<tr>
<td bgcolor="#010000" background="../../web-content/gfx/thwgm.jpg"><img src="../../web-content/gfx/bgclear.gif" alt="" height="29" width="176" border="0"></td>
</tr>
<tr>
<td bgcolor="#010000">
<div align="center">
<font size="2" color="#010000" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><strong><a title="T-Delight Newsletter" href="../../newsletter.html">NEWSLETTER</a></strong></font></div>
</td>
</tr>
<tr>
<td bgcolor="#010000" background="../../web-content/gfx/thwgm.jpg"><img src="../../web-content/gfx/bgclear.gif" alt="" height="29" width="176" border="0"></td>
</tr>
<tr>
<td bgcolor="#010000" background="../../web-content/gfx/bgl.jpg">
<div align="center">
<font size="2" color="#010000" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><strong><a title="T-Delight Guestbook" href="output.php">GÄSTEBUCH</a></strong></font></div>
</td>
</tr>
<tr>
<td bgcolor="#010000" background="../../web-content/gfx/thwgm.jpg"><img src="../../web-content/gfx/bgclear.gif" alt="" height="29" width="176" border="0"></td>
</tr>
<tr>
<td bgcolor="#010000">
<div align="center">
<font size="2" color="#010000" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><strong><a title="T-Delight Booking" href="../../booking.html">BOOKING</a></strong></font></div>
</td>
</tr>
<tr>
<td background="../../web-content/gfx/thwgm.jpg"><img src="../../web-content/gfx/bgclear.gif" alt="" height="29" width="176" border="0"></td>
</tr>
<tr>
<td bgcolor="#010000">
<div align="center">
<font size="2" color="#010000" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><strong><a title="T-Delight Promotion" href="../../promotion.html">PROMOTION</a></strong></font></div>
</td>
</tr>
<tr>
<td bgcolor="#010000" background="../../web-content/gfx/thwgm.jpg"><img src="../../web-content/gfx/bgclear.gif" alt="" height="29" width="176" border="0"></td>
</tr>
<tr>
<td bgcolor="#010000">
<div align="center">
<font size="2" color="#010000" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><strong><a title="T-Delight Links, Friends & Partner" href="../../links.html">LINKS</a></strong></font></div>
</td>
</tr>
<tr>
<td bgcolor="#010000" background="../../web-content/gfx/thwgm.jpg"><img src="../../web-content/gfx/bgclear.gif" alt="" height="29" width="176" border="0"></td>
</tr>
<tr>
<td bgcolor="#010000">
<div align="center">
<font size="2" color="#010000" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><strong><a title="T-Delight Kontakt" href="../../kontakt.html">KONTAKT</a></strong></font></div>
</td>
</tr>
<tr>
<td bgcolor="#010000" background="../../web-content/gfx/thwgm.jpg"><img src="../../web-content/gfx/bgclear.gif" alt="" height="29" width="176" border="0"></td>
</tr>
<tr>
<td bgcolor="#010000">
<div align="center">
<font size="2" color="#010000" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><strong><a title="T-Delight Impressum" href="../../impressum.html">IMPRESSUM</a></strong></font></div>
</td>
</tr>
<tr>
<td bgcolor="#010000" background="../../web-content/gfx/thwgm.jpg"><img src="../../web-content/gfx/bgclear.gif" alt="" height="29" width="176" border="0"></td>
</tr>
</table>
</td>
<td colspan="2" valign="top" bgcolor="#010000">
<div align="center">
<form name="Entry" method="post" action="output.php">
<br />
<div align="left">
<div style="position:relative;width:711px;height:546px;-adbe-g:p,5,5;">
<div style="position:absolute;top:125px;left:16px;width:290px;height:134px;">
<textarea name="comment" rows="7" cols="33" tabindex="1"></textarea></div>
<div style="position:absolute;top:15px;left:11px;width:320px;height:96px;-adbe-c:c">
<div align="left">
<h2><font color="white" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">T-Delight Guestbook<br>
<img src="../../web-content/gfx/thwgm.jpg" alt="" height="11" width="177" border="0"><br>
</font></h2>
<p><font color="#999999" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Sign Guest Book :</font></p>
</div>
</div>
<div style="position:absolute;top:16px;left:333px;width:360px;height:529px;">
<img src="../../web-content/pics/tdelight%2010775.JPG" alt="" height="529" width="360" border="0"></div>
<div style="position:absolute;top:515px;left:93px;width:92px;height:26px;">
<input type="submit" name="send" value="submit" tabindex="5" border="0"></div>
<div style="position:absolute;top:465px;left:23px;width:272px;height:35px;-adbe-c:c">
<font size="2" color="#b60000" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Rechaufgabe lösen und auf SUBMIT clicken um den Eintrag abzuschicken....</font></div>
<div style="position:absolute;top:0px;left:11px;width:12px;height:12px;">
<input type="hidden" name="new_entry" value="true"></div>
<div style="position:absolute;top:0px;left:89px;width:12px;height:12px;">
<input type="hidden" name="localDate"></div>
<div style="position:absolute;top:340px;left:87px;width:212px;height:26px;">
<input type="text" name="town" value="" size="25" tabindex="3" border="0"></div>
<div style="position:absolute;top:285px;left:87px;width:212px;height:26px;">
<input type="text" name="name" value="" size="25" tabindex="2" border="0"></div>
<div style="position:absolute;top:285px;left:18px;width:57px;height:26px;-adbe-c:c">
<font color="#999999" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Name :</font></div>
<div style="position:absolute;top:341px;left:18px;width:52px;height:20px;-adbe-c:c">
<font color="#999999" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Town :</font></div>
<div style="position:absolute;top:386px;left:188px;width:32px;height:32px;">
<img src="rechen-captcha.php"></div>
<div style="position:absolute;top:421px;left:188px;width:52px;height:26px;">
<input type="text" name="sicherheitscode" size="5" tabindex="4"></div>
<div style="position:absolute;top:386px;left:20px;width:152px;height:24px;-adbe-c:c">
<font color="#999999" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Sicherheitsabfrage :</font></div>
<csnopos>
<cspos xpos="113" xpos="0">
<!--mark_mail-->
</cspos>
</csnopos>
</div>
</div>
</form>
<p><img src="../../web-content/logos/Tt-Delight-logo-black.gif" alt="" height="239" width="680" border="0"></p>
</div>
</td>
</tr>
<tr>
<td valign="top" width="7"></td>
<td valign="top" bgcolor="#010000" width="181"></td>
<td colspan="2" valign="top" bgcolor="#010000">
<div align="center">
<font size="2" color="#999999" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">T-Delight.com </font><font size="2" color="#999999">©</font><font size="2" color="#999999" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"> </font><font size="2" color="#999999">by </font><font size="2" color="#999999" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Electric-Haze Music 2007-2008</font></div>
</td>
<td valign="top" width="7"></td>
</tr>
</table>
</div>
</body>
</html>
die 2. seite mit der verarbeitung und anzeige der comments :
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="Adobe GoLive">
<title>Guestbook T-Delight.com official Homepage - AMS - 2DNM - Electric-Haze Music - Siebenpunkt - Midiflash</title>
<link href="../../web-content/tstyle.css" type="text/css" rel="stylesheet" media="all" />
<meta name="keywords" content="T-Delight, T-Delight.com, t-delight.com, t-delight, T-Delight official Website, AMS, 2DNM, elctric-haze music, presswerk.de, siebenpunkt, marysolmusic, midiflash, emsiono, el delincuente, mafia meier, baby v., Mark Thornton, münchen Rap, deutscher HipHop, deutscher rap, chief am mic, choose your destiny, trottel renn, beweg deinen arsch, münchen neuhausen, rap aus bayern, hiphop aus bayern" />
</head>
<body background="../../web-content/gfx/thbglr.jpg" bgcolor="#ffffff" link="white" leftmargin="0" marginheight="0" marginwidth="0" topmargin="0">
<div align="center">
<table width="923" border="0" cellspacing="2" cellpadding="0" bgcolor="#010000">
<tr height="255">
<td rowspan="2" valign="top" bgcolor="#010000"><img src="../../web-content/gfx/thborder2.jpg" alt="" height="674" width="7" align="top" border="0"></td>
<td colspan="3" align="center" height="255" background="../../web-content/gfx/Thead-Ani.gif">
<div align="center"></div>
</td>
<td rowspan="2" valign="top"><img src="../../web-content/gfx/thborder2.jpg" alt="" height="674" width="7" align="top" border="0"></td>
</tr>
<tr>
<td valign="top" bgcolor="#010000" width="181">
<table width="181" border="0" cellspacing="2" cellpadding="0">
<tr>
<td bgcolor="#010000">
<div align="center">
<font color="#010000"><img src="../../web-content/gfx/bgclear.gif" alt="" height="16" width="17" border="0"><noedit><div style="width:112px;"><a href="http://www.mzee.com/linkprojekt/site/in/6186/rap-musik-offizielle-rap-crew-sites-shop.html" target="_top" title="MZEE.com LinkProjekt: Rap-Musik - (offizielle) Rap-Crew-Sites / Shop"><img src="http://www.mzee.com/linkprojekt/site/img/6186/format/klein/rap-musik-offizielle-rap-crew-sites-shop.jpg" border="0" width="112" height="55" title="MZEE.com LinkProjekt: Rap-Musik - (offizielle) Rap-Crew-Sites / Shop" alt="Rap-Musik - (offizielle) Rap-Crew-Sites / Shop" /><div style="text-align:center;font-size:9px;">Vote bei MZEE.com</div></a></div></noedit><br>
</font></div>
</td>
</tr>
<tr>
<td bgcolor="#010000" background="../../web-content/gfx/thwgm.jpg"><font color="#010000"><img src="../../web-content/gfx/bgclear.gif" alt="" height="22" width="176" border="0"></font></td>
</tr>
<tr>
<td>
<div align="center">
<font size="2" color="#010000" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><strong><a title="T-Delight Home" href="../../home.html">HOME</a></strong></font></div>
</td>
</tr>
<tr>
<td bgcolor="#010000" background="../../web-content/gfx/thwgm.jpg"><img src="../../web-content/gfx/bgclear.gif" alt="" height="22" width="176" border="0"></td>
</tr>
<tr>
<td bgcolor="#010000">
<div align="center">
<font size="2" color="#010000" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><strong><a title="T-Delight Biografie" href="../../bio.html">BIOGRAFIE</a></strong></font></div>
</td>
</tr>
<tr>
<td bgcolor="#010000" background="../../web-content/gfx/thwgm.jpg"><img src="../../web-content/gfx/bgclear.gif" alt="" height="22" width="176" border="0"></td>
</tr>
<tr>
<td bgcolor="#010000">
<div align="center">
<font size="2" color="#010000" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><strong><a title="T-Delight Discografie" href="../../disco.html">DISCOGRAFIE</a></strong></font></div>
</td>
</tr>
<tr>
<td bgcolor="#010000" background="../../web-content/gfx/thwgm.jpg"><img src="../../web-content/gfx/bgclear.gif" alt="" height="22" width="176" border="0"></td>
</tr>
<tr>
<td bgcolor="#010000">
<div align="center">
<font size="2" color="#010000" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><strong><a title="T-Delight Musik" href="../../musik.html">MUSIK </a></strong></font></div>
</td>
</tr>
<tr>
<td bgcolor="#010000" background="../../web-content/gfx/thwgm.jpg"><img src="../../web-content/gfx/bgclear.gif" alt="" height="22" width="176" border="0"></td>
</tr>
<tr>
<td bgcolor="#010000">
<div align="center">
<font size="2" color="#010000" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><strong><a title="T-Delight Live" href="../../live.html">LIVE</a></strong></font></div>
</td>
</tr>
<tr>
<td bgcolor="#010000" background="../../web-content/gfx/thwgm.jpg"><img src="../../web-content/gfx/bgclear.gif" alt="" height="22" width="176" border="0"></td>
</tr>
<tr>
<td bgcolor="#010000">
<div align="center">
<font size="2" color="#010000" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><strong><a title="T-Delight Pictures" href="../../pics.html">PICS</a></strong></font></div>
</td>
</tr>
<tr>
<td bgcolor="#010000" background="../../web-content/gfx/thwgm.jpg"><img src="../../web-content/gfx/bgclear.gif" alt="" height="22" width="176" border="0"></td>
</tr>
<tr>
<td bgcolor="#010000">
<div align="center">
<font size="2" color="#010000" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><strong><a title="T-Delight Videos" href="../../videos.html">VIDEOS</a></strong></font></div>
</td>
</tr>
<tr>
<td bgcolor="#010000" background="../../web-content/gfx/thwgm.jpg"><img src="../../web-content/gfx/bgclear.gif" alt="" height="22" width="176" border="0"></td>
</tr>
<tr>
<td bgcolor="#010000">
<div align="center">
<font size="2" color="#010000" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><strong><a title="T-Delight Presse" href="../../presse.html">PRESSE</a></strong></font></div>
</td>
</tr>
<tr>
<td bgcolor="#010000" background="../../web-content/gfx/thwgm.jpg"><img src="../../web-content/gfx/bgclear.gif" alt="" height="22" width="176" border="0"></td>
</tr>
<tr>
<td bgcolor="#010000">
<div align="center">
<font size="2" color="#010000" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><strong><a title="T-Delight Newsletter" href="../../newsletter.html">NEWSLETTER</a></strong></font></div>
</td>
</tr>
<tr>
<td bgcolor="#010000" background="../../web-content/gfx/thwgm.jpg"><img src="../../web-content/gfx/bgclear.gif" alt="" height="22" width="176" border="0"></td>
</tr>
<tr>
<td bgcolor="#010000" background="../../web-content/gfx/bgl.jpg">
<div align="center">
<font size="2" color="#010000" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><strong><a title="T-Delight Guestbook" href="output.php">GÄSTEBUCH</a></strong></font></div>
</td>
</tr>
<tr>
<td bgcolor="#010000" background="../../web-content/gfx/thwgm.jpg"><img src="../../web-content/gfx/bgclear.gif" alt="" height="22" width="176" border="0"></td>
</tr>
<tr>
<td bgcolor="#010000">
<div align="center">
<font size="2" color="#010000" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><strong><a title="T-Delight Booking" href="../../booking.html">BOOKING</a></strong></font></div>
</td>
</tr>
<tr>
<td background="../../web-content/gfx/thwgm.jpg"><img src="../../web-content/gfx/bgclear.gif" alt="" height="22" width="176" border="0"></td>
</tr>
<tr>
<td bgcolor="#010000">
<div align="center">
<font size="2" color="#010000" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><strong><a title="T-Delight Promotion" href="../../promotion.html">PROMOTION</a></strong></font></div>
</td>
</tr>
<tr>
<td bgcolor="#010000" background="../../web-content/gfx/thwgm.jpg"><img src="../../web-content/gfx/bgclear.gif" alt="" height="22" width="176" border="0"></td>
</tr>
<tr>
<td bgcolor="#010000">
<div align="center">
<font size="2" color="#010000" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><strong><a title="T-Delight Links, Friends & Partner" href="../../links.html">LINKS</a></strong></font></div>
</td>
</tr>
<tr>
<td bgcolor="#010000" background="../../web-content/gfx/thwgm.jpg"><img src="../../web-content/gfx/bgclear.gif" alt="" height="22" width="176" border="0"></td>
</tr>
<tr>
<td bgcolor="#010000">
<div align="center">
<font size="2" color="#010000" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><strong><a title="T-Delight Kontakt" href="../../kontakt.html">KONTAKT</a></strong></font></div>
</td>
</tr>
<tr>
<td bgcolor="#010000" background="../../web-content/gfx/thwgm.jpg"><img src="../../web-content/gfx/bgclear.gif" alt="" height="22" width="176" border="0"></td>
</tr>
<tr>
<td bgcolor="#010000">
<div align="center">
<font size="2" color="#010000" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><strong><a title="T-Delight Impressum" href="../../impressum.html">IMPRESSUM</a></strong></font></div>
</td>
</tr>
<tr>
<td bgcolor="#010000" background="../../web-content/gfx/thwgm.jpg"><img src="../../web-content/gfx/bgclear.gif" alt="" height="22" width="176" border="0"></td>
</tr>
</table>
</td>
<td colspan="2" align="center" valign="top" bgcolor="#010000"><?php
//Get vars
//The setting 'track_vars' must be "ON" (standard).
$new_comment_array=$HTTP_POST_VARS;
$user_data=file("data.txt", "r");
//New Comment?
if($new_comment_array["new_entry"]=="true")
{
//Prove "Is 'text' filled"
if($new_comment_array["comment"]=="")
{
die("You have to fill the textfield!");
}
//Prove "Is 'name' filled?"
/*mark_prove_name..
if($new_comment_array["name"]=="")
{
die("You have to fill the namefield!");
}
..mark_prove_name_b*/
//Prove "Is 'town' filled?"
/*mark_prove_town..
if($new_comment_array["town"]=="")
{
die("You have to enter a town!");
}
..mark_prove_town_b*/
//Prove"Is 'mail' filled?"
/*mark_prove_mail..
if($new_comment_array["mail"]=="")
{
die("Please fill the mailadressfield!");
}
if (eregi("^[_a-z0-9]+(\.[_a-z0-9-]+)*@([a-z0-9-]+\.)+([a-z0-9]{2,4})$",
$new_comment_array["mail"]))
{$go_on="true";}
if(!$go_on)
{
die("The mailaddress is not correct!");
}
..mark_prove_mail_b*/
//Saving new comment
if($new_comment_array!="")
{
//Date
/*mark_time*/ $date=$new_comment_array["localDate"];
//Send mail with the new comment
$address=trim($user_data[0]);
if($address!="")
{
$message= $date."\n".$new_comment_array["name"]."\n".$new_comment_array["mail"]."\n".
$new_comment_array["town"]."\n".$new_comment_array["comment"];
$send=mail($address,"New comment",$message);
}
//Comment to string
$new_string=$date."/*/".$new_comment_array["name"]."//".$new_comment_array["town"]."//"
.$new_comment_array["mail"]."/*/".$new_comment_array["comment"];
//Get old comments
$filename="comments.txt";
$fr=@fopen($filename,"r");
if($fr)
{
$old_strings=fread($fr, filesize($filename));
fclose($fr);
}
else die("Can not find file $filename!");
//Merge and save.
$strings=$new_string."//**//".$old_strings;
$fw=@fopen($filename,"w");
if ($fw)
{
fputs($fw, $strings);
fclose($fw);
}
else die("Can not find file $filename!");
}
unset($new_comment_array["new_entry"]);
echo "Your post has been added to the guestbook! Thank you for using the guestbook.<br>";
echo '<a href="output.php">Return to Guestbook log.</a>';
die;
//End 'Getting new comment'. Script can be included.
}
?><?php
//Show the commments
if($new_comment_array["new_entry"]!="true")
{
$filename="comments.txt";
$fr=fopen($filename,"r");
if($fr)
{
$strings=fread($fr, filesize($filename));
fclose($fr);
}
else die("Can not find file $filename");}
//Create filters
$trim=trim($user_data[2]);
$trimmed1=str_replace(" ", "", $trim);
if($trimmed1 !="")
{
$filter1=explode(",", $trimmed1);
}
//Start search for filter-functions
function filter($data,$filter,$exchange)
{
for ($n=0;$n<count($filter);$n++) {
if (strstr($exchange,"###")) $change=str_replace("###", $filter[$n], $exchange);
else $change=$exchange;
$data=preg_replace("/(?i)$filter[$n](?=(,|\s|\?|\!|\")|$)/", $change, $data);
}
return $data;
}
?>
<table width="98%">
<tr>
<td colspan="2" align="left" valign="top">
<h1><br>
<font size="4" color="white" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">T-Delight Guestbook<br>
</font><font size="4" color="#999999" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><img src="../../web-content/gfx/thwgm.jpg" alt="" height="11" width="177" border="0">
</font></h1>
</td>
<td rowspan="2">
<div align="right">
<br>
<img src="../../web-content/pics/tdelight%2010106%20wb.jpg" alt="" height="302" width="445" border="0"><br>
<br>
</div>
</td>
</tr>
<tr>
<td colspan="2" align="left" valign="top"><font size="2" color="#999999" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Number of entries: <?
$table=explode("//**//", $strings);
if($table[0]=="")
{
echo"None";
}
else
{
$count=count($table);
$coun=--$count;
echo $coun;
}
?><br>
</font><font color="#999999"><br>
<br>
<br>
</font><a href="input.htm" target="_self"><font size="2" color="white" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">To post your own comment <br>
click here</font></a></td>
</tr>
<tr>
<td bgcolor="#4b4b4b"><b><font size="2" color="#999999" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Date</font></b></td>
<td bgcolor="#4b4b4b"><b><font size="2" color="#9b9b9b" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Name</font></b></td>
<td bgcolor="#4b4b4b"><b><font size="2" color="#999999" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">Comment</font></b></td>
</tr>
<?
//start comment-table
for ($i=0;$i<$coun; $i++) {
$cell=explode("/*/", $table[$i]);
$user=explode("//", $cell[1]);
?>
<tr valign="top">
<td bgcolor="#878787"><font size="2" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><?
//mark_i.. $j=1+$i;
//mark_i.. echo $j.".<br>";
echo $cell[0];
?></font></td>
<td bgcolor="#878787"><font size="2" color="white" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><?
echo "<b>".strtoupper($user[0])."</b><br>".$user[1]."<br>
<a href=\"mailto:".$user[2]."\">".strtolower($user[2])."</a>";
?></font></td>
<td bgcolor="#878787"><font size="2" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><?
$text=nl2br(strip_tags(stripslashes($cell[2])));
$text=filter($text,$filter1,"<b>*CENSORED*</b>");
$text=strip_tags(stripslashes($text));
//Cut long entries
if(strlen($text)>$user_data[1])
{
$cut_text=wordwrap($text,$user_data[1],"%@%");
if ($cut_text!="")
{
$pos=strpos($cut_text,"%@%");
$new_cut_text=substr($cut_text,0,$pos);
echo $new_cut_text."(...)<br><form method=\"post\" action=\"ShowAll.php\">
<input type=\"hidden\" name=\"Date\" value=\"".$cell[0]."\">
<input type=\"hidden\" name=\"User\" value=\"".$user[0]."\">
<input type=\"hidden\" name=\"Text\" value=\"".$text."\">
";
}
if ($cut_text=="")
{
$new_cut_text=substr($text,0 ,$user_data[1]);
echo $new_cut_text."(...)<br><form method=\"post\" action=\"ShowAll.php\">
<input type=\"hidden\" name=\"Date\" value=\"".$cell[0]."\">
<input type=\"hidden\" name=\"User\" value=\"".$user[0]."\">
<input type=\"hidden\" name=\"Text\" value=\"".$text."\">
";
}
?><b onclick="submit(document.forms[0].elements);"><u><font color="#00008b">see the whole comment</font></u></b>
</form><?
}
//show short comments
elseif (strlen($text)<$user_data[1])
{
echo $text;
}
?></font></td>
</tr>
<?
//Stop comment-table
}
?>
<tr>
<td bgcolor="#4b4b4b" colspan="3" align="right"><a href="input.htm" target="_self"><font size="2" color="white" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">To post your own comment click here</font></a></td>
</tr>
<tr>
<td colspan="3"><br>
<br>
</td>
</tr>
<tr>
<td colspan="3">
<div align="center">
<img src="../../web-content/logos/Tt-Delight-logo-black.gif" alt="" height="239" width="680" border="0"></div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top"></td>
<td valign="top" bgcolor="#010000" width="181"></td>
<td colspan="2" valign="top" bgcolor="#010000">
<div align="center">
<font size="2" color="#999999" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">T-Delight.com © by Electric-Haze Music 2007-2008</font></div>
</td>
<td valign="top"></td>
</tr>
</table>
</div>
</body>
</html>
die website ist www.t-delight.com
Hoffe auf EUre Hilfe
