Location: PHPKode > projects > AlkalinePHP > uninstall.php
<?
//include("identify.php");
//include("levelten.inc");

?>


<!doctype html public "-//w3c//dtd html 3.2//en">

<html>

<head>
<title>Uninstalling SpatterTechPHP</title>
<meta name="GENERATOR" content="Arachnophilia 4.0">
<meta name="FORMATTER" content="Arachnophilia 4.0">
<?
//include("themes.inc");
?>
</head>

<body>


<?
echo "Loading settings....<br>";
include("load_settings.inc");
echo "..<b>Site name</b>: $site_name..<br>";
echo "..<b>Server</b>: $server..<br>";
echo "..<b>Database</b>: $database..<br>";
echo "..<b>DB user name</b>: $db_user_name..<br>";
echo "..<b>DB user password</b>: $db_user_password..<br>";
echo "complete<br>";

echo "Connecting to database....";
$connection = @mysql_connect("$server", "$db_user_name", "$db_user_password") or die("Couldn't connect.");
echo "complete<br>";

echo "Accessing database....";
$db = @mysql_select_db("$database", $connection) or die("Couldn't select database.");
echo "complete<br>";

include("generic_funcs.inc");


topheader();
echo "<b>Uninstalling SpatterTechPHP</b>";
botheader();
topcontent();

echo "Deleting table Forum...";
$sql = "DROP TABLE forum";
$result = mysql_query($sql, $connection) or die("Couldn't execute query.");
if ($result) {
	echo "done<br>";
}

echo "Deleting table Articles...";
$sql = "DROP TABLE articles";
$result = mysql_query($sql, $connection) or die("Couldn't execute query.");
if ($result) {
	echo "done<br>";
}

echo "Deleting table Messages...";
$sql = "DROP TABLE messages";
$result = mysql_query($sql, $connection) or die("Couldn't execute query.");
if ($result) {
	echo "done<br>";
}

echo "Deleting table Newscomments...";
$sql = "DROP TABLE newscomments";
$result = mysql_query($sql, $connection) or die("Couldn't execute query.");
if ($result) {
	echo "done<br>";
}

echo "Deleting table Themes...";
$sql = "DROP TABLE themes";
$result = mysql_query($sql, $connection) or die("Couldn't execute query.");
if ($result) {
	echo "done<br>";
}

echo "Deleting table Users...";
$sql = "DROP TABLE users";
$result = mysql_query($sql, $connection) or die("Couldn't execute query.");
if ($result) {
	echo "done<br>";
}

echo "Deleting table Settings...";
$sql = "DROP TABLE settings";
$result = mysql_query($sql, $connection) or die("Couldn't execute query.");
if ($result) {
	echo "done<br>";
}

echo "<br><br>SpatterTechPHP has been uninstalled";

 botcontent();
include("botpage.inc");

?>

</body>

</html>
Return current item: AlkalinePHP