<?php
//error_reporting (E_ALL);
include ("gbdata/config.php");
if(trim($charset) == "utf-8") {header('content-type: text/html; charset=utf-8');} ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<title>forum W.W. Anger</title>
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="text.css" type="text/css" />
<style media="screen" type="text/css"> 
@import url("styles/style.css");.Stil1 {color: #db2f2d}
h1 {
	font-size: 14px;
}
</style>
<!--[if lte IE 6.5999]>
<style media="screen" type="text/css"> @import url("ie.css");</style>
<![endif]-->
</head>
<body>
	<div id="header_container_works">
	  
	  <h1 align="left" id="header_works"><img src="img/header_anger.gif" alt="Anger" /></h1>
</div>
<div id="menu_works">	
	<ul id="menu">
		<li><a href="../home.html">home</a></li>
		<li><a href="../about.html">about</a></li>
		<li><a href="../biographie.html">biographie</a></li>
		<li><a href="../works.html">works</a></li>
		<br /><br />
		<li><a href="../exhibition.html">exhibition</a></li>
		<li><a href="../gallery/gallery_01/gallery_01.htm">gallery</a>
		<li>
		<li id="active">forum</li><br /><br />
		<li><a href="../impressum.html">contact /<br />impressum</a></li>
         <li><a href="../credits.html">credits</a></li>
         <li><a href="http://www.bibliothekderprovinz.at/" target="_blank">subSYSTEMS<br />- das Buch</a></li>
	</ul>
</div>

<div id="content_works">
<?php
###############################################################################
#                                                                             #
#      Gaestebuch @www.rottnet.de Version 4.0 vom 02.02.2007                  #
#           Autor: Astrid Sch&auml;fer Extertal / Germany                          #
#                                                                             #
###############################################################################
$back = "<p><a class=\"navi\" title=\"zur&uuml;ck zur &Uuml;bersicht\" href=\"?\">back to entries</a></p>";echo "$titel1";$gbfile = "gbdata/gbook.txt";$datum = date("d.m.Y");
$zeit = date("H:i");$teiler = "<acronym> | </acronym>";if (isset($_GET['show'])) $show = $_GET['show'];
if (isset($_GET['id'])) $id = $_GET['id'];if (isset($_GET['pages'])) $pages = $_GET['pages'];
if (isset($_GET['start'])) $start = $_GET['start'];if (isset($_GET['ende'])) $ende = $_GET['ende'];
if (isset($_POST['pass'])) $pass = $_POST['pass'];global $show, $pages, $start, $ende, $pass, $id;
$sf = file("gbdata/smilie.txt");$sf = str_replace("../","",$sf);
if(!empty($sf[0])) {$s0 = "$sf[0]";}if(!empty($sf[1])) {$s1 = "$sf[1]";}
if(!empty($sf[2])) {$s2 = "$sf[2]";}if(!empty($sf[3])) {$s3 = "$sf[3]";}
if(!empty($sf[4])) {$s4 = "$sf[4]";}if(!empty($sf[5])) {$s5 = "$sf[5]";}
if(!empty($sf[6])) {$s6 = "$sf[6]";}if(!empty($sf[7])) {$s7 = "$sf[7]";}
if(!empty($sf[8])) {$s8 = "$sf[8]";}if(!empty($sf[9])) {$s9 = "$sf[9]";}
$comment="
<!-- Script by www.rottnet.de -->
";if($show == ""){$file = file("$gbfile");
$anzahl = count($file);if($anzahl>$blaettern){$ende=$blaettern;}
else{$ende=$anzahl;}$start=0;}if($show == "" or $show == "cut"){echo "$comment";$file = file("$gbfile");$anzahl = count($file); echo "$titel2"; ?>
<p><a name="top" id="top"></a></p><p><a class="navi" title="Ins G&auml;stebuch schreiben" href="?show=write">new entry</a></p><?php if($anzahl == 0) { ?>
<p><span class="de_textschwarz">At present <var>no</var> entries are in forum W.W. Anger</span>.</p>
<?php }if($anzahl == 1) { ?>
<p class="de_textschwarz">At present <var>1</var> entry is in forum W.W. Anger.</p>
<?php } $next = $anzahl+1;if($anzahl > 1) { ?><p class="de_textschwarz">At present <var><?php echo "$anzahl"; ?></var> entries are in forum W.W. Anger.
  <?php } site (); ?>
</p><hr /><?php
if($anzahl>0) {for($a=$start;$a<$ende;$a++){$split = explode("|",$file[$a]);$t = $split[3];$name = $split[1];$ort = $split[2];clear (); ?>
<h3 class="eintrag">entry on <var><?php echo "$split[6]"; ?></var> at <var><?php echo "$split[7]"; ?></var></h3>
<div class="post"><address><?php if(!empty ($split[2])) {echo "<em>$kurzname</em> from $kurzort";}else{echo "<em>$split[1]</em>";} ?></address><div class="txt"><p><?php echo "$t"; ?></p></div></div><address><?php if(!empty ($split[4])) {if(eregi("http://", "$split[4]")) {?>
<a href="<?php echo "$split[4]"; ?>"><img src="img/home.gif" width="16" height="16" alt="Besuche <?php echo "$split[1]"; ?> s Homepage" /></a> <?php } else {?> <a href="http://<?php echo "$split[4]"; ?>"><img src="img/home.gif" width="16" height="16" alt="Besuche <?php echo "$split[1]"; ?> s Homepage" /></a> <?php }} if(!empty ($split[4])  && !empty ($split[5])) {echo "$teiler";}if(!empty ($split[5])) {
?> <a href="mailto:<?php echo "$split[5]"; ?>"><img src="img/mail.gif" width="16" height="16" alt="E-Mail an <?php echo "$split[1]"; ?>" /></a> <?php }if(!empty ($split[4])  or !empty ($split[5])) {echo "$teiler";}?> <a href="#top"><img src="img/top.gif" width="17" height="16" alt="Seitenanfang" /></a> </address><hr class="none" /><?php }?><hr /><?php site ();}?><p><a href="admin/index.php"><img src="img/key.gif" width="12" height="15" alt="Adminpanel" /></a></p><?php }if($show == "write") {echo "$titel3$back";form();}
if (isset($_POST['show'])) $show = $_POST['show'];if($show == "Vorschau") {echo "$titel3$back";
?> <h3 class="de_textschwarz_fett">preview</h3> 
<?php if (isset($_POST['name'])) $name = $_POST['name'];if (isset($_POST['ort'])) $ort = $_POST['ort'];if (isset($_POST['text'])) $text = $_POST['text'];if (isset($_POST['home'])) $home = $_POST['home'];if (isset($_POST['mail'])) $mail = $_POST['mail'];clear (); $br=chr(13).chr(10);
$mail = trim($mail);$home = trim($home);$text = strip_tags($text);$text = stripslashes($text);$text = wordwrap($text, $wordwrap, " ", 1);$mail = str_replace("+","@",$mail);$text = preg_replace('/(\s{4})\s+/', '\1', $text);$text = str_replace("$br","<br />",$text);if(!empty($sf[0])) {$text = str_replace(":-)","$s0",$text);}if(!empty($sf[1])) {$text = str_replace(":-D","$s1",$text);} if(!empty($sf[2])) {$text = str_replace(":-o","$s2",$text);}if(!empty($sf[3])) {$text = str_replace(":-/","$s3",$text);} if(!empty($sf[4])) {$text = str_replace(":-(","$s4",$text);} if(!empty($sf[5])) {$text = str_replace(":-s","$s5",$text);}if(!empty($sf[6])) {$text = str_replace(":-w","$s6",$text);} if(!empty($sf[7])) {$text = str_replace(":-x","$s7",$text);} if(!empty($sf[8])) {$text = str_replace(":-y","$s8",$text);} if(!empty($sf[9])) {$text = str_replace(":-z","$s9",$text);}?>
<h3 class="eintrag">entry on  <var><?php echo "$datum"; ?></var> at <var><?php echo "$zeit"; ?></var></h3>
<div class="post"><address><?php if(!empty ($kurzort)) {echo "<em>$kurzname</em><br />aus $kurzort";}else{echo "<em>$kurzname</em>";}?> </address><div class="txt"><p><?php echo "$text"; ?></p></div></div><address><?php if(!empty ($home)) {if(eregi("http://", "$home")) {?><a href="<?php echo "$home"; ?>"><img src="img/home.gif" width="16" height="16" alt="Besuche <?php echo "$name"; ?> s Homepage" /></a><?php } else {?> <a href="http://<?php echo "$home"; ?>"><img src="img/home.gif" width="16" height="16" alt="Besuche <?php echo "$name"; ?> s Homepage" /></a> <?php }}if(!empty ($home)  && !empty ($mail)) {echo "$teiler";}if(!empty ($mail)) {?> <a href="mailto:<?php echo "$mail"; ?>"><img src="img/mail.gif" width="16" height="16" alt="E-Mail an <?php echo "$name"; ?>" /></a> <?php }if(!empty ($home)  or !empty ($mail)) {echo "$teiler";}?> <a href="#top"><img src="img/top.gif" width="17" height="16" alt="Seitenanfang" /></a></address><?php
form();}if($show == "data") {echo "$titel3$back";if (isset($_POST['show'])) $show = $_POST['show']; if (isset($_POST['name'])) $name = $_POST['name']; if (isset($_POST['ort'])) $ort = $_POST['ort']; if (isset($_POST['text'])) $text = $_POST['text']; if (isset($_POST['home'])) $home = $_POST['home']; if (isset($_POST['mail'])) $mail = $_POST['mail']; if (isset($_POST['summant1'])) $summant1 = $_POST['summant1']; if (isset($_POST['summant2'])) $summant2 = $_POST['summant2']; if (isset($_POST['result'])) $result = $_POST['result'];$mail = str_replace("+","@",$mail);$error = false;
$error1 = "";$error2 = "";$error3 = "";$error4 = "";$error5 = "";$error6 = "";$error7 = ""; if(!(strlen(trim($name)))){$error1 = "<li>$e1</li>";$error = true;} if(eregi("http://", $name) or eregi("www.", $name) or eregi("url", $name) && trim($url_sperre == "1")){ $error2 = "<li>$e2</li>";
$error = true;} if(eregi("http://", $ort) or eregi("www.", $ort) or eregi("url", $ort) && trim($url_sperre == "1")){ $error3 = "<li>$e3</li>";$error = true;} if(!eregi(".+@.+\..+", $mail)&& !empty($mail)){ $error4 = "<li>$e4</li>";$error = true;} if(!(strlen(trim($text)))){$error5 = "<li>$e5</li>";$error = true;} if(eregi("http://", $text) or eregi("www.", $text) or eregi("url", $text) && trim($url_sperre == "1")){$error6 = "<li>$e6</li>";$error = true;} if($summant1+$summant2 != $result  && trim($captcha == "1")){$error7 = "<li>$e7</li>";$error = true;} if($error == true) {
echo "$e<ol>$error1$error2$error3$error4$error5$error6$error7</ol>";form();}else{if(trim($mailinfo) == "1") {$betreff = "forum W.W. Anger";$body = "Es wurde ein neuer Eintrag im forum W.W. Anger hinterlassen:\n
Name: $name \n Nachricht:
$text";
mail("$webmaster","$betreff","$body\n");}$br=chr(13).chr(10);
$name = str_replace("|","&#921;",$name);$name = strip_tags($name);$name = stripslashes($name);
$ort = str_replace("|","&#921;",$ort);$ort = strip_tags($ort);$ort = stripslashes($ort);
$mail = trim($mail);$mail = str_replace("|","&#921;",$mail);$home = trim($home); $home = str_replace("|","&#921;",$home); $text = str_replace("|","&#921;",$text); $text = strip_tags($text);
$text = stripslashes($text);if(trim($br_spam == "1")) {$text = preg_replace('/(\s{4})\s+/', '\1', $text);}$text = str_replace("$br","<br />",$text);$file=file("$gbfile");$fp=fopen("$gbfile","r"); $inhalt=fgets($fp,1000);$zeile=explode("|",$inhalt); $next=$zeile[0]+1;$z = filesize($gbfile);
$ax = str_replace(")","",$name);$ax = str_replace("(","",$ax);$bx = str_replace(")","",$zeile[1]);
$bx = str_replace("(","",$bx);$cx = str_replace(")","",$text);$cx = str_replace("(","",$cx);
$dx = str_replace(")","",$zeile[3]);$dx = str_replace("(","",$dx);if ($z>0 && eregi("$ax",$bx) && (eregi("$cx",$dx))){ ?> <h2 class="de_textschwarz_fett">reloadprevention</h2>
<p class="de_textschwarz">This entry allready exists . Filestore not possible.</p>
<?php } else { $fp=fopen("$gbfile","w"); fputs($fp,"$next|$name|$ort|$text|$home|$mail|$datum|$zeit|$br");fclose($fp);$fp=fopen("$gbfile","a+");
$gesamt=count($file);for($i=0;$i<$gesamt;$i++){fputs($fp,"$file[$i]");}fclose($fp); ?>
<h2 class="de_textschwarz">Thanks for your entry. </h2>
<p class="de_textschwarz">Filestore successfull.</p>
<?php }}}function form () {$sfx = file("gbdata/smilie.txt"); if (isset($_POST['show'])) $show = $_POST['show']; if (isset($_POST['name'])) $name = $_POST['name']; if (isset($_POST['ort'])) $ort = $_POST['ort']; if (isset($_POST['text'])) $text = $_POST['text']; if (isset($_POST['home'])) $home = $_POST['home']; if (isset($_POST['mail'])) $mail = $_POST['mail']; if (isset($_POST['summant1'])) $summant1 = $_POST['summant1']; if (isset($_POST['summant2'])) $summant2 = $_POST['summant2']; if (isset($_POST['result'])) $result = $_POST['result']; $br=chr(13).chr(10); global $br,$show, $ende, $pass, $name, $ort, $text, $home, $mail, $summant1, $summant2, $result, $title2, $back, $index,$s0,$s1,$s2,$s3,$s4,$s5,$s6,$s7,$s8,$s9,$sf,$configfile,$charset,$captcha; $summant1 = rand(1,10); $summant2 = rand(1,10); ?><form accept-charset="<?php echo "$charset"; ?>" action="?show=data" method="post"><fieldset>
<legend class="de_textschwarz_fett">new entry </legend>
<p class="de_textschwarz">[ alternative  <dfn>@</dfn> = <dfn>+</dfn> ]</p>
<p><span class="links">
<label for="name" class="de_textschwarz"><strong>name:</strong></label>
</span><input id="name" value="<?php echo "$name"; ?>" name="name" type="text" /> 
<span class="de_rot_fett">required*</span><br />
<span class="links">
<label for="ort" class="de_textschwarz">city:</label>
</span>
<input id="ort" value="<?php echo "$ort"; ?>" name="ort" type="text" />
<br /><span class="links">
<label for="mail" class="de_textschwarz">mail:</label>
</span><input id="mail" value="<?php echo "$mail"; ?>" name="mail" type="text" />
<br /><span class="links">
<label for="home" class="de_textschwarz">homepage:</label>
</span><input id="home" value="<?php echo "$home"; ?>" name="home" type="text" />
</p>

<label for="text" class="de_textschwarz_fett"><strong>your entry:</strong></label>
<br /><textarea cols="50" rows="8" id="text" name="text"><?php echo "$text"; ?></textarea></p><?php if(trim($captcha) == "1") { ?><h3>to prevent malpractice please tackle this:</h3>
<label for="summe"></label>
<input value="<?php echo "$summant1"; ?>" name="summant1" type="hidden" /><input value="<?php echo "$summant2"; ?>" name="summant2" type="hidden" /><dfn><?php echo "$summant1"; ?></dfn> + <dfn><?php echo "$summant2"; ?></dfn> = <input size="2" id="summe" value="<?php echo "$result"; ?>" name="result" type="text" /> ? <?php }?><p><input value="submit" class="de_textschwarz" type="submit" />
<input name="show" value="preview" class="de_textschwarz" type="submit" />
</p></fieldset></form><?php echo "$back";}
function site () {global $anzahl,$blaettern,$start,$ende,$teiler,$pages; if($anzahl>$blaettern){$pages=ceil($anzahl/$blaettern);$startid=0;$endid=$blaettern; ?>
<div class="seite"><span class="de_textschwarz">site:</span> 
  <?php if($start == 0) {echo "1 ";} else {?><a title="Seite 1" href="?show=cut&amp;start=<?php echo "$startid"; ?>&amp;ende=<?php echo "$endid"; ?>">1</a> <?php }}for($b=2;$b<$pages+1;$b++){if($endid<$anzahl){$startid+=$blaettern;$endid+=$blaettern;} if($endid>$anzahl){$endid=$anzahl;}$c = ceil ($ende/($ende-$start));if($c == $b or $endid == $ende) {
echo "$teiler $b ";}else{echo "$teiler"; ?> <a title="Seite <?php echo "$b"; ?>" href="?show=cut&amp;start=<?php echo "$startid"; ?>&amp;ende=<?php echo "$endid"; ?>"><?php echo "$b"; ?></a> <?php }}if($anzahl>$blaettern){ ?></div> 
<?php }}
function clear () {global $t,$sf,$s0,$s1,$s2,$s3,$s4,$s5,$s6,$s7,$s8,$s9,$configfile,$wordwrap,$name,$kurzname,$ort,$kurzort,$cutword; $t = wordwrap($t, $wordwrap, " ", 1); $name = trim($name); $langname = strlen($name); if($langname > $cutword) {$cutname = substr($name, 0, $cutword); $kurzname = "$cutname..."; } else {
$kurzname = $name; } $ort  = trim($ort); $langort = strlen($ort); if($langort > $cutword) {$cutort = substr($ort, 0, $cutword); $kurzort = "$cutort...";} else{$kurzort = $ort;} if(!empty($sf[0])) {$t = str_replace(":-)","$s0",$t);} if(!empty($sf[1])) {$t = str_replace(":-D","$s1",$t);} if(!empty($sf[2])) {$t = str_replace(":-o","$s2",$t);} if(!empty($sf[3])) {$t = str_replace(":-/","$s3",$t);} if(!empty($sf[4])) {$t = str_replace(":-(","$s4",$t);} if(!empty($sf[5])) {$t = str_replace(":-s","$s5",$t);} if(!empty($sf[6])) {$t = str_replace(":-w","$s6",$t);} if(!empty($sf[7])) {$t = str_replace(":-x","$s7",$t);} if(!empty($sf[8])) {$t = str_replace(":-y","$s8",$t);} if(!empty($sf[9])) {$t = str_replace(":-z","$s9",$t);} }?><p>
</p></div>
<br /><br /><span class="de_textschwarz">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&copy; 2006 Arge W.W. Anger</span>

</body>
</html>