diff options
author | friendica <info@friendica.com> | 2014-02-02 14:06:36 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-02-02 14:06:36 -0800 |
commit | b39c0d54c07c1a89aa1e4ecaef134b96e4ed4b8a (patch) | |
tree | 82066f5407951174261e61668341f0a6a674341b /boot.php | |
parent | e83419b53e27078867f8449f476d87b064b9d502 (diff) | |
download | volse-hubzilla-b39c0d54c07c1a89aa1e4ecaef134b96e4ed4b8a.tar.gz volse-hubzilla-b39c0d54c07c1a89aa1e4ecaef134b96e4ed4b8a.tar.bz2 volse-hubzilla-b39c0d54c07c1a89aa1e4ecaef134b96e4ed4b8a.zip |
some windows fixes
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'); |