diff --git a/pandora_console/include/functions_filemanager.php b/pandora_console/include/functions_filemanager.php
index 4265566116..b8d7598d12 100644
--- a/pandora_console/include/functions_filemanager.php
+++ b/pandora_console/include/functions_filemanager.php
@@ -330,7 +330,7 @@ if ($create_dir === true) {
$directory = filemanager_safe_directory((string) get_parameter('directory', '/'));
$hash = (string) get_parameter('hash');
- $testHash = md5($directory.$config['dbpass']);
+ $testHash = md5($directory.$config['server_unique_identifier']);
if ($hash !== $testHash) {
ui_print_error_message(__('Security error.'));
@@ -363,7 +363,7 @@ if ($delete_file === true) {
$filename = (string) get_parameter('filename');
$filename = io_safe_output($filename);
$hash = get_parameter('hash', '');
- $testHash = md5($filename.$config['dbpass']);
+ $testHash = md5($filename.$config['server_unique_identifier']);
if ($hash !== $testHash) {
$config['filemanager']['message'] = ui_print_error_message(__('Security error'), '', true);
@@ -645,7 +645,7 @@ function filemanager_file_explorer(
if (($prev_dir_str != '') && ($father != $relative_directory)) {
$table->data[0][0] = html_print_image('images/go_previous.png', true, ['class' => 'invert_filter']);
- $table->data[0][1] = '';
+ $table->data[0][1] = '';
$table->data[0][1] .= __('Parent directory');
$table->data[0][1] .= '';
@@ -696,7 +696,7 @@ function filemanager_file_explorer(
}
if ($fileinfo['is_dir']) {
- $data[1] = ''.$fileinfo['name'].'';
+ $data[1] = ''.$fileinfo['name'].'';
} else if (!empty($url_file)) {
// Set the custom url file
$url_file_clean = str_replace('[FILE_FULLPATH]', $fileinfo['realpath'], $url_file);
@@ -704,7 +704,7 @@ function filemanager_file_explorer(
$data[1] = ''.$fileinfo['name'].'';
} else {
$filename = base64_encode($relative_directory.'/'.$fileinfo['name']);
- $hash = md5($filename.$config['dbpass']);
+ $hash = md5($filename.$config['server_unique_identifier']);
$data[1] = ''.$fileinfo['name'].'';
}
@@ -739,7 +739,7 @@ function filemanager_file_explorer(
$data[4] .= '
';
echo ' '.$tabs_dialog.'
-
';
+ ';
echo ' '.$tabs_dialog.'
-
';
+ ';
echo "";
diff --git a/pandora_console/include/get_file.php b/pandora_console/include/get_file.php
index f5ccaecd99..8de031a79b 100644
--- a/pandora_console/include/get_file.php
+++ b/pandora_console/include/get_file.php
@@ -35,7 +35,7 @@ $file = base64_decode(urldecode($file_raw));
$hash = get_parameter('hash', null);
-if ($file === '' || $hash === '' || $hash !== md5($file_raw.$config['dbpass']) || !isset($_SERVER['HTTP_REFERER'])) {
+if ($file === '' || $hash === '' || $hash !== md5($file_raw.$config['server_unique_identifier']) || !isset($_SERVER['HTTP_REFERER'])) {
echo "
".__('Security error. Please contact the administrator.').'
';
} else {
$downloadable_file = '';