diff --git a/install.php b/install.php index 0240349bb1..87a99a6508 100644 --- a/install.php +++ b/install.php @@ -1,4 +1,22 @@ - +. + */ + define('INSTALLDIR', dirname(__FILE__)); function main() @@ -19,12 +37,12 @@ function checkPrereqs() { if (file_exists(INSTALLDIR.'/config.php')) { ?>
Config file "config.php" already exists.
- +Require PHP version 5 or greater.
+ ?>Require PHP version 5 or greater.
Cannot load required extension "= $req ?>".
+ ?>Cannot load required extension "".
Cannot write config file to "= INSTALLDIR ?>".
+ ?>Cannot write config file to "".
On your server, try this command:
-chmod a+w = INSTALLDIR ?>- +
chmod a+w+
Cannot write avatar directory "= INSTALLDIR ?>/avatar/".
+ ?>Cannot write avatar directory "/avatar/".
On your server, try this command:
-chmod a+w = INSTALLDIR ?>/avatar/+
chmod a+w /avatar/return false; } @@ -211,7 +229,7 @@ function handlePost() function writeConf($sitename, $sqlUrl) { $res = file_put_contents(INSTALLDIR.'/config.php', - "\n". + "