open($tmpName) === true) { $result = $zip->extractTo($pathname); } else { $result = false; } } else { $result = false; } if ($result) { db_pandora_audit ("Extension manager", "Upload extension " . $_FILES['extension']['name']); } ui_print_result_message ($result, __('Success to upload extension'), __('Fail to upload extension')); } $table = null; $table->width = '100%'; $table->class = 'databox filters'; $table->data = array(); $table->data[0][0] = __('Upload extension'); $table->data[0][1] = html_print_input_file('extension', true) . ui_print_help_tip (__("Upload the extension as a zip file."), true); if (enterprise_installed()) { $table->data[0][2] = __('Upload enterprise extension') . " " . html_print_checkbox('upload_enterprise', 1, false, true); } echo "
"; html_print_table($table); echo "
"; html_print_input_hidden('upload', 1); html_print_submit_button(__('Upload'), 'submit', false, 'class="sub add"'); echo "
"; echo "
"; } extensions_add_godmode_menu_option(__('Extension uploader'), 'AM', null, null, "v1r1"); extensions_add_godmode_function('extension_uploader_extensions'); ?>