Here is the script
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Setup PowerBloggin'</title>
</head>
<body>
<?php
require("../../config.php");
$step = $_GET["step"];
if ($step == "1") {
?>
<h1>Set Up Your Blog</h1>
<p>
To proceed you must edit your config file found in the directory you installed your blog.
You must supply the database name, username, password, and hostname (usually just 'localhost').
</p>
<form action="index.php" method="get">
<input type="hidden" name="step" value="2" />
<input type="submit" value="Next" />
</form>
<?php
} else if ($step == "2") {
$sql = "
CREATE TABLE pb_pages (
ID MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
Title LONGTEXT NOT NULL,
SWF LONGTEXT NOT NULL,
Image LONGTEXT NOT NULL,
Description LONGTEXT NOT NULL,
Mirror1 LONGTEXT NOT NULL,
Mirror2 LONGTEXT NOT NULL,
Mirror3 LONGTEXT NOT NULL,
Mirror4 LONGTEXT NOT NULL,
Rating MEDIUMINT,
Views MEDIUMINT
) ENGINE = MyISAM;";
mysql_query($sql);
?>
<h1>Admin Details</h1>
<form action="index.php?step=3" method="post">
<label for="firstname">First Name: </label>
<input type="text" name="firstname" />
<br /><br />
<label for="lastname">Last Name: </label>
<input type="text" name="lastname" />
<br /><br />
<label for="username">Username: </label>
<input type="text" name="username" value="admin" />
<br /><br />
<label for="dispname">Display Name: </label>
<input type="text" name="dispname" />
<br /><br />
<label for="password">Password: </label>
<input type="password" name="password" />
<br /><br />
<input type="submit" value="Next" />
</form>
<?php
$sql = "
CREATE TABLE pb_user (
FirstName LONGTEXT NOT NULL,
LastName LONGTEXT NOT NULL,
DisplayName LONGTEXT NOT NULL,
Username LONGTEXT NOT NULL,
Password LONGTEXT NOT NULL,
UserLevel LONGTEXT NOT NULL
) ENGINE = MyISAM;";
mysql_query($sql);
$firstname = $_POST["firstname"];
$lastname = $_POST["lastname"];
$dispname = $_POST["dispname"];
$username = $_POST["username"];
$password = $_POST["password"];
$userlevel = "admin";
$sql = "INSERT INTO pb_user VALUES ('$firstname', '$lastname', '$dispname', '$username', '$password', '$userlevel');"
mysql_query($sql);
} else if($step == "3") {
?>
<h1>Blog Details</h1>
<form action="index.php?step=4" method="post">
<label for="name">Blog Title: </label>
<input type="text" name="name" />
<br /><br />
<label for="desc">Description Line: </label>
<input type="text" name="desc" value="It's a Blog" />
<br /><br />
<input type="submit" value="Next" />
</form>
<?php
} else if ($step == "4") {
$sql = "
CREATE TABLE pb_theme (
Folder LONGTEXT NOT NULL
) ENGINE = MyISAM;";
mysql_query($sql);
$sql = "INSERT INTO pb_theme VALUES ('RandomatedGames')";
mysql_query($sql);
$sql = "
CREATE TABLE pb_settings (
Name LONGTEXT NOT NULL,
Description LONGTEXT NOT NULL,
Url LONGTEXT NOT NULL
) ENGINE = MyISAM;";
mysql_query($sql);
$sql = "
CREATE TABLE pb_nav (
Page LONGTEXT NOT NULL,
PID LONGTEXT NOT NULL
) ENGINE = MyISAM;";
mysql_query($sql);
$name = $_POST["name"];
$desc = $_POST["desc"];
$rurl = 'http';
if ($_SERVER["HTTPS"] == "on") {$rurl .= "s";}
$rurl .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$rurl .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"];
} else {
$rurl .= $_SERVER["SERVER_NAME"];
}
$url = str_replace("/pbadmin/setup/index.php?step=4", "", $rurl);
$sql = "INSERT INTO pb_settings VALUES ('$name', '$desc', '$url');"
mysql_query($sql);
?>
<h1>Your Blog Is Now Setup!</h1>
<p>
Your blog is setup and ready to go. You can now return your homepage and start Bloggin!<br />
But before you do it is recommended that you delete this directory/folder (setup), otherwise anyone
will be able to become an admin
</p>
<p><a href="<?php echo $url; ?>">Go to your homepage</a></p>
<?php
}
?>
</body>
</html>
Basically when i visit this script in my browser it says “file not found”
I have absolutely no idea why this is happening so please, please help