diff --git a/.travis.yml b/.travis.yml
index 5d4b46c0..880a0b28 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -38,7 +38,7 @@ install:
fi
- if [[ "$DB" == "sqlite" ]]; then echo ' data/config/auto_install.conf.php ; fi
- composer install
- - php install.php
+ - php index.php
script:
- vendor/bin/phpunit --configuration tests/phpunit.xml --coverage-clover=data/coverage.clover
diff --git a/install.php b/core/_install.php
similarity index 60%
rename from install.php
rename to core/_install.php
index b2e7508d..d84fbbc4 100644
--- a/install.php
+++ b/core/_install.php
@@ -25,41 +25,8 @@ date_default_timezone_set('UTC');
Shimmie Installation
-
-
+
+
@@ -92,19 +59,11 @@ date_default_timezone_set('UTC');
assert_options(ASSERT_ACTIVE, 1);
assert_options(ASSERT_BAIL, 1);
-/*
- * Compute the path to the folder containing "install.php" and
- * store it as the 'Shimmie Root' folder for later on.
- *
- * Example:
- * __SHIMMIE_ROOT__ = '/var/www/shimmie2/'
- *
- */
-define('__SHIMMIE_ROOT__', trim(rtrim(dirname(__FILE__), '/\\')) . '/');
-
// Pull in necessary files
-require_once __SHIMMIE_ROOT__."core/exceptions.class.php";
-require_once __SHIMMIE_ROOT__."core/database.class.php";
+require_once "core/exceptions.php";
+require_once "core/cacheengine.php";
+require_once "core/dbengine.php";
+require_once "core/database.php";
if(is_readable("data/config/shimmie.conf.php")) die("Shimmie is already installed.");
@@ -160,6 +119,7 @@ function do_install() { // {{{
return;
}
+ define("DEBUG_SQL", false);
define("DATABASE_KA", true);
install_process();
} // }}}
@@ -206,8 +166,8 @@ function ask_questions() { // {{{
$db_p = in_array("pgsql", $drivers) ? '' : "";
$db_s = in_array("sqlite", $drivers) ? '' : "";
- $warn_msg = $warnings ? "Warnings
".implode("\n
", $warnings) : "";
- $err_msg = $errors ? "Errors
".implode("\n
", $errors) : "";
+ $warn_msg = $warnings ? "Warnings
".implode("\n", $warnings) : "";
+ $err_msg = $errors ? "
Errors
".implode("\n", $errors) : "";
print <<
@@ -218,7 +178,7 @@ function ask_questions() { // {{{
$err_msg
Database Install
-