aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-07-16 01:07:00 -0700
committerfriendica <info@friendica.com>2014-07-16 01:07:00 -0700
commit3a31ddea2b516cebe60c6ac096516db8df101fd0 (patch)
tree55ff5e01ec3035b0a8ade9e0731bd7d1b51e7794 /boot.php
parent0435a08f3bafe47e0fe0cda6e698f93a5fab26e6 (diff)
downloadvolse-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-xboot.php9
1 files changed, 9 insertions, 0 deletions
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');
}