vichan-devel / vichan

Vichan is the most popular and widely used imageboard software in the world. It is a free, light-weight, fast, highly configurable and user-friendly imageboard software package.
https://vichan.info
Other
626 stars 194 forks source link

5.2.0 install.php db updates #748

Open RealAngeleno opened 4 months ago

RealAngeleno commented 4 months ago

I also added a check for https, but did a direct commit without thinking about it too much.

RealAngeleno commented 4 months ago

For convenience, it was the addition of

//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 = true;
    }

right after "elseif ($step == 1)"

and

array(
            'category' => 'Misc',
            'name' => 'HTTPS being used',
            'result' => $httpsvalue = true,
            '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.'
        ),