some windows fixes
This commit is contained in:
6
boot.php
6
boot.php
@@ -1571,13 +1571,17 @@ function proc_run($cmd){
|
||||
$args[$x] = escapeshellarg($args[$x]);
|
||||
|
||||
$cmdline = implode($args," ");
|
||||
if(get_config('system','proc_windows'))
|
||||
if(is_windows())
|
||||
proc_close(proc_open('cmd /c start /b ' . $cmdline,array(),$foo));
|
||||
else
|
||||
proc_close(proc_open($cmdline." &",array(),$foo));
|
||||
}
|
||||
|
||||
|
||||
function is_windows() {
|
||||
return ((strtoupper(substr(PHP_OS,0,3)) === 'WIN') ? true : false);
|
||||
}
|
||||
|
||||
|
||||
function current_theme(){
|
||||
$app_base_themes = array('redbasic');
|
||||
|
||||
Reference in New Issue
Block a user