Tag Arno! Vielen Dank für Deine rasche Bemühung. Leider haut das so nicht hin. Ich habe, so wie Du vorgeschlagen hast, im Modul "Gästebuch-Eingabe", im unteren Modul-Bereich "Ausgabe", vor den php-Teil ein " " gesetzt. Hab's auch mit Punkten versucht - die Fehlermeldung bleibt allerdings.
Hier mal der code im Modul "Gästebuch-Eingabe", Modul-Bereich "Ausgabe":
<br>
<?php
/***********************************************
* CONTENIDO MODUL - OUTPUT
*
* Modulname : Guestbook Eingabe v1.1
* Copyright : P.beauvain
* Created : 14-02-2004
* Modified : Mar. 1st 2004 by Lars D. Forseth <
lars@forseth.de>
************************************************/
$activ = "CMS_VALUE[5]";
if ($activ == "") { $activ = "0";
}
$sperre ="CMS_VALUE[6]";
$links = explode('?',$PHP_SELF);
$link = $links[0];
$link = $link."?idcat=".$idcat."&idartlang=".$idartlang."&idart=".$idart; // back-link
$meineseite = $auth->url();
if ($a == "") { $a = "add"; }
if (strcmp($a,"add")==0)
{
echo "
<p style='margin-left:30px;'><B>Bitte mindestens Name und Kommentar angeben</B></p>
";
echo ' <p style="margin-left:30px;">
<br>';
echo "
<form name='gb' id='gb' action=".$link." method='post'>";
echo "
<input type=\"hidden\" name=\"a\" value=\"send\">";
echo "
<table border=0 cellpadding=2 cellspacing=0>
<tr class=text>
<td align=right style='width:100px;'><B> Name: </b></td>
<td><input type=text name=name value='$name' style='width:300px;'></td>
</tr>
<tr class=text>
<td align=right > E-Mail: </td>
<td><input type=text name=email value='$email' style='width:300px;'></td>
</tr>
<tr class=text>
<td align=right > Homepage: </td>
<td><input type=\"text\" name=\"url\" value=\"$url\" style='width:300px;'></td>
</tr>
<tr valign=top class=text>
<td align=right ><b> Kommentar: </b></td>
<td>
<textarea name=\"comments\" style='width:300px;' rows=11 wrap=physical>
$comments</text"."area>
</td>
</tr>
<tr class=text>
<td></td>
<td align=right>
<!-- <a href=$link onClick=gb.submit();>Eintragen</a> -->
<input type=\"submit\" value=\"Eintragen\"></td>
</tr>
</table>
</form></p>
";
} // end "if($a == "add")"
// wenn ein eintrag geschrieben werden soll
if(strcmp($a,"send")==0) {
// Formatierung des Textes aus dem Kommentarfeld
if($name!="" && $comments!="") { //Abfangen der "leeren" Einträge
echo '<p style="margin-left:30px;">';
/* filter given data */
$error = "no";
$mailkomm = stripslashes($comments);
$comments = trim($comments);
$comments = nl2br($comments);
$comments = str_replace("'","",$comments);
$comments = str_replace(";","",$comments);
$comments = str_replace("--","",$comments);
$comments = htmlentities($comments);
$comments = str_replace("<br />","",$comments);
$comments = str_replace("<br/>","",$comments);
$comments = str_replace("<br>","",$comments);
$comments = str_replace("\n","<br>",$comments);
// filter email
if ($error == "no") {
if ($email) {
if (strlen($email) > 50) {$error = "Emailadresse ist zu lang! (max. 50 Zeichen erlaubt)";}
else {
$valid = (eregi ("^([a-z0-9_]|\\-|\\.)+@(([a-z0-9_]|\\-)+\\.)+[a-z]+$",$email));
if (!$valid == 1) {$error = "Emailadresse ist ungültig, bitte überprüfen!";}
else {
$parts = explode("@",$email);
$lasts = explode(".",$parts[1]);
$domain = $lasts[(count($lasts)-2)].".".$lasts[(count($lasts)-1)];
$valid = (int) (checkdnsrr($domain,ANY));
if ($valid == 0) {$error = "Emailadresse ist ungültig, bitte überprüfen!";}
} // end else
} // end else
} // end if email
} // end if no error
// filter name
if ($error == "no") {
if (strlen($name) > 30) {$error = "Name ist zu lang! (max. 30 Zeichen erlaubt)";}
else {
$name = nl2br($name);
$name = str_replace("'","",$name);
$name = str_replace(";","",$name);
$name = str_replace("--","",$name);
$name = htmlentities($name);
}
} // end if
// filter url
if ($error == "no") {
if ($url) {
if (strlen($url) > 100) {$error = "URL ist zu lang! (max. 100 Zeichen erlaubt)";}
else {
$url = str_replace("\n","",$url);
$url = str_replace("'","",$url);
$url = str_replace(";","",$url);
$url = str_replace("--","",$url);
$url = str_replace("\"","",$url);
$url = str_replace("'","",$url);
$url = str_replace("\'","",$url);
$url = str_replace(" ","",$url);
$url = strtolower($url);
$sheme_given = (eregi("^([a-z]+://)",$url));
if ($sheme_given == 0) {$url = "http://".$url;}
$url1 = (parse_url($url));
$host = $url1["host"];
$valid = (eregi("([a-z0-9_\\-\\.])+(\\.)+([a-z]{2,4})",$host));
if (!$valid == 1) {$error = "Homepage ist ungültig, bitte überprüfen!";}
else {
$valid = (int) (checkdnsrr($host,ANY));
if ($valid == 0) {$error = "Homepage ist ungültig, bitte überprüfen!";}
} // end else
} // end else
} // end if url
} // end if
if ($error == "no") {
. . . usw.