mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
updates
This commit is contained in:
parent
f8f2da4d40
commit
c44cb889e0
@ -2383,9 +2383,12 @@ class ConsoleSupervisor
|
|||||||
|
|
||||||
$message = 'If AllowOverride is disabled, .htaccess will not works.';
|
$message = 'If AllowOverride is disabled, .htaccess will not works.';
|
||||||
$message .= '<pre>Please check /etc/httpd/conf/httpd.conf for keep this problems';
|
$message .= '<pre>Please check /etc/httpd/conf/httpd.conf for keep this problems';
|
||||||
|
|
||||||
|
// Get content file.
|
||||||
$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;
|
||||||
|
|
||||||
foreach ($file_lines as $line) {
|
foreach ($file_lines as $line) {
|
||||||
if (preg_match('/ AllowOverride/', $line)) {
|
if (preg_match('/ AllowOverride/', $line)) {
|
||||||
$result = explode(' ', $line);
|
$result = explode(' ', $line);
|
||||||
@ -2403,6 +2406,7 @@ class ConsoleSupervisor
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Cleanup notifications if AllowOverride is All.
|
||||||
if (!$is_none) {
|
if (!$is_none) {
|
||||||
$this->cleanNotifications('NOTIF.ALLOWOVERRIDE.MESSAGE');
|
$this->cleanNotifications('NOTIF.ALLOWOVERRIDE.MESSAGE');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user