"; if ($chooseback[1] == "farbe") { echo ""; } else { echo ""; } if ($logo[1] == "yes") { echo "
Logo

"; } if ($headline[2] == "yes") { echo "
$headline[1]
"; } if (($button[1] == "oben") || ($button[1] == "oben_unten")) { if ($frames == false) { echo "
"; } else { echo "
"; } echo "
"; } if ($add != true) { $fd = fopen($filename, "r"); $old_content = fread($fd, filesize($filename)); $old_lines = explode("\n", $old_content); $anz_lines = count($old_lines)-1; $entries = explode("=", $gb_lines[2]); if ($show != true) { if ($anz_lines <= $entries[1]) { $entries[1] = $anz_lines; } if ($anz_lines == 0) { $von = 1; if ($old_lines[0] == "") { $von = 0; } $bis = $entries[1]; } elseif ($anz_lines > 0) { $von = 1; $bis = $entries[1]; } } elseif ($show == true) { if ($page == 1) { $von = 1; $bis = $entries[1]; } elseif ($page >1) { $von = ($entries[1]*($page-1))+1; $bis = $von+$entries[1]-1; if ($bis > $anz_lines) { $bis = $anz_lines; } } } if ($anz_lines > 0) { $anz_pages = ceil($anz_lines / $entries[1]); } if (($navi[1] == "oben") || ($navi[1] == "oben_unten")) { if ($show != true) { echo "
"; if ($anz_lines > $entries[1]) { echo "Seiten:  1  "; for ($i = 2; $i <= $anz_pages; $i++) { if ($frames == false) { echo "$i  "; } else { echo "$i  "; } } echo "

"; } echo "
"; } else { echo "
Seiten:  "; for ($i = 1; $i <= $page-1; $i++) { if ($frames == false) { echo "$i  "; } else { echo "$i  "; } } echo "$page  "; for ($i = $page+1; $i <= $anz_pages; $i++) { if ($frames == false) { echo "$i  "; } else { echo "$i  "; } } echo "

"; } } echo "
"; if ($homeurlname[2] == yes) { echo "$homeurlname[1]"; } if ($adminlink[1] == yes) { if ($frames == false) { echo "  Admin
"; } else { echo "  Admin"; } } else { echo ""; } echo "
NameEintrag      $von - $bis
"; if ($breakline[1] == "yes") { echo "
"; } if ($wordfilter[1] == "yes") { /////////////////////////////////////////////////////// // Banned-Words auslesen: $wordfile = $gb_ordner."banned"; $datei = fopen($wordfile, "r"); $banned_content = fread($datei, filesize($wordfile)); fclose($datei); /////////////////////////////////////////////////////// } if (($anz_lines == 0) && ($old_lines[0] == "")) { } else { for ($i = $von-1; $i <= $bis-1; $i++) { $theline = explode("|", $old_lines[$i]); $name = explode("=", $theline[1]); $email = explode("=", $theline[2]); $url = explode("=", $theline[3]); $icq = explode("=", $theline[4]); $aim = explode("=", $theline[5]); $statement = explode("=", $theline[6]); $city = explode("=", $theline[7]); $country = explode("=", $theline[8]); $date = explode("=", $theline[9]); if ($wordfilter[1] == "yes") { /////////////////////////////////////////////////////// // Banned-Words im Text ersetzen: $banned_lines = explode("\n", $banned_content); $x=0; if ((count($banned_lines) == 0) || ($banned_lines[0] == "")) { } else { for ($z=0; $z < count($banned_lines); $z++) { if ((strstr($banned_lines[$z], "//")) || ($banned_lines[$z] == "")) { } else { $buffer = explode("=", $banned_lines[$z]); $search[$x] = $buffer[0]; $replace[$x] = $buffer[1]; ++$x; } } $name[1] = preg_replace($search, $replace, $name[1]); $email[1] = preg_replace($search, $replace, $email[1]); $url[1] = preg_replace($search, $replace, $url[1]); $icq[1] = preg_replace($search, $replace, $icq[1]); $aim[1] = preg_replace($search, $replace, $aim[1]); $city[1] = preg_replace($search, $replace, $city[1]); $country[1] = preg_replace($search, $replace, $country[1]); $statement[1] = preg_replace($search, $replace, $statement[1]); } /////////////////////////////////////////////////////// } echo ""; $trans = get_html_translation_table (HTML_ENTITIES); $trans = array_flip ($trans); $name[1] = strtr ($name[1], $trans); $name[1] = str_replace("&equal;", "=", $name[1]); echo "
$name[1]

