diff options
author | Stefan Parviainen <saparvia@caterva.eu> | 2015-01-04 14:23:23 +0100 |
---|---|---|
committer | Stefan Parviainen <saparvia@caterva.eu> | 2015-01-04 14:23:23 +0100 |
commit | 57809f20a4a3624bfb50bd5bc881fe81db26c02c (patch) | |
tree | ac7af255b8a85b244dd1d10bf5b2e8c26836babd /boot.php | |
parent | 386f361855663b445d1497bbbabcf87891ce94d9 (diff) | |
parent | 9433a0ddc8926cc483521e97ae911d2eb82c91f6 (diff) | |
download | volse-hubzilla-57809f20a4a3624bfb50bd5bc881fe81db26c02c.tar.gz volse-hubzilla-57809f20a4a3624bfb50bd5bc881fe81db26c02c.tar.bz2 volse-hubzilla-57809f20a4a3624bfb50bd5bc881fe81db26c02c.zip |
Sorting of autocomplete
Diffstat (limited to 'boot.php')
-rwxr-xr-x | boot.php | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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; +} |