open($tmpName) === true) { $result = $zip->extractTo($pathname); } else { $result = false; } } else { $result = false; } if ($result) { db_pandora_audit( AUDIT_LOG_EXTENSION_MANAGER, 'Upload extension '.$_FILES['extension']['name'] ); } ui_print_result_message( $result, __('Success to upload extension'), __('Fail to upload extension') ); } $table = new stdClass(); $table->width = '100%'; $table->class = 'databox filters'; $table->data = []; $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 "
'; } extensions_add_godmode_menu_option(__('Extension uploader'), 'PM', null, null, 'v1r1'); extensions_add_godmode_function('extension_uploader_extensions');