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 = '50%'; $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); echo "
"; } extensions_add_godmode_menu_option(__('Extension uploader'), 'AM', 'gextensions'); extensions_add_godmode_function('extension_uploader_extensions'); ?>