]> git.wh0rd.org - tt-rss.git/blobdiff - install/index.php
minor css fixes (mostly for zoom mode)
[tt-rss.git] / install / index.php
index f1547982c4534285ddbb7beeaf6dd2e00f3aaf7e..764283ab8dfdf8f019d8d07544d3ea39e43ad604 100755 (executable)
@@ -38,8 +38,8 @@
        function sanity_check($db_type) {
                $errors = array();
 
-               if (version_compare(PHP_VERSION, '5.4.0', '<')) {
-                       array_push($errors, "PHP version 5.4.0 or newer required.");
+               if (version_compare(PHP_VERSION, '5.6.0', '<')) {
+                       array_push($errors, "PHP version 5.6.0 or newer required. You're using " . PHP_VERSION . ".");
                }
 
                if (!function_exists("curl_init") && !ini_get("allow_url_fopen")) {
        }
 
        function is_server_https() {
-               return (!empty($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] != 'off')) || $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https';
+               return (!empty($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] != 'off')) || (!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https');
        }
 
        function make_self_url_path() {