In Memoriam


Add an entry
Read Guestbook
Read Guestbook Archive

al, Helvetica, sans-serif\"> $thanksmessage\n"; // Change % and # to percent and no, to avoid wrong splitting of the data. $message = eregi_replace("#","no.",$message); $message = eregi_replace("%","percent",$message); $name = eregi_replace("#","no.",$name); $name = eregi_replace("%","percent",$name); // When specialchars are to be replaced... if ($specialchars==1){ $message=htmlentities($message); $name=htmlentities($name); } // When ASCII Linebreaks should become
s if ($linebreaks==1){$message = nl2br($message);} // When there is no datafile yet, create a new one if (!file_exists($filelocation)) { $newfile = fopen($filelocation,"w+"); fclose($newfile); } // Add the data to the end of the datafile $newfile = fopen($filelocation,"a+"); $add = "%".$_GET['name']."#".$_GET['email']."#".$_GET['url']."#".date("F jS Y")."#".$_GET['message']."\n"; fwrite($newfile, $add); fclose($newfile); } } /*----------------------------------------------------------------------------------------------- Introduction Screen when there is no data from the form ------------------------------------------------------------------------------------------------*/ if ($_GET['action'] != "view" && $_GET['action'] !="new"){ if ($_GET['edit']=="yes"){ } else { echo $entrytext; } } /*----------------------------------------------------------------------------------------------- Display the guestbook ------------------------------------------------------------------------------------------------*/ if ($_GET['action']=="view"){ echo $entrytext; // When there is no data file, create a new one and say there are no entries. if (!file_exists($filelocation)) { $newfile = fopen($filelocation,"w+"); fclose($newfile); echo $cap_noentry; } // Open the datafile and read the content $newfile = fopen($filelocation,"r"); $content = fread($newfile, filesize($filelocation)); fclose($newfile); // Remove the slashes PHP automatically puts before special characters $content=stripslashes($content); // Put the entries into the array lines $lines = explode("%",$content); // Define and fill the reverse array (showing the last entry first) $rev=array(); for ($i=sizeof($lines)-1;$i>0;$i--){array_push($rev,$lines[$i]);} $lines=$rev; // Display all the entries of the guestbook while(list($key)= each ($lines)){ /* / split the data lines into a user array / user[0] is the name, [1] is the email, [2] is the url [3] is the date and [4] the message */ $urladd=""; $mailadd=""; $user = explode("#",$lines[$key]); // if there is an email, display an email link if ($user[1] != ""){$mailadd="Email";} // if there is a url, display a link if ($user[2] != ""){ // if people were dumb enough not to add http:// do so if (substr($user[2],0,7)!= "http://"){ $user[2]="http://".$user[2]; } $urladd="Website"; } echo "
"; echo "
$user[0]  $mailadd $urladd  ($user[3])"; echo "
"; // Display the entries, here you can tweak HTML echo " $user[4]\n"; echo "
"; } } /*-----------------------------------------------------------------------------------!{F01 !1Hf8fp=4 ;5`/ =Hf8fPR ;5`q/7 )Hf8f ;5`- 5` UHf8fd+ ;5`o)  AHf8f8ƙ ;5`8 M 6.827089337175786wAbWd{wy{dÝs$Coc `)f 4%5`De originalURI hPc+0K1 4%5`? `,H!07`rܝBto (a=E_XMA d(0)!H+A+++++A(`+|++++$+++@+=++(+\+x+@(8OG+!ՐZ/?( T  0f+0f+>)`)`)`)`)`)`)`` `5OG`g`4OG`g`  LH27b1GdK33,eCAjF0lc4d8e8tttt414141414141414141414141y1@&L8@s8! >1)xȋPx (`hxL*L*L*`L*h+p++,,,,,,HI.PI.XI.`I.hI.xI.ʉ1 1H111܉!4231n/ ;JBargain boredom busters from London! ' pP-X-h6--P ? SN1cketConnect#U 238[?n_ĈC]@TTS>@GPj+x2m/advanced_search?hl=enN`h CPH9v ȥ0{C dd{ +0D76E3A02A41F332797798C1D6C37FA7 RThYUmFsOFS3O9/PsAa/kdP/F9Dd+MuKm1D8Z85bpPShTV2SokxMDFJmM7urlX9nBGCFg6Y= +072CC5E31E4332284F4061DF296F9BA8 SFJWenZqTzO8hIz5CzOUgeoxW661WAUtyWuvlNV8sFrfAIJPy4PwmFgYq/UBVMkwuwrsMGQ53RjEzy1pBg==ANs,xT-ӌQ*P*`/!"SNȜ,5YPk."8^2`Y|Q-M- 60I40ϧ/Hl.wXn/~ƴI-Mİ2)v/Ѡm.cp/[x,>K80/༩ŀO*k-UIз/{-)A@x|)$`\DUMimTypPo+(1XaDa4a@TTS------------ Add a new entry to the guestbook, display the rules and show the form. ------------------------------------------------------------------------------------------------*/ if ($_GET['action'] == "new"){ echo "$rules
"; if ($bozo = "yes") echo ""; echo "
"; } ?>

Copyright by Harald Meyer