mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Merge branch 'ent-improve-check-allowoverride' into 'develop'
Added support for FreeBSD in checkAllowOverrideEnabled(). See merge request artica/pandorafms!4794
This commit is contained in:
commit
fb6381b789
@ -2532,10 +2532,18 @@ class ConsoleSupervisor
|
|||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
$message = 'If AllowOverride is disabled, .htaccess will not works.';
|
$message = 'If AllowOverride is disabled, .htaccess will not works.';
|
||||||
|
if (PHP_OS == 'FreeBSD') {
|
||||||
|
$message .= '<pre>Please check /usr/local/etc/apache24/httpd.conf to resolve this problem.';
|
||||||
|
} else {
|
||||||
$message .= '<pre>Please check /etc/httpd/conf/httpd.conf to resolve this problem.';
|
$message .= '<pre>Please check /etc/httpd/conf/httpd.conf to resolve this problem.';
|
||||||
|
}
|
||||||
|
|
||||||
// Get content file.
|
// Get content file.
|
||||||
|
if (PHP_OS == 'FreeBSD') {
|
||||||
|
$file = file_get_contents('/usr/local/etc/apache24/httpd.conf');
|
||||||
|
} else {
|
||||||
$file = file_get_contents('/etc/httpd/conf/httpd.conf');
|
$file = file_get_contents('/etc/httpd/conf/httpd.conf');
|
||||||
|
}
|
||||||
$file_lines = preg_split("#\r?\n#", $file, -1, PREG_SPLIT_NO_EMPTY);
|
$file_lines = preg_split("#\r?\n#", $file, -1, PREG_SPLIT_NO_EMPTY);
|
||||||
$is_none = false;
|
$is_none = false;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user