diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-10-16 02:33:55 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-10-16 02:33:55 +0000 |
commit | 17c17807cc0b63d322d56acfae4f30399041cdb5 (patch) | |
tree | fe780bd74f828ab2fc9c107c0bb390f3a18b74c4 /install.php | |
parent | 721763663962364485e5a9958854a6311f32298b (diff) | |
download | elgg-17c17807cc0b63d322d56acfae4f30399041cdb5.tar.gz elgg-17c17807cc0b63d322d56acfae4f30399041cdb5.tar.bz2 |
Standardized files
git-svn-id: http://code.elgg.org/elgg/trunk@3553 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'install.php')
-rw-r--r-- | install.php | 70 |
1 files changed, 33 insertions, 37 deletions
diff --git a/install.php b/install.php index 48290fdf0..83d0a40c7 100644 --- a/install.php +++ b/install.php @@ -1,42 +1,38 @@ <?php +/** + * Elgg install script + * + * @package Elgg + * @subpackage Core + * @author Curverider Ltd + * @link http://elgg.org/ + */ - /** - * Elgg install script - * - * @package Elgg - * @subpackage Core +/** + * Start the Elgg engine + */ +require_once(dirname(__FILE__) . "/engine/start.php"); +global $CONFIG; - * @author Curverider Ltd +elgg_set_viewtype('failsafe'); +/** + * If we're installed, go back to the homepage + */ +if ((is_installed() && is_db_installed() && datalist_get('installed'))) { + forward("index.php"); +} - * @link http://elgg.org/ - */ +/** + * Install the database + */ +if (!is_db_installed()) { + validate_platform(); + run_sql_script(dirname(__FILE__) . "/engine/schema/mysql.sql"); + init_site_secret(); + system_message(elgg_echo("installation:success")); +} - /** - * Start the Elgg engine - */ - require_once(dirname(__FILE__) . "/engine/start.php"); - global $CONFIG; - - elgg_set_viewtype('failsafe'); - /** - * If we're installed, go back to the homepage - */ - if ((is_installed() && is_db_installed() && datalist_get('installed'))) - forward("index.php"); - - /** - * Install the database - */ - if (!is_db_installed()) { - validate_platform(); - run_sql_script(dirname(__FILE__) . "/engine/schema/mysql.sql"); - init_site_secret(); - system_message(elgg_echo("installation:success")); - } - - /** - * Load the front page - */ - page_draw(elgg_echo("installation:settings"), elgg_view_layout("one_column", elgg_view("settings/install"))); - -?>
\ No newline at end of file +/** + * Load the front page + */ +page_draw(elgg_echo("installation:settings"), elgg_view_layout("one_column", elgg_view("settings/install")));
\ No newline at end of file |