mirror of
https://github.com/nokonoko/Uguu.git
synced 2024-01-06 13:35:15 +00:00
Update core.php
This commit is contained in:
parent
ecaf208490
commit
48028348cb
@ -46,7 +46,11 @@ function save_file ($file, $name, $arg, $type){
|
|||||||
//Check if html or plain text should be returned
|
//Check if html or plain text should be returned
|
||||||
if($type==='tool'){
|
if($type==='tool'){
|
||||||
//Return url+filename to the user (plain text)
|
//Return url+filename to the user (plain text)
|
||||||
|
if(CONFIG_SUBUPLOAD_URL_ENABLED == "true"){
|
||||||
|
echo CONFIG_SUBUPLOAD_URL.'/'.urlencode($file_name);
|
||||||
|
}else{
|
||||||
echo CONFIG_ROOT_URL.'/files/'.urlencode($file_name);
|
echo CONFIG_ROOT_URL.'/files/'.urlencode($file_name);
|
||||||
|
}
|
||||||
exit(0);
|
exit(0);
|
||||||
}elseif($type==='normal'){
|
}elseif($type==='normal'){
|
||||||
//Return url+filename to the user (HTML)
|
//Return url+filename to the user (HTML)
|
||||||
|
Loading…
Reference in New Issue
Block a user