diff --git a/core/vendor/filemanager/ajax_calls.php b/core/vendor/filemanager/ajax_calls.php
index 6b97f280..e514186d 100644
--- a/core/vendor/filemanager/ajax_calls.php
+++ b/core/vendor/filemanager/ajax_calls.php
@@ -5,7 +5,7 @@ $config = include 'config/config.php';
require_once 'include/utils.php';
if ($_SESSION['RF']["verify"] != "RESPONSIVEfilemanager") {
- response(trans('forbidden') . AddErrorLocation())->send();
+ response(trans('forbidden').AddErrorLocation())->send();
exit;
}
$languages = include 'lang/languages.php';
@@ -14,24 +14,24 @@ if (isset($_SESSION['RF']['language']) && file_exists('lang/' . basename($_SESSI
if (array_key_exists($_SESSION['RF']['language'], $languages)) {
include 'lang/' . basename($_SESSION['RF']['language']) . '.php';
} else {
- response(trans('Lang_Not_Found') . AddErrorLocation())->send();
+ response(trans('Lang_Not_Found').AddErrorLocation())->send();
exit;
}
} else {
- response(trans('Lang_Not_Found') . AddErrorLocation())->send();
+ response(trans('Lang_Not_Found').AddErrorLocation())->send();
exit;
}
//check $_GET['file']
if (isset($_GET['file']) && !checkRelativePath($_GET['file'])) {
- response(trans('wrong path') . AddErrorLocation())->send();
+ response(trans('wrong path').AddErrorLocation())->send();
exit;
}
//check $_POST['file']
-if (isset($_POST['path']) && !checkRelativePath($_POST['path'])) {
- response(trans('wrong path') . AddErrorLocation())->send();
+if(isset($_POST['path']) && !checkRelativePath($_POST['path'])) {
+ response(trans('wrong path').AddErrorLocation())->send();
exit;
}
@@ -43,16 +43,16 @@ if (isset($_GET['action'])) {
case 'new_file_form':
echo trans('Filename') . ':
' . $data . '
';
+ $ret .= ''.$data.'
';
} elseif ($preview_mode == 'google') {
if ($ftp) {
$url_file = $selected_file;
@@ -633,28 +626,28 @@ if (isset($_GET['action'])) {
$url_file = $config['base_url'] . $config['upload_dir'] . str_replace($config['current_path'], '', $_GET["file"]);
}
- $googledoc_url = urlencode($url_file);
- $ret = "";
- }
- } else {
- $data = stripslashes(htmlspecialchars(file_get_contents($selected_file)));
- if (in_array($info['extension'], array('html', 'html'))) {
- $ret = '';
- } else {
- $ret = '';
- }
+ $googledoc_url = urlencode($url_file);
+ $ret = "";
+ }
+ }else{
+ $data = stripslashes(htmlspecialchars(file_get_contents($selected_file)));
+ if(in_array($info['extension'],array('html','html'))){
+ $ret = '';
+ }else{
+ $ret = '';
+ }
- }
+ }
- response($ret)->send();
- exit;
+ response($ret)->send();
+ exit;
break;
default:
- response(trans('no action passed') . AddErrorLocation())->send();
+ response(trans('no action passed').AddErrorLocation())->send();
exit;
}
} else {
- response(trans('no action passed') . AddErrorLocation())->send();
+ response(trans('no action passed').AddErrorLocation())->send();
exit;
-}
\ No newline at end of file
+}