aboutsummaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
Diffstat (limited to 'install.php')
-rw-r--r--install.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/install.php b/install.php
new file mode 100644
index 000000000..a93298216
--- /dev/null
+++ b/install.php
@@ -0,0 +1,20 @@
+<?php
+/**
+ * Elgg install script
+ *
+ * @package Elgg
+ * @subpackage Core
+ */
+
+// check for PHP 4 before we do anything else
+if (version_compare(PHP_VERSION, '5.0.0', '<')) {
+ echo "Your server's version of PHP (" . PHP_VERSION . ") is too old to run Elgg.\n";
+ exit;
+}
+
+require_once(dirname(__FILE__) . "/install/ElggInstaller.php");
+
+$installer = new ElggInstaller();
+
+$step = get_input('step', 'welcome');
+$installer->run($step);