From b85387208ecfa9fbcb5cf735a1d91f971a1a174e Mon Sep 17 00:00:00 2001 From: Shish Date: Tue, 26 Jun 2012 22:21:45 +0100 Subject: [PATCH] remove non-functional repair console --- install.php | 78 +---------------------------------------------------- 1 file changed, 1 insertion(+), 77 deletions(-) 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 " -
-
- - - -
Database:
-
-
- "; - */ - - 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:

- -
-
- - - -
Database:
-
-
- "; - } - echo "\t\t
"; - exit; -} -// }}} +if(is_readable("data/config/shimmie.conf.php")) die("Already installed"); do_install();