added spaces, removed parentheses. there is more ahead than just this one.

Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
Roland Haeder 2017-03-25 12:43:07 +01:00
parent 566cfb8418
commit 689b81171e
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78

View file

@ -37,7 +37,7 @@ $install = ((file_exists('.htconfig.php') && filesize('.htconfig.php')) ? false
// Only load config if found, don't surpress errors
if (!$install) {
include(".htconfig.php");
include ".htconfig.php";
}
/**
@ -46,11 +46,11 @@ if (!$install) {
*
*/
require_once("include/dba.php");
require_once "include/dba.php";
if (!$install) {
$db = new dba($db_host, $db_user, $db_pass, $db_data, $install);
unset($db_host, $db_user, $db_pass, $db_data);
unset($db_host, $db_user, $db_pass, $db_data);
/**
* Load configs from db. Overwrite configs from .htconfig.php
@ -59,13 +59,13 @@ if (!$install) {
Config::load();
if ($a->max_processes_reached() OR $a->maxload_reached()) {
header($_SERVER["SERVER_PROTOCOL"].' 503 Service Temporarily Unavailable');
header($_SERVER["SERVER_PROTOCOL"] . ' 503 Service Temporarily Unavailable');
header('Retry-After: 120');
header('Refresh: 120; url='.App::get_baseurl()."/".$a->query_string);
header('Refresh: 120; url=' . App::get_baseurl() . "/" . $a->query_string);
die("System is currently unavailable. Please try again later");
}
if (get_config('system','force_ssl') AND ($a->get_scheme() == "http") AND
if (get_config('system', 'force_ssl') AND ($a->get_scheme() == "http") AND
(intval(get_config('system','ssl_policy')) == SSL_POLICY_FULL) AND
(substr(App::get_baseurl(), 0, 8) == "https://")) {
header("HTTP/1.1 302 Moved Temporarily");