forked from GithubBackups/vichan
install.php: fix HTTPS check
This commit is contained in:
parent
3d797c95ca
commit
37658f1817
@ -689,10 +689,8 @@ if ($step == 0) {
|
|||||||
|
|
||||||
echo Element('page.html', $page);
|
echo Element('page.html', $page);
|
||||||
} elseif ($step == 1) {
|
} elseif ($step == 1) {
|
||||||
//The HTTPS check doesn't work properly when in those arrays, so let's run it here and pass along the result during the actual check.
|
// The HTTPS check doesn't work properly when in those arrays, so let's run it here and pass along the result during the actual check.
|
||||||
if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') {
|
$httpsvalue = !empty($_SERVER['HTTPS'] && $_SERVER['HTTPS'] !== 'off';
|
||||||
$httpsvalue = true;
|
|
||||||
}
|
|
||||||
$page['title'] = 'Pre-installation test';
|
$page['title'] = 'Pre-installation test';
|
||||||
|
|
||||||
$can_exec = true;
|
$can_exec = true;
|
||||||
@ -874,7 +872,7 @@ if ($step == 0) {
|
|||||||
array(
|
array(
|
||||||
'category' => 'Misc',
|
'category' => 'Misc',
|
||||||
'name' => 'HTTPS not being used',
|
'name' => 'HTTPS not being used',
|
||||||
'result' => $httpsvalue = true,
|
'result' => $httpsvalue,
|
||||||
'required' => false,
|
'required' => false,
|
||||||
'message' => 'You are not currently using https for vichan, or at least for your backend server. If this intentional, add "$config[\'cookies\'][\'secure_login_only\'] = 0;" (or 1 if using a proxy) on a new line under "Additional configuration" on the next page.'
|
'message' => 'You are not currently using https for vichan, or at least for your backend server. If this intentional, add "$config[\'cookies\'][\'secure_login_only\'] = 0;" (or 1 if using a proxy) on a new line under "Additional configuration" on the next page.'
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user