"; if ($email[1] != "no") { $email[1] = strtr ($email[1], $trans); $email[1] = str_replace("&equal;", "=", $email[1]); if (strlen($email[1]) >= 23) { $mail = substr($email[1], 0, 21); $mail = $mail."..."; echo "Email: $mail
"; } elseif (strlen($email[1]) < 23) { echo "Email: $email[1]
"; } } if ($url[1] != "no") { $url[1] = strtr ($url[1], $trans); $url[1] = str_replace("&equal;", "=", $url[1]); if (strlen($url[1]) >=23) { $new_url = substr($url[1], 0, 21); $new_url = $new_url."..."; echo "URL: $new_url
"; } elseif (strlen($url[1]) < 23) { echo "URL: $url[1]
"; } } if ($icq[1] != "no") { $icq[1] = strtr ($icq[1], $trans); $icq[1] = str_replace("&equal;", "=", $icq[1]); if (strlen($icq[1]) >=23) { $new_icq = substr($icq[1], 0, 21); $new_icq = $new_icq."..."; echo "ICQ: $new_icq
"; } elseif (strlen($icq[1]) < 23) { echo "ICQ: $icq[1]
"; } } if ($aim[1] != "no") { $aim[1] = strtr ($aim[1], $trans); $aim[1] = str_replace("&equal;", "=", $aim[1]); if (strlen($aim[1]) >=23) { $new_aim = substr($aim[1], 0, 21); $new_aim = $new_aim."..."; echo "AIM: $new_aim"; } elseif (strlen($aim[1]) < 23) { echo "AIM: $aim[1]"; } } $statement[1] = strtr ($statement[1], $trans); $statement[1] = str_replace("&equal;", "=", $statement[1]); echo "
"; if( strlen($statement[1]) >= 75) { echo wordwrap($statement[1],30," ",1); } else { echo $statement[1]; } echo "

"; if ($city[1] != "no") { $city[1] = strtr ($city[1], $trans); $city[1] = str_replace("&equal;", "=", $city[1]); echo "$city[1], "; } if ($country[1] != "no") { $country[1] = strtr ($country[1], $trans); $country[1] = str_replace("&equal;", "=", $country[1]); echo "$country[1] - "; } echo "$date[1]
"; if ($picre[2] == "yes") { if ($frames == false) { echo "$adminlink[2]  "; } else { echo "$adminlink[2]  "; } } if ($picchange[2] == "yes") { if ($frames == false) { echo "$adminlink[2]  "; } else { echo "$adminlink[2]  "; } } if ($picdel[2] == "yes") { if ($frames == false) { echo "$adminlink[2]"; } else { echo "$adminlink[2]"; } } echo "
"; $answer = explode("=", $theline[10]); $awtext = explode("=", $theline[11]); $awname = explode("=", $theline[12]); $awdate = explode("=", $theline[13]); $awtext[1] = strtr ($awtext[1], $trans); $awname[1] = strtr ($awname[1], $trans); $awtext[1] = str_replace("&equal;", "=", $awtext[1]); $awname[1] = str_replace("&equal;", "=", $awname[1]); if ($answer[1] == "yes") { echo "
Antwort von $awname[1] ($awdate[1])
$awtext[1]
"; } echo "
"; if ($breakline[1] == "yes") { echo "
"; } } } if (($navi[1] == "unten") || ($navi[1] == "oben_unten")) { if ($show != true) { echo "
"; if ($anz_lines > $entries[1]) { echo "Seiten:  1  "; for ($i = 2; $i <= $anz_pages; $i++) { if ($frames == false) { echo "$i  "; } else { echo "$i  "; } } } } else { echo "
Seiten:  "; for ($i = 1; $i <= $page-1; $i++) { if ($frames == false) { echo "$i  "; } else { echo "$i  "; } } echo "$page  "; for ($i = $page+1; $i <= $anz_pages; $i++) { if ($frames == false) { echo "$i  "; } else { echo "$i  "; } } } echo "
"; } if (($button[1] == "unten") || ($button[1] == "oben_unten")) { if ($frames == false) { echo "
"; } else { echo "
"; } echo "
"; } //echo "
Powered by PHP-Gästebuch v1.58 - 2001-2003
"; } ?>