print_stop_message('product_x_imported', $info['productid']); } } // ############################################################################# if ($_REQUEST['do'] == 'productexport') { $vbulletin->input->clean_array_gpc('r', array( 'productid' => TYPE_STR )); try { $doc = get_product_export_xml($vbulletin->GPC['productid']); } catch (vB_Exception_AdminStopMessage $e) { //move print_stop_message calls from install_product so we //can use it places where said calls aren't appropriate. call_user_func_array('print_stop_message', $e->getParams()); } require_once(DIR . '/includes/functions_file.php'); file_download($doc, "product-" . $vbulletin->GPC['productid'] . '.xml', 'text/xml'); } print_cp_footer(); /*======================================================================*\
function autoexport_write_product($product) { require_once(DIR . '/includes/adminfunctions_plugin.php'); $xml = get_product_export_xml($product); autoexport_write_file_with_backup(DIR . "/includes/xml/product-$product.xml", $xml); //we don't want the templates in the xml on the filesystem require_once(DIR . '/includes/class_filesystemxml_template.php'); $helper = new vB_FilesystemXml_Template(); $helper->remove_product_templates($product); }