2011-06-21 Sergio Martin <sergio.martin@artica.es>

* include/functions_filemanager.php: Sended from file manager
	form relative path and hash to keep the path position in 
	file collections



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4475 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2011-06-21 11:09:47 +00:00
parent 76b521cbb5
commit 8b39e98fc3
2 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2011-06-21 Sergio Martin <sergio.martin@artica.es>
* include/functions_filemanager.php: Sended from file manager
form relative path and hash to keep the path position in
file collections
2011-06-20 Sancho Lerena <slerena@artica.es>
* net_tools

View File

@ -601,6 +601,15 @@ function filemanager_file_explorer($real_directory, $relative_directory, $url, $
$data[4] .= html_print_input_hidden ('filename', $fileinfo['realpath'], true);
$data[4] .= html_print_input_hidden('hash', md5($fileinfo['realpath'] . $config['dbpass']), true);
$data[4] .= html_print_input_hidden ('delete_file', 1, true);
$relative_dir = str_replace($config['homedir'], '', dirname($fileinfo['realpath']));
if ($relative_dir[0] == '/') {
$relative_dir = substr($relative_dir, 1);
}
$hash2 = md5($relative_dir . $config['dbpass']);
$data[4] .= html_print_input_hidden ('directory', $relative_dir, true);
$data[4] .= html_print_input_hidden ('hash2', $hash2, true);
$data[4] .= '</form>';
if (($editor) && (!$readOnly)) {