diff options
author | friendica <info@friendica.com> | 2014-07-16 01:07:00 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-07-16 01:07:00 -0700 |
commit | 3a31ddea2b516cebe60c6ac096516db8df101fd0 (patch) | |
tree | 55ff5e01ec3035b0a8ade9e0731bd7d1b51e7794 /boot.php | |
parent | 0435a08f3bafe47e0fe0cda6e698f93a5fab26e6 (diff) | |
download | volse-hubzilla-3a31ddea2b516cebe60c6ac096516db8df101fd0.tar.gz volse-hubzilla-3a31ddea2b516cebe60c6ac096516db8df101fd0.tar.bz2 volse-hubzilla-3a31ddea2b516cebe60c6ac096516db8df101fd0.zip |
provide os_mkdir to workaround permission issues with php mkdir
Diffstat (limited to 'boot.php')
-rwxr-xr-x | boot.php | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1168,6 +1168,15 @@ function absurl($path) { return $path; } +function os_mkdir($path,$mode = 0777,$recursive = false) { + $oldumask = @umask(0); + @mkdir($path, $mode, $recursive); + @umask($oldumask); +} + + + + function is_ajax() { return (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest'); } |