diff --git a/install.php b/install.php
index e8e42732..938d8493 100644
--- a/install.php
+++ b/install.php
@@ -46,7 +46,64 @@ assert_options(ASSERT_BAIL, 1);
* as soon as the admin is done installing for the first time
*/
if(is_readable("config.php")) {
- echo "'config.php' exists -- install function is disabled";
+ session_start();
+?>
+
+
Shimmie Repair Console
+Basic Checks";
+ echo "If these checks fail, something is broken; if they all pass, ";
+ echo "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
";
+ echo "
+
+ ";
+ }
+ else if($_GET["action"] == "logout") {
+ session_destroy();
+ }
+ } else {
+ echo "
+
Login
+ Enter the database DSN exactly as in config.php (ie, as originally
+ installed) to access advanced recovery tools:
+
+
+ ";
+ }
+ echo "\t\t
";
exit;
}
require_once "core/compat.inc.php";
@@ -76,6 +133,16 @@ function check_im_version() {
}
return (empty($convert_check) ? 0 : 1);
}
+
+function eok($name, $value) {
+ echo "