diff --git a/install.php b/install.php
index b177fd5d..07dbb32c 100644
--- a/install.php
+++ b/install.php
@@ -60,83 +60,7 @@ require_once __SHIMMIE_ROOT__."core/util.inc.php";
require_once __SHIMMIE_ROOT__."core/exceptions.class.php";
require_once __SHIMMIE_ROOT__."core/database.class.php";
-
-// repair console {{{
-/*
- * This file lets anyone destroy the database -- disable it
- * as soon as the admin is done installing for the first time
- */
-if(is_readable("data/config/shimmie.conf.php")) {
- session_start();
- echo '
';
- echo '
Shimmie Repair Console
';
-
- // Load the config
- require_once __SHIMMIE_ROOT__."core/sys_config.inc.php";
-
- if(
- (array_key_exists('dsn', $_SESSION) && $_SESSION['dsn'] === DATABASE_DSN) ||
- (array_key_exists('dsn', $_POST) && $_POST['dsn'] === DATABASE_DSN)
- ) {
- if (array_key_exists('dsn', $_POST) && !empty($_POST['dsn'])) {
- $_SESSION['dsn'] = $_POST['dsn'];
- }
-
- if(empty($_GET["action"])) {
- echo "
-
Basic Checks
- If these checks fail, something is broken; if they all pass,
- something
might be broken, just not checked for...
- ";
- eok("Images writable", is_writable("images"));
- eok("Thumbs writable", is_writable("thumbs"));
- eok("Data writable", is_writable("data"));
-
- /*
- echo "
New Database DSN
";
- echo "
-
- ";
- */
-
- echo "
-
Log Out
-
- ";
- }
- else if($_GET["action"] == "logout") {
- session_destroy();
- echo "
Logged Out
You have been logged out.
Main Shimmie Page";
- }
- }
- else {
- echo "
-
Login
-
Enter the database DSN exactly as in shimmie.conf.php (ie, as originally installed) to access advanced recovery tools:
-
-
- ";
- }
- echo "\t\t
";
- exit;
-}
-// }}}
+if(is_readable("data/config/shimmie.conf.php")) die("Already installed");
do_install();