mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 00:34:46 +02:00
Merge branch 'ent-3705-borrado-completo-de-la-carpeta-colecciones-nodo-metaconsola' into 'develop'
Fixed filemanager uploading on meta See merge request artica/pandorafms!2377 Former-commit-id: 847cb1daefac473ab92d3e326257428e8cd9880a
This commit is contained in:
commit
cec4bb49ff
@ -609,7 +609,7 @@ function filemanager_file_explorer(
|
|||||||
|
|
||||||
if (defined('METACONSOLE')) {
|
if (defined('METACONSOLE')) {
|
||||||
$table->class = 'databox_tactical';
|
$table->class = 'databox_tactical';
|
||||||
$table->title = '<span>'.__('Index of images').'</span>';
|
$table->title = '<span>'.__('Index of %s', $relative_directory).'</span>';
|
||||||
}
|
}
|
||||||
|
|
||||||
$table->colspan = [];
|
$table->colspan = [];
|
||||||
@ -773,46 +773,42 @@ function filemanager_file_explorer(
|
|||||||
if (!$readOnly) {
|
if (!$readOnly) {
|
||||||
if (is_writable($real_directory)) {
|
if (is_writable($real_directory)) {
|
||||||
// The buttons to make actions
|
// The buttons to make actions
|
||||||
if (defined('METACONSOLE')) {
|
$tabs_dialog = '<ul id="file_table_modal">
|
||||||
echo "<div style='text-align: left; width: ".$table->width.";'>";
|
<li class="create_folder">
|
||||||
} else {
|
<a href="javascript: show_form_create_folder();">'.html_print_image(
|
||||||
$tabs_dialog = '<ul id="file_table_modal">
|
'images/create_directory.png',
|
||||||
<li class="create_folder">
|
true,
|
||||||
<a href="javascript: show_form_create_folder();">'.html_print_image(
|
['title' => __('Create directory')]
|
||||||
'images/create_directory.png',
|
).'<span>'.__('Create a Directory').'</span>
|
||||||
true,
|
</a>
|
||||||
['title' => __('Create directory')]
|
</li>
|
||||||
).'<span>'.__('Create a Directory').'</span>
|
<li class="create_text_file">
|
||||||
</a>
|
<a href="javascript: show_create_text_file();">'.html_print_image(
|
||||||
</li>
|
'images/create_file.png',
|
||||||
<li class="create_text_file">
|
true,
|
||||||
<a href="javascript: show_create_text_file();">'.html_print_image(
|
['title' => __('Create a Text')]
|
||||||
'images/create_file.png',
|
).'<span>'.__('Create a Text').'</span>
|
||||||
true,
|
</a>
|
||||||
['title' => __('Create a Text')]
|
</li>
|
||||||
).'<span>'.__('Create a Text').'</span>
|
<li class="upload_file">
|
||||||
</a>
|
<a href="javascript: show_upload_file();">'.html_print_image(
|
||||||
</li>
|
'images/upload_file.png',
|
||||||
<li class="upload_file">
|
true,
|
||||||
<a href="javascript: show_upload_file();">'.html_print_image(
|
['title' => __('Upload Files')]
|
||||||
'images/upload_file.png',
|
).'<span>'.__('Upload Files').'</span>
|
||||||
true,
|
</a>
|
||||||
['title' => __('Upload Files')]
|
</li></ul>';
|
||||||
).'<span>'.__('Upload Files').'</span>
|
|
||||||
</a>
|
|
||||||
</li></ul>';
|
|
||||||
|
|
||||||
echo '<div id="create_folder" style="display: none;">'.$tabs_dialog.'
|
echo '<div id="create_folder" style="display: none;">'.$tabs_dialog.'
|
||||||
<form method="post" action="'.$url.'">'.html_print_input_text('dirname', '', '', 30, 255, true).html_print_submit_button(__('Create'), 'crt', false, 'class="sub next"', true).html_print_input_hidden('directory', $relative_directory, true).html_print_input_hidden('create_dir', 1, true).html_print_input_hidden('hash', md5($relative_directory.$config['dbpass']), true).html_print_input_hidden('hash2', md5($relative_directory.$config['dbpass']), true).'</form></div>';
|
<form method="post" action="'.$url.'">'.html_print_input_text('dirname', '', '', 30, 255, true).html_print_submit_button(__('Create'), 'crt', false, 'class="sub next"', true).html_print_input_hidden('directory', $relative_directory, true).html_print_input_hidden('create_dir', 1, true).html_print_input_hidden('hash', md5($relative_directory.$config['dbpass']), true).html_print_input_hidden('hash2', md5($relative_directory.$config['dbpass']), true).'</form></div>';
|
||||||
|
|
||||||
echo '<div id="upload_file" style="display: none;"> '.$tabs_dialog.'
|
echo '<div id="upload_file" style="display: none;"> '.$tabs_dialog.'
|
||||||
<form method="post" action="'.$url.'" enctype="multipart/form-data">'.ui_print_help_tip(__('The zip upload in this dir, easy to upload multiple files.'), true).html_print_input_file('file', true, false).html_print_input_hidden('umask', $umask, true).html_print_checkbox('decompress', 1, false, true).__('Decompress').html_print_submit_button(__('Go'), 'go', false, 'class="sub next"', true).html_print_input_hidden('real_directory', $real_directory, true).html_print_input_hidden('directory', $relative_directory, true).html_print_input_hidden('hash', md5($real_directory.$relative_directory.$config['dbpass']), true).html_print_input_hidden('hash2', md5($relative_directory.$config['dbpass']), true).html_print_input_hidden('upload_file_or_zip', 1, true).'</form></div>';
|
<form method="post" action="'.$url.'" enctype="multipart/form-data">'.ui_print_help_tip(__('The zip upload in this dir, easy to upload multiple files.'), true).html_print_input_file('file', true, false).html_print_input_hidden('umask', $umask, true).html_print_checkbox('decompress', 1, false, true).__('Decompress').html_print_submit_button(__('Go'), 'go', false, 'class="sub next"', true).html_print_input_hidden('real_directory', $real_directory, true).html_print_input_hidden('directory', $relative_directory, true).html_print_input_hidden('hash', md5($real_directory.$relative_directory.$config['dbpass']), true).html_print_input_hidden('hash2', md5($relative_directory.$config['dbpass']), true).html_print_input_hidden('upload_file_or_zip', 1, true).'</form></div>';
|
||||||
|
|
||||||
echo ' <div id="create_text_file" style="display: none;">'.$tabs_dialog.'
|
echo ' <div id="create_text_file" style="display: none;">'.$tabs_dialog.'
|
||||||
<form method="post" action="'.$url.'">'.html_print_input_text('name_file', '', '', 30, 50, true).html_print_submit_button(__('Create'), 'create', false, 'class="sub next"', true).html_print_input_hidden('real_directory', $real_directory, true).html_print_input_hidden('directory', $relative_directory, true).html_print_input_hidden('hash', md5($real_directory.$relative_directory.$config['dbpass']), true).html_print_input_hidden('umask', $umask, true).html_print_input_hidden('create_text_file', 1, true).'</form></div>';
|
<form method="post" action="'.$url.'">'.html_print_input_text('name_file', '', '', 30, 50, true).html_print_submit_button(__('Create'), 'create', false, 'class="sub next"', true).html_print_input_hidden('real_directory', $real_directory, true).html_print_input_hidden('directory', $relative_directory, true).html_print_input_hidden('hash', md5($real_directory.$relative_directory.$config['dbpass']), true).html_print_input_hidden('umask', $umask, true).html_print_input_hidden('create_text_file', 1, true).'</form></div>';
|
||||||
|
|
||||||
echo "<div style='width: ".$table->width.";' class='file_table_buttons'>";
|
echo "<div style='width: ".$table->width.";' class='file_table_buttons'>";
|
||||||
}
|
|
||||||
|
|
||||||
echo "<a href='javascript: show_form_create_folder();'>";
|
echo "<a href='javascript: show_form_create_folder();'>";
|
||||||
echo html_print_image(
|
echo html_print_image(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user