summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-11-12 14:43:47 -0800
committerTim Almdal <tnalmdal@shaw.ca>2009-11-12 14:43:47 -0800
commit65355c6bb3c263d169d5e4908b5f7eb261d0651a (patch)
treef0d2346d30f0677b257d61d91ca885bc30c7ee51 /index.php
parent393896a7010bf2da19674aa6a63a693a0d800233 (diff)
Change the gallery3/index.php so there is a new option "install" which invokes the installer.
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/index.php b/index.php
index d0e12cfc..f6285257 100644
--- a/index.php
+++ b/index.php
@@ -50,6 +50,9 @@ define("SYSPATH", realpath("system") . "/");
// We only accept a few controllers on the command line
if (PHP_SAPI == "cli") {
switch ($arg_1 = $_SERVER["argv"][1]) {
+ case "install":
+ include("installer/index.php");
+ exit(0);
case "upgrade":
case "package":
$_SERVER["argv"] = array("index.php", "{$arg_1}r/$arg_1");
@@ -66,6 +69,7 @@ if (PHP_SAPI == "cli") {
break;
default:
+ print "To install:\n php index.php install -d database -h host -u user -p password -x table_prefix \n\n\n";
print "To upgrade:\n php index.php upgrade\n\n\n";
print "Developer-only features:\n ** CAUTION! THESE FEATURES -WILL- DAMAGE YOUR INSTALL **\n";
print " php index.php package # create new installer files\n";