diff options
-rw-r--r-- | installer/views/about_install.html.php (renamed from installer/pages/about_install.html.php) | 0 | ||||
-rw-r--r-- | installer/views/already_installed.html.php (renamed from installer/pages/already_installed.html.php) | 0 | ||||
-rw-r--r-- | installer/views/db_not_empty.html.php (renamed from installer/pages/db_not_empty.html.php) | 0 | ||||
-rw-r--r-- | installer/views/environment_errors.html.php (renamed from installer/pages/environment_errors.html.php) | 0 | ||||
-rw-r--r-- | installer/views/get_db_info.html.php (renamed from installer/pages/get_db_info.html.php) | 0 | ||||
-rw-r--r-- | installer/views/missing_db.html.php (renamed from installer/pages/missing_db.html.php) | 0 | ||||
-rw-r--r-- | installer/views/oops.html.php (renamed from installer/pages/oops.html.php) | 0 | ||||
-rw-r--r-- | installer/views/success.html.php (renamed from installer/pages/success.html.php) | 0 | ||||
-rw-r--r-- | installer/web.php | 20 |
9 files changed, 10 insertions, 10 deletions
diff --git a/installer/pages/about_install.html.php b/installer/views/about_install.html.php index 6ad2c242..6ad2c242 100644 --- a/installer/pages/about_install.html.php +++ b/installer/views/about_install.html.php diff --git a/installer/pages/already_installed.html.php b/installer/views/already_installed.html.php index f8fc5706..f8fc5706 100644 --- a/installer/pages/already_installed.html.php +++ b/installer/views/already_installed.html.php diff --git a/installer/pages/db_not_empty.html.php b/installer/views/db_not_empty.html.php index 754d46c6..754d46c6 100644 --- a/installer/pages/db_not_empty.html.php +++ b/installer/views/db_not_empty.html.php diff --git a/installer/pages/environment_errors.html.php b/installer/views/environment_errors.html.php index 7c31c1c2..7c31c1c2 100644 --- a/installer/pages/environment_errors.html.php +++ b/installer/views/environment_errors.html.php diff --git a/installer/pages/get_db_info.html.php b/installer/views/get_db_info.html.php index 3459948e..3459948e 100644 --- a/installer/pages/get_db_info.html.php +++ b/installer/views/get_db_info.html.php diff --git a/installer/pages/missing_db.html.php b/installer/views/missing_db.html.php index 1f93f08a..1f93f08a 100644 --- a/installer/pages/missing_db.html.php +++ b/installer/views/missing_db.html.php diff --git a/installer/pages/oops.html.php b/installer/views/oops.html.php index 141a4538..141a4538 100644 --- a/installer/pages/oops.html.php +++ b/installer/views/oops.html.php diff --git a/installer/pages/success.html.php b/installer/views/success.html.php index fbf5395d..fbf5395d 100644 --- a/installer/pages/success.html.php +++ b/installer/views/success.html.php diff --git a/installer/web.php b/installer/web.php index ddabcd19..25cc8d01 100644 --- a/installer/web.php +++ b/installer/web.php @@ -18,16 +18,16 @@ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ if (installer::already_installed()) { - $content = render("pages/success.html.php"); + $content = render("success.html.php"); } else { switch ($_GET["step"]) { default: case "welcome": $errors = check_environment(); if ($errors) { - $content = render("pages/environment_errors.html.php", array("errors" => $errors)); + $content = render("environment_errors.html.php", array("errors" => $errors)); } else { - $content = render("pages/get_db_info.html.php"); + $content = render("get_db_info.html.php"); } break; @@ -40,11 +40,11 @@ if (installer::already_installed()) { "type" => function_exists("mysqli_init") ? "mysqli" : "mysql"); if (!installer::connect($config)) { - $content = render("pages/invalid_db_info.html.php"); + $content = render("invalid_db_info.html.php"); } else if (!installer::select_db($config)) { - $content = render("pages/missing_db.html.php"); + $content = render("missing_db.html.php"); } else if (!installer::db_empty($config)) { - $content = render("pages/db_not_empty.html.php"); + $content = render("db_not_empty.html.php"); } else if (!installer::unpack_var()) { $content = oops("Unable to create files inside the <code>var</code> directory"); } else if (!installer::unpack_sql()) { @@ -53,7 +53,7 @@ if (installer::already_installed()) { $content = oops("Couldn't create var/database.php"); } else { list ($user, $password) = installer::create_admin($config); - $content = render("pages/success.html.php", array("user" => $user, "password" => $password)); + $content = render("success.html.php", array("user" => $user, "password" => $password)); } break; } @@ -61,15 +61,15 @@ if (installer::already_installed()) { include("install.html.php"); -function render($page, $args=array()) { +function render($view, $args=array()) { ob_start(); extract($args); - include($page); + include(DOCROOT . "installer/views/" . $view); return ob_get_clean(); } function oops($error) { - return render("pages/oops.html.php", array("error" => $error)); + return render("oops.html.php", array("error" => $error)); } function check_environment() { |