Fixing bug with installer. (thanks RainbowDash)
This commit is contained in:
parent
01306712b7
commit
983c0d96b8
22
install.php
22
install.php
@ -44,17 +44,6 @@
|
|||||||
assert_options(ASSERT_ACTIVE, 1);
|
assert_options(ASSERT_ACTIVE, 1);
|
||||||
assert_options(ASSERT_BAIL, 1);
|
assert_options(ASSERT_BAIL, 1);
|
||||||
|
|
||||||
/*
|
|
||||||
* This file lets anyone destroy the database -- disable it
|
|
||||||
* as soon as the admin is done installing for the first time
|
|
||||||
*/
|
|
||||||
if(is_readable("config.php")) {
|
|
||||||
session_start();
|
|
||||||
?>
|
|
||||||
<div id="iblock">
|
|
||||||
<h1>Shimmie Repair Console</h1>
|
|
||||||
<?php
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Compute the path to the folder containing "install.php" and
|
* Compute the path to the folder containing "install.php" and
|
||||||
* store it as the 'Shimmie Root' folder for later on.
|
* store it as the 'Shimmie Root' folder for later on.
|
||||||
@ -71,6 +60,17 @@ if(is_readable("config.php")) {
|
|||||||
require_once __SHIMMIE_ROOT__."core/util.inc.php";
|
require_once __SHIMMIE_ROOT__."core/util.inc.php";
|
||||||
require_once __SHIMMIE_ROOT__."core/database.class.php";
|
require_once __SHIMMIE_ROOT__."core/database.class.php";
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This file lets anyone destroy the database -- disable it
|
||||||
|
* as soon as the admin is done installing for the first time
|
||||||
|
*/
|
||||||
|
if(is_readable("config.php")) {
|
||||||
|
session_start();
|
||||||
|
?>
|
||||||
|
<div id="iblock">
|
||||||
|
<h1>Shimmie Repair Console</h1>
|
||||||
|
<?php
|
||||||
|
|
||||||
if (
|
if (
|
||||||
( array_key_exists('dsn', $_SESSION) && $_SESSION['dsn'] === DATABASE_DSN ) ||
|
( array_key_exists('dsn', $_SESSION) && $_SESSION['dsn'] === DATABASE_DSN ) ||
|
||||||
( array_key_exists('dsn', $_POST) && $_POST['dsn'] === DATABASE_DSN )
|
( array_key_exists('dsn', $_POST) && $_POST['dsn'] === DATABASE_DSN )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user