aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-01 23:47:14 -0800
committerfriendica <info@friendica.com>2015-01-01 23:47:14 -0800
commitc7aa8bf1b4c2a7ca4d7bf1552aabcb0c0a54756e (patch)
tree586701bd0e5f61ddd2118f5753d37ab7ae3a60d1 /boot.php
parent68c612c597471404201099ecbc8b4082d152e18a (diff)
downloadvolse-hubzilla-c7aa8bf1b4c2a7ca4d7bf1552aabcb0c0a54756e.tar.gz
volse-hubzilla-c7aa8bf1b4c2a7ca4d7bf1552aabcb0c0a54756e.tar.bz2
volse-hubzilla-c7aa8bf1b4c2a7ca4d7bf1552aabcb0c0a54756e.zip
syntax issues (with some php versions?), unchecked intval
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/boot.php b/boot.php
index 4e266f4f1..f57a6701c 100755
--- a/boot.php
+++ b/boot.php
@@ -2183,3 +2183,19 @@ function get_poller_runtime() {
$t = get_config('system','lastpoll');
return relative_date($t);
}
+
+function z_get_upload_dir() {
+ $upload_dir = get_config('system','uploaddir');
+ if(! $upload_dir)
+ $upload_dir = ini_get('upload_tmp_dir');
+ if(! $upload_dir)
+ $upload_dir = sys_get_temp_dir();
+ return $upload_dir;
+}
+
+function z_get_temp_dir() {
+ $temp_dir = get_config('system','tempdir');
+ if(! $temp_dir)
+ $temp_dir = sys_get_temp_dir();
+ return $upload_dir;
+} \ No newline at end of file