X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=install.php;h=bc82e5e37a8e0fbb7c5491ce88146b76fadf367d;hb=4e1cb6f9a78a09257467a3e522c8dec2509a1523;hp=0240349bb15d1220f2cdd7babdef83c720febabd;hpb=d014d43c6860e3aaf46a5afba0ea3dffd54f630d;p=quix0rs-gnu-social.git diff --git a/install.php b/install.php index 0240349bb1..bc82e5e37a 100644 --- a/install.php +++ b/install.php @@ -1,4 +1,22 @@ - +. + */ + define('INSTALLDIR', dirname(__FILE__)); function main() @@ -17,15 +35,17 @@ function main() function checkPrereqs() { + $pass = true; + if (file_exists(INSTALLDIR.'/config.php')) { ?>
Config file "config.php" already exists.
- - return false; +Require PHP version 5 or greater.
- return false; + ?>Require PHP version 5 or greater.
Cannot load required extension "= $req ?>".
- return false; + ?>Cannot load required extension:
Cannot write config file to "= INSTALLDIR ?>".
-On your server, try this command:
-chmod a+w = INSTALLDIR ?>- - return false; + ?>
Cannot write config file to:
On your server, try this command: chmod a+w
+
Cannot write avatar directory "= INSTALLDIR ?>/avatar/".
-On your server, try this command:
-chmod a+w = INSTALLDIR ?>/avatar/+ ?>
Cannot write avatar directory: /avatar/
On your server, try this command: chmod a+w /avatar/
Enter your database connection information below to initialize the database.
-