mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-06-08 17:02:13 +02:00
function_declaration
This commit is contained in:
parent
649bc59218
commit
133c5cc57e
|
@ -548,12 +548,12 @@ if (isset($_SESSION[FM_SESSION_ID]['logged'], $auth_users[$_SESSION[FM_SESSION_I
|
||||||
$path .= '/' . FM_PATH;
|
$path .= '/' . FM_PATH;
|
||||||
}
|
}
|
||||||
|
|
||||||
function event_callback ($message) {
|
function event_callback($message) {
|
||||||
global $callback;
|
global $callback;
|
||||||
echo json_encode($message);
|
echo json_encode($message);
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_file_path () {
|
function get_file_path() {
|
||||||
global $path, $fileinfo, $temp_file;
|
global $path, $fileinfo, $temp_file;
|
||||||
return $path."/".basename($fileinfo->name);
|
return $path."/".basename($fileinfo->name);
|
||||||
}
|
}
|
||||||
|
@ -1273,7 +1273,7 @@ if (isset($_GET['upload']) && !FM_READONLY) {
|
||||||
function getUploadExt() {
|
function getUploadExt() {
|
||||||
$extArr = explode(',', FM_UPLOAD_EXTENSION);
|
$extArr = explode(',', FM_UPLOAD_EXTENSION);
|
||||||
if(FM_UPLOAD_EXTENSION && $extArr) {
|
if(FM_UPLOAD_EXTENSION && $extArr) {
|
||||||
array_walk($extArr, function(&$x) {$x = ".$x";});
|
array_walk($extArr, function (&$x) {$x = ".$x";});
|
||||||
return implode(',', $extArr);
|
return implode(',', $extArr);
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
|
|
Loading…
Reference in a new issue