Location: PHPKode > projects > iPei Guestbook > ipei-guestbook/guestbook/tools.php
<?PHP

// iPei Guestbook v1.0 - v2.0 tools file
// (c) Paley Wu
// www.epistream.com

include "config.php";

echo "<html><title>Tools for iPei</title><body>";

if ($_GET['a'] == "process_mass_del")
{
	if ($_POST[en_pw] == $pw)
	{
		for ($c=$_POST[en_start];$c <= $_POST[en_end];$c++)
		{
			$DQuery = "DELETE FROM `$table` WHERE `entrynum` = $c";
			mysql_query($DQuery);
		}
		echo "<font size=2 face=arial>Entries $_POST[en_start] to $_POST[en_end] Deleted.<br><br><a href=tools.php>lets delete more</a></font>";
	}
	else
		echo "Invalid Password";
}
else
{
	echo "<form action=tools.php?a=process_mass_del method=POST>Entry Number Range To Be Deleted: <input type=text name=\"en_start\" size=3> to <input type=text name=\"en_end\" size=3> &nbsp; and Password: <input type=password name=\"en_pw\" size=8> <input type=submit name=submit value=\"Mass Delete (CANNOT BE UNDONE!)\">";;
}

echo "</body></html>";

?>
Return current item: iPei Guestbook