Bevor du das Justice Guestbook nutzen kannst, mußt die die install.php und die update.php löschen

"; echo "ACHTUNG, die Dateien erst löschen, wenn Sie ausgeführt wurden!!!!"; die; } require("globalfuncs.php"); if(!isset($action)) { include("htmlheader.php"); $getents = getentries(); $allentries = $db_sets->num_rows($getents); $limit = getsets("postsperpage"); $getents = getlimitentries($next,$limit); $welcometext = getsets("welcome_text"); echo "". nl2br($welcometext) ."

 "; echo "\n"; echo "\n\n"; echo "\n"; echo "\n"; echo "\n\n"; while($entries = $db_sets->fetch_array($getents)) { $id = $entries[id]; $name = $entries[name]; $email = $entries[email]; $homepage = $entries[homepage]; $location = $entries[location]; $text = nl2br($entries[entry]); $date = $entries[8]; $text = stripslashes($text); $text = nolongwords($text); if(getsets("censor") == "1") $text = censortext($text); if(getsets("smilies") == "1") $text = smiletext($text); echo "\n"; echo "\n"; echo "\n\n"; } echo ""; echo "\n"; echo "\n"; echo "\n"; echo ""; echo "
"; echo "" . getsets("addentrylink_text") . "\n"; echo "" . getsets("totalentries_text") . " $allentries         ". getsets("pages_text") ." "; //show pages of jgb for($pages = 0;$pages<$allentries/$limit;$pages++) { $next = $pages * $limit; $page = $pages + 1; echo "$page  "; } echo "
" . getsets("name_text") . "" . getsets("entry_text") . "
$name
\n"; echo ""; echo "" . getsets("location_text") . " $location"; echo "
" . getsets("postdate_text") . " $date
\n"; echo "$text
"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
\n"; if($email != "") echo "\""      "; if($homepage != "") { $homepage = checkurl($homepage); echo "\""      "; } echo "\"""; echo "\"IP\"
"; echo "
 
\""
"; include("cfooter.php"); //you are not allowed to delete this include echo "
\n"; include("htmlfooter.php"); } //show addentry if($action == "addentry") { include("htmlheader.php"); ?> ". nl2br($welcometext) .""; if($checkfields == "false") { $checkemail = is_email($email); if($checkemail == false) $emailsigncolor = ""; if($name == "") { $namesigncolor = ""; } if($text == "") { $textsigncolor = ""; } echo "

" . getsets("notfilled_text") . "

"; } echo "

"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; if(getsets("smilies") == "1") { echo ""; echo ""; echo ""; echo ""; } echo ""; echo ""; echo ""; echo ""; echo ""; echo "

"; echo "

"; echo ""; echo "

" . getsets("tbentryheader_text") . "
$namesigncolor" . getsets("name_text") . " *
$emailsigncolor" . getsets("email_text") . " *
" . getsets("homepage_text") . "
" . getsets("location_text") . "
$textsigncolor" . getsets("entry_text") . " *
Smilies$smilecode
"; echo "

* " . getsets("entryrequire_text") . ""; echo "

 
"; echo "
"; echo "
 
"; include("cfooter.php"); //you are not allowed to delete this include echo "
\n"; include("htmlfooter.php"); } if($action == "checkfields") { $checkemail = is_email($email); if($name == "") { $checkname = "false"; } if($text == "") { $checktext = "false"; } $url = ""; if($checkname == "false" OR $checktext == "false" OR $checkemail == false) { $text = urlencode($text); header("location: jgb.php?action=addentry&spamid=$spamid&checkfields=false&name=$name&email=$email&homepage=$homepage&text=$text&location=$location"); } else { $ip = $REMOTE_ADDR; $host = $REMOTE_HOST; $date = date("y-m-d H:i:s"); $checkspam = checkspam($spamid); if(getsets("moderate") == 1) $activekey = 1; else $activekey = 0; if($checkspam == "no") { $entryinsert_rs = $db_sets->query("INSERT INTO $table_entries (name,email,homepage,location,entry,ipaddress,hostname,entrydate,active,spamid) VALUES ('$name','$email','$homepage','$location','$text','$ip','$hostname','$date','$activekey','$spamid')"); if(getsets("emailtomaster") == 1) { emailtomaster($name,$email,$homepage,$location,$text,$ip,$hostname,$date); } if(getsets("emailtouser") == 1) { emailtouser($name,$email,$homepage,$location,$text,$ip,$hostname,$date); } } header ("location: jgb.php?action=thankyou"); } } if($action == "thankyou") { include("htmlheader.php"); echo ""; echo "

 

" . nl2br(getsets("thankyou_text")) . ""; echo "

" . getsets("backtogb_text") . "

 "; include("cfooter.php"); //you are not allowed to delete this include include("htmlfooter.php"); } //edit or delete entry from guestbook if($action == "edit") { include("htmlheader.php"); $getentry_rs = getoneentry($id); $getentry = $db_sets->fetch_array($getentry_rs); $text = $getentry[entry]; echo "

"; echo ""; echo ""; echo "\n"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
Bearbeite oder lösche die Nachricht
 "; echo "Nachricht löschen!?! Um die Nachricht zu löschen, einfach Checkbox klicken.
Admin Benutzername
Admin Passwort
Bearbeitbare Nachricht
 
"; echo "

"; echo "
 
"; include("cfooter.php"); //you are not allowed to delete this include echo "
\n"; include("htmlfooter.php"); } if($action == "showip") { include("htmlheader.php"); echo "
"; echo ""; echo ""; echo "\n"; echo ""; echo ""; if($username == $adminusername && $password == $adminuserpass) { $getentry_rs = getoneentry($id); $getentry = $db_sets->fetch_array($getentry_rs); $ip = $getentry[ipaddress]; $date = $getentry[8]; echo ""; echo ""; echo ""; echo ""; } else { echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } echo ""; echo ""; echo ""; echo "
IP-Adresse anzeigen
IP-Adresse: $ipEintrag vom: $date
Admin Benutzername:
Admin Passwort:
 
"; echo "

"; echo "
 
"; echo "Zurück zum Gästebuch

"; include("cfooter.php"); //you are not allowed to delete this include echo "

\n"; include("htmlfooter.php"); } if($action == "editentry") { if($username == $adminusername && $password == $adminuserpass) { if(isset($delete)) $entryedit_rs = $db_sets->query("DELETE FROM $table_entries WHERE id='$id'"); else $entryedit_rs = $db_sets->query("UPDATE $table_entries SET entry = '$text' WHERE id = '$id'"); } header("location: jgb.php"); } ?>