From 3a31ddea2b516cebe60c6ac096516db8df101fd0 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 16 Jul 2014 01:07:00 -0700 Subject: provide os_mkdir to workaround permission issues with php mkdir --- boot.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 7552ddb92..cd0dca2ca 100755 --- a/boot.php +++ b/boot.php @@ -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'); } -- cgit v1.2.3