"; if ($city) $mbody .= " ($city)"; $mbody .= "\n"; if ($url) $mbody .= "$url\n"; $mbody .= "------------------------------\n"; $mbody .= "\n\n"; $mbody .= $message; if ($email) { $mheader = "From: $email"; } else { $mheader = "From: unbekannt@hanno.de"; } $name = htmlentities($name); $email = htmlentities($email); $url = htmlentities($url); $city = htmlentities($city); if (!$hannodarfdas) { $message = htmlentities($message); $message = eregi_replace("(http://[a-z0-9;:.\-\/\?%#+_]+)", "\\1", $message); $message = eregi_replace("([a-z0-9.\-_]+@[a-z0-9.\-_]+)", "\\1", $message); } $name = "\"" . addslashes($name) . "\""; $email = "\"" . addslashes($email) . "\""; $url = "\"" . addslashes($url) . "\""; $city = "\"" . addslashes($city) . "\""; $message = "\"" . addslashes($message) . "\""; $result = mysql_query("select * from guestbook where (name = $name and email = $email and url = $url and city = $city and message = $message)"); if (mysql_num_rows($result) == 0) { mysql_query("insert into guestbook (name, email, url, city, message) values ($name, $email, $url, $city, $message)"); if (!$hannodarfdas) { mail("alle@sechsrichtige.de", $msubject, $mbody, $mheader); } } } else { $error = 1; } } $result = mysql_query("select *, date_format(stamp, \"%H:%i / %e.%c.%Y\") as thetime from guestbook order by stamp desc"); $nrows = mysql_num_rows($result); $npages = ceil($nrows / $perpage); if ($page == 0) $page = 1; if ( ($nrows>0) && ($page<=$npages) ) mysql_data_seek($result, ($page-1)*$perpage); ?> sechs richtige - a cappella - all inclusive  

Start | Katalog | Reiseplanung | Souvenirs | Buchung | Grüße | Links
 

Unser Gästebuch

Fehler!

Dein Eintrag wurde nicht angenommen:

Du musst mindestens Deinen Namen und eine Nachricht im Formular eintragen.

Bitte kehre zur Formularseite zurück und versuche es noch einmal.

Einen neuen Eintrag schreiben.

$i "; } else { echo "$i "; } } ?>

    0) && ($row = mysql_fetch_array($result)) ) { echo "
  1. \n"; $n--; $i--; $row[name] = stripslashes($row[name]); $row[email] = stripslashes($row[email]); $row[url] = stripslashes($row[url]); $row[city] = stripslashes($row[city]); $row[message] = stripslashes($row[message]); echo ""; if ($row[url]) echo ""; echo $row[name]; if ($row[url]) echo ""; if ($row[email]) { $e = str_replace("@", "(at)", $row[email]); echo " <$e>"; } if ($row[city]) echo " (" . $row[city] . ")"; echo ":

    \n"; echo nl2br($row[message]); echo "

    "; echo "[ $row[thetime] ]"; echo "
     
     
    \n"; echo "

  2. \n"; } ?>

$i "; } else { echo "$i "; } } ?>

 

Kontakt: Oliver Tillmann, info@stageconsulting.de, 05042-506185