diff options
-rw-r--r-- | etc/inc/system.inc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 0789776..e9d7578 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -37,6 +37,11 @@ function opcode_cache_configuration() { if($g['platform'] == "cdrom") return; + if($g['platform'] == "nanobsd" || $g['platform'] == "embedded") + $upload_tmp_dir = "/root"; + else + $upload_tmp_dir = "/tmp"; + /* get system memory amount */ $memory = get_memory(); $avail = $memory[0]; @@ -64,7 +69,7 @@ memory_limit = 32M register_argc_argv = On file_uploads = On extension_dir=/usr/local/lib/php/extensions/no-debug-non-zts-20020429/ -upload_tmp_dir = /tmp +upload_tmp_dir = {$upload_tmp_dir} upload_max_filesize = 100M post_max_size = 100M html_errors = Off @@ -1281,4 +1286,4 @@ function system_enable_arp_wrong_if() { mwexec("/sbin/sysctl -n net.link.ether.inet.log_arp_movements=1"); } -?>
\ No newline at end of file +?> |