'product' => TYPE_STR, )); // -------------------------------------------- // work out what we are supposed to do // set a default filename if (empty($vbulletin->GPC['filename'])) { $vbulletin->GPC['filename'] = 'vbulletin-style.xml'; } $doc = get_style_export_xml( $vbulletin->GPC['dostyleid'], $vbulletin->GPC['product'], $full_product_info[$vbulletin->GPC['product']]['version'], $vbulletin->GPC['title'], $vbulletin->GPC['mode'] ); require_once(DIR . '/includes/functions_file.php'); file_download($doc, $vbulletin->GPC['filename'], 'text/xml'); } // ############################################################################# // upload style if ($_REQUEST['do'] == 'upload') { $fields = array( 'overwritestyleid' => TYPE_INT, 'serverfile' => TYPE_STR,
function autoexport_write_master_style() { require_once(DIR . '/includes/adminfunctions_template.php'); $full_product_info = fetch_product_list(true); $xml = get_style_export_xml(-1, 'vbulletin', $full_product_info['vbulletin']['version'], '', 2); autoexport_write_file_with_backup(DIR . '/install/vbulletin-style.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('vbulletin'); }