X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=install.php;h=d72cf69b07b68dd1429755a73ad6fff4ee2b2d25;hb=b15f5f0cafc08c9b63090c5b4f7494fca0634238;hp=190941c5abf6b33f11baf7f9329a158bf56cd61b;hpb=be321242d3191e7bc2159275c904400e51e2901b;p=quix0rs-gnu-social.git diff --git a/install.php b/install.php index 190941c5ab..d72cf69b07 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; } @@ -164,10 +165,19 @@ class WebInstaller extends Installer } else { $checked = ''; } - $dbRadios .= " $info[name]
\n"; + $dbRadios .= sprintf('%3$s
', + htmlspecialchars($type), $checked, + htmlspecialchars($info['name'])); } } + $ssl = array('always'=>null, 'never'=>null); + if (!empty($_SERVER['HTTPS'])) { + $ssl['always'] = 'checked="checked"'; + } else { + $ssl['never'] = 'checked="checked"'; + } + echo<<
@@ -185,6 +195,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.

    +
  • @@ -198,7 +214,7 @@ class WebInstaller extends Installer
  • - $dbRadios + {$dbRadios}

    Database type

  • @@ -225,12 +241,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,12 +255,7 @@ class WebInstaller extends Installer
  • -

    Optional email address for the initial StatusNet user (administrator)

    -
  • -
  • - - -

    Release and security feed from update@status.net (recommended)

    +

    Optional email address for the initial user (administrator)

  • @@ -317,10 +328,11 @@ STR; $this->adminPass = $post->string('admin_password'); $adminPass2 = $post->string('admin_password2'); $this->adminEmail = $post->string('admin_email'); - $this->adminUpdates = $post->string('admin_updates'); $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 +350,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,23 +371,21 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - Install StatusNet - + Install GNU social + - - - - + +