diff options
author | marijus <mario@localhost.localdomain> | 2014-02-02 23:50:21 +0100 |
---|---|---|
committer | marijus <mario@localhost.localdomain> | 2014-02-02 23:50:21 +0100 |
commit | 11efafb5d2b9a6b860772e4c4cec0cde5c1bf248 (patch) | |
tree | 634126be6ba87059f3c12c5b0ff2c98cc52838da /boot.php | |
parent | 211dc4edd2e7c95a88c5905cbcf8a99f35d7b883 (diff) | |
parent | 02e4527de682042562dccac83899ef562c4b1e05 (diff) | |
download | volse-hubzilla-11efafb5d2b9a6b860772e4c4cec0cde5c1bf248.tar.gz volse-hubzilla-11efafb5d2b9a6b860772e4c4cec0cde5c1bf248.tar.bz2 volse-hubzilla-11efafb5d2b9a6b860772e4c4cec0cde5c1bf248.zip |
Merge branch 'master' of https://github.com/friendica/red
Diffstat (limited to 'boot.php')
-rwxr-xr-x | boot.php | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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'); |