X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=install.php;h=bc82e5e37a8e0fbb7c5491ce88146b76fadf367d;hb=4e1cb6f9a78a09257467a3e522c8dec2509a1523;hp=a34214c48a45c12fc14e00fb7b4497e887df1c15;hpb=2ad667f704300dcb825a4822d567cbc8ebfebe02;p=quix0rs-gnu-social.git diff --git a/install.php b/install.php index a34214c48a..bc82e5e37a 100644 --- a/install.php +++ b/install.php @@ -1,9 +1,31 @@ -. + */ + define('INSTALLDIR', dirname(__FILE__)); function main() { - checkPrereqs(); + if (!checkPrereqs()) + { + return; + } + if ($_SERVER['REQUEST_METHOD'] == 'POST') { handlePost(); } else { @@ -13,69 +35,177 @@ function main() function checkPrereqs() { + $pass = true; + + if (file_exists(INSTALLDIR.'/config.php')) { + ?>

Config file "config.php" already exists.

+

Require PHP version 5 or greater.

Cannot load required extension:

Cannot write config file to:

+

On your server, try this command: chmod a+w +

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.

-
-
- - -
+ $config_path = htmlentities(trim(dirname($_SERVER['REQUEST_URI']), '/')); + echo<< + + +
+
Page notice
+
+
+

Enter your database connection information below to initialize the database.

+
+
+
+ +
+ Connection settings +
    +
  • + + +

    The name of your site

    +
  • +
  • + + enable
    + disable
    +

    Enable fancy (pretty) URLs. Auto-detection failed, it depends on Javascript.

    +
  • +
  • + + +

    Database hostname

    +
  • +
  • + + +

    Site path, following the "/" after the domain name in the URL. Empty is fine. Field should be filled automatically.

    +
  • +
  • + + +

    Database name

    +
  • +
  • + + +

    Database username

    +
  • +
  • + + +

    Database password

    +
  • +
+ +
- -
  • - -
  • -> + + -