aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorStefan Parviainen <saparvia@caterva.eu>2015-01-04 14:23:23 +0100
committerStefan Parviainen <saparvia@caterva.eu>2015-01-04 14:23:23 +0100
commit57809f20a4a3624bfb50bd5bc881fe81db26c02c (patch)
treeac7af255b8a85b244dd1d10bf5b2e8c26836babd /boot.php
parent386f361855663b445d1497bbbabcf87891ce94d9 (diff)
parent9433a0ddc8926cc483521e97ae911d2eb82c91f6 (diff)
downloadvolse-hubzilla-57809f20a4a3624bfb50bd5bc881fe81db26c02c.tar.gz
volse-hubzilla-57809f20a4a3624bfb50bd5bc881fe81db26c02c.tar.bz2
volse-hubzilla-57809f20a4a3624bfb50bd5bc881fe81db26c02c.zip
Sorting of autocomplete
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 87a6845bb..54e5676e2 100755
--- a/boot.php
+++ b/boot.php
@@ -2184,3 +2184,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;
+}