mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-06-09 01:12:16 +02:00
parent
2c0e6d216e
commit
6c20034cf8
|
@ -424,6 +424,17 @@ unset($p, $use_auth, $iconv_input_encoding, $use_highlightjs, $highlightjs_style
|
||||||
/*************************** ACTIONS ***************************/
|
/*************************** ACTIONS ***************************/
|
||||||
|
|
||||||
// AJAX Request
|
// AJAX Request
|
||||||
|
|
||||||
|
if (isset($_POST['ajax'])) {
|
||||||
|
//search : get list of files from the current folder
|
||||||
|
if(isset($_POST['type']) && $_POST['type']=="search") {
|
||||||
|
$dir = FM_ROOT_PATH;
|
||||||
|
$response = scan(fm_clean_path($_POST['path']), $_POST['content']);
|
||||||
|
echo json_encode($response);
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (isset($_POST['ajax']) && !FM_READONLY) {
|
if (isset($_POST['ajax']) && !FM_READONLY) {
|
||||||
|
|
||||||
// save
|
// save
|
||||||
|
@ -626,15 +637,6 @@ if (isset($_POST['ajax']) && !FM_READONLY) {
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_POST['ajax'])) {
|
|
||||||
//search : get list of files from the current folder
|
|
||||||
if(isset($_POST['type']) && $_POST['type']=="search") {
|
|
||||||
$dir = FM_ROOT_PATH;
|
|
||||||
$response = scan(fm_clean_path($_POST['path']), $_POST['content']);
|
|
||||||
echo json_encode($response);
|
|
||||||
exit();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete file / folder
|
// Delete file / folder
|
||||||
if (isset($_GET['del']) && !FM_READONLY) {
|
if (isset($_GET['del']) && !FM_READONLY) {
|
||||||
|
|
Loading…
Reference in a new issue