summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2009-11-15 19:44:47 -0800
committerAndy Staudacher <andy.st@gmail.com>2009-11-15 19:44:47 -0800
commit0733dc37fda27a5ba35f9020edf3c66aa41a95a0 (patch)
tree6877946232f1b01b1c8709054c689f6658cef34f /index.php
parent218493c50be9362d4abed6900a816308fee5d978 (diff)
parent9379308f91a476f790fb8d444536719535c584e4 (diff)
Merge commit 'upstream/master'
Conflicts: modules/gallery/tests/xss_data.txt
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";