Fix logout bad permission with myslq service stopped dialog - #825

This commit is contained in:
enriquecd 2017-05-19 11:12:58 +02:00
parent 8d16f573cc
commit 57393eb9cf

View File

@ -33,6 +33,8 @@ if ($develop_bypass != 1) {
$config['homeurl'] = $_SERVER['REQUEST_URI']; $config['homeurl'] = $_SERVER['REQUEST_URI'];
$config['homeurl_static'] = $_SERVER['REQUEST_URI']; $config['homeurl_static'] = $_SERVER['REQUEST_URI'];
require('general/error_screen.php'); require('general/error_screen.php');
exit; exit;
} }
@ -65,12 +67,12 @@ if ($develop_bypass != 1) {
if ((substr (sprintf ('%o', fileperms('include/config.php')), -4) != "0600") && if ((substr (sprintf ('%o', fileperms('include/config.php')), -4) != "0600") &&
(substr (sprintf ('%o', fileperms('include/config.php')), -4) != "0660") && (substr (sprintf ('%o', fileperms('include/config.php')), -4) != "0660") &&
(substr (sprintf ('%o', fileperms('include/config.php')), -4) != "0640")) { (substr (sprintf ('%o', fileperms('include/config.php')), -4) != "0640")) {
$ownDir = dirname(__FILE__) . DIRECTORY_SEPARATOR; $ownDir = dirname(__FILE__) . DIRECTORY_SEPARATOR;
$url = explode('/', $_SERVER['REQUEST_URI']);
$config['homedir'] = $ownDir; $config['homedir'] = $ownDir;
$config['homeurl'] = $_SERVER['REQUEST_URI']; $config['homeurl'] = "/" . $url[1];
$config['homeurl_static'] = $_SERVER['REQUEST_URI']; $config['homeurl_static'] = "/" . $url[1];
$login_screen = 'error_perms'; $login_screen = 'error_perms';
require('general/error_screen.php'); require('general/error_screen.php');
exit; exit;
} }