From ebd811415a29143db44cd6d32c5f2f0769dc8fc7 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 19 Jan 2009 09:19:07 +0000 Subject: Stub of the web based installer. --- installer/index.php | 3 +++ installer/install.html.php | 43 +++++++++++++++++++++++++++++++++++++++++++ installer/installer.php | 8 ++++++++ 3 files changed, 54 insertions(+) create mode 100644 installer/install.html.php (limited to 'installer') diff --git a/installer/index.php b/installer/index.php index 07565acc..19b99735 100644 --- a/installer/index.php +++ b/installer/index.php @@ -33,4 +33,7 @@ define("SYSPATH", "DEFINED_TO_SOMETHING_SO_THAT_WE_CAN_KEEP_CONSISTENT_PREAMBLES require(DOCROOT . "installer/installer.php"); if (php_sapi_name() == "cli") { installer::command_line(); +} else { + installer::web(); } + diff --git a/installer/install.html.php b/installer/install.html.php new file mode 100644 index 00000000..2afac33e --- /dev/null +++ b/installer/install.html.php @@ -0,0 +1,43 @@ + + + + Gallery3 Installer + + + +
+
+ +
+
+

Gallery 3 installer

+

+ +

+
+
+ + diff --git a/installer/installer.php b/installer/installer.php index d623103b..9279613b 100644 --- a/installer/installer.php +++ b/installer/installer.php @@ -43,6 +43,14 @@ class installer { } } + static function web() { + if (self::already_installed()) { + print self::_render( + "install.html.php", array("content" => "Gallery 3 is already installed.")); + return; + } + } + static function already_installed() { return file_exists(VARPATH . "database.php"); } -- cgit v1.2.3