diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index aec5f2ebbe..6da5957e74 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-11-23 Miguel de Dios + + * extensions/extension_uploader.php: add first version of extension + to upload other extensions. + 2010-11-22 Raúl Mateos * gomode/agentes/module_manager.php: Closed HTML tags. diff --git a/pandora_console/extensions/extension_uploader.php b/pandora_console/extensions/extension_uploader.php new file mode 100644 index 0000000000..bfb9bf2ec4 --- /dev/null +++ b/pandora_console/extensions/extension_uploader.php @@ -0,0 +1,70 @@ +open($tmpName) === true) { + $result = $zip->extractTo($pathname); + } + else { + $result = false; + } + } + else { + $result = false; + } + + if ($result) { + pandora_audit ("Extension manager", "Upload extension " . $_FILES['extension']['name']); + } + + print_result_message ($result, __('Success to upload extension'), + __('Fail to upload extension')); + } + + $table = null; + + $table->width = '50%'; + $table->data = array(); + $table->data[0][0] = __('Upload extension'); + $table->data[0][1] = print_input_file('extension', true) . + print_help_tip (__("Upload the extension as a zip file."), true); + + echo "
"; + print_table($table); + echo "
"; + print_input_hidden('upload', 1); + print_submit_button(__('Upload'), 'submit', false, 'class="sub add"'); + echo "
"; + echo "
"; +} + +add_godmode_menu_option(__('Extension uploader'), 'AM', 'gextensions'); +add_extension_godmode_function('extension_uploader_extensions'); +?>