X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=install.php;h=352d5a143c80ed436a532d6553faec788887e589;hb=33e2f5b449d477e55bda7029f9e826d889e41eb5;hp=190941c5abf6b33f11baf7f9329a158bf56cd61b;hpb=12588b1cf73fad7d0a76a29a46ec355150eaa54e;p=quix0rs-gnu-social.git diff --git a/install.php b/install.php index 190941c5ab..352d5a143c 100644 --- a/install.php +++ b/install.php @@ -27,6 +27,7 @@ * @author Craig Andrews * @author Eric Helgeson * @author Evan Prodromou + * @author Mikael Nordfeldth * @author Robin Millette * @author Sarven Capadisli * @author Tom Adams @@ -117,7 +118,7 @@ class WebInstaller extends Installer function main() { if (!$this->checkPrereqs()) { - $this->showForm(); + $this->warning(_('Please fix the above stated problems and refresh this page to continue installing.')); return; } @@ -168,6 +169,13 @@ class WebInstaller extends Installer } } + $ssl = array('always'=>null, 'never'=>null); + if (!empty($_SERVER['HTTPS'])) { + $ssl['always'] = 'checked="checked"'; + } else { + $ssl['never'] = 'checked="checked"'; + } + echo<<
@@ -185,6 +193,12 @@ class WebInstaller extends Installer disable

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

+
  • + + enable
    + disable
    +

    Enabling SSL (https://) requires extra webserver configuration and certificate generation not offered by this installation.

    +
  • @@ -225,12 +239,12 @@ class WebInstaller extends Installer
  • -

    Nickname for the initial StatusNet user (administrator)

    +

    Nickname for the initial user (administrator)

  • -

    Password for the initial StatusNet user (administrator)

    +

    Password for the initial user (administrator)

  • @@ -239,7 +253,7 @@ class WebInstaller extends Installer
  • -

    Optional email address for the initial StatusNet user (administrator)

    +

    Optional email address for the initial user (administrator)

  • @@ -321,6 +335,8 @@ STR; $this->siteProfile = $post->string('site_profile'); + $this->ssl = $post->string('ssl'); + $this->server = $_SERVER['HTTP_HOST']; $this->path = substr(dirname($_SERVER['PHP_SELF']), 1); @@ -338,6 +354,11 @@ STR; $fail = true; } + if (!in_array($this->ssl, array('never', 'sometimes', 'always'))) { + $this->updateStatus("Bad value for server SSL enabling."); + $fail = true; + } + if (!$this->validateSiteProfile()) { $fail = true; } @@ -354,14 +375,15 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - Install StatusNet - + Install GNU social + + - - + + @@ -369,8 +391,8 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"