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 "
"; } add_godmode_menu_option(__('Extension uploader'), 'AM', 'gextensions'); add_extension_godmode_function('extension_uploader_extensions'); ?>