mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-02 19:04:33 -04:00
Fixes for exec and open_basedir checks
This commit is contained in:
parent
1913318124
commit
0f861554f0
@ -78,9 +78,27 @@ class SystemHealth
|
|||||||
'node_status' => self::checkNode(),
|
'node_status' => self::checkNode(),
|
||||||
'cache_enabled' => self::checkConfigCache(),
|
'cache_enabled' => self::checkConfigCache(),
|
||||||
'phantom_enabled' => (bool) config('ninja.phantomjs_pdf_generation'),
|
'phantom_enabled' => (bool) config('ninja.phantomjs_pdf_generation'),
|
||||||
|
'exec' => (bool) self::checkExecWorks(),
|
||||||
|
'open_basedir' => (bool) self::checkOpenBaseDir(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function checkOpenBaseDir()
|
||||||
|
{
|
||||||
|
if(strlen(ini_get('open_basedir') == 0))
|
||||||
|
return true;
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function checkExecWorks()
|
||||||
|
{
|
||||||
|
if(function_exists('exec'))
|
||||||
|
return true;
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
public static function checkConfigCache()
|
public static function checkConfigCache()
|
||||||
{
|
{
|
||||||
if (env('APP_URL')) {
|
if (env('APP_URL')) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user