$pass is a bad password"); if($act=="login") { if($pass == $password) { echo "

guestbook admin:

"; echo "

"; include("./config/gb_foot.inc"); exit; } } elseif($act == "inhalt") { if($pass != $password) die("sorry, $pass is a bad password"); include("./data/gb_data.dat"); ?>

- admin

edit and/or delete entries in the guestbook file

" method="POST"> \n"; echo "
\n"; echo "
\n"; echo "\n"; echo "
\n"; echo "keep it | lose it\n"; echo "


\n"; $count++; } echo "\n
\n"; echo "

\n:: back to the guestbook ::\n"; include("./config/gb_foot.inc"); exit; } elseif($act == "xchange") { if($pass != $password) die("sorry, $pass is a bad password"); include("./data/gb_data.dat"); $datei = fopen("./data/gb_data.dat", "w"); $count = "0"; if($datei) { fputs($datei, "", "!newline!", $newtext[$count]); //$newtext[$count] = htmlentities($newtext[$count]); //$newtext[$count] = ereg_replace("!newline!", "
", $newtext[$count]); fputs($datei, "\$text[] = \"$newtext[$count]\";\n"); fputs($datei, "\$datum[] = \"$datum[$count]\";\n"); $count++; } else { $count++; continue; } } } echo "

changes made successfully.

\n"; echo "

:: back ::\n"; include("./config/gb_foot.inc"); exit; } elseif($act == "badwords") { if($pass != $password) die("sorry, $pass is a bad password"); include("./data/gb_badwords.dat"); echo "

$hpname - bad word list

"; echo "enter words you would like replaced with
\n"; echo " $re_by\n"; echo "

\n"; echo "

\n"; echo "\n"; echo "\n"; $count = "0"; while($badword[$count] != "") { echo "bad word [saved] No. $count:
\n"; echo "keep it | \n"; echo " lose it

\n"; $count++; } $zahl = "1"; while($zahl < "4") { echo "bad word [new]:
\n"; $count++; $zahl++; } echo "

"; echo "

back to the guestbook\n"; include("./config/gb_foot.inc"); exit; } elseif($act == "b_write") { if($pass != $password) die("sorry, $pass is a bad password"); $datei = fopen("./data/gb_badwords.dat", "w"); if($datei) { $count = "0"; fputs($datei, "bad word(s) have been added

\n"; echo "

back\n"; include("./config/gb_foot.inc"); exit; } else { echo "

\n"; echo "

\n"; echo "admin password:

\n"; echo "\n"; echo "\n"; echo "

\n"; } //footer einfügen: include("./config/gb_foot.inc"); echo "

:: xGB admin ::"; echo "\n"; ?>