require_once DIR . '/includes/functions_misc.php'; $vbulletin->input->clean_array_gpc('r', array('order' => TYPE_UINT)); $xml = new vB_AJAX_XML_Builder($vbulletin, 'text/xml'); $xml->add_group('root'); $xml->add_tag('html', vBCms_ContentManager::getSectionList($vbulletin->GPC['order'])); $xml->close_group(); $xml->print_xml(); break; case 'list_categories': //This is called from ajax with a sectionid to // list the categories in that section require_once DIR . '/includes/functions_misc.php'; $vbulletin->input->clean_array_gpc('r', array('sectionid' => TYPE_UINT)); $xml = new vB_AJAX_XML_Builder($vbulletin, 'text/xml'); $xml->add_group('root'); $xml->add_tag('html', vBCms_ContentManager::getCategoryList($vbulletin->GPC['sectionid'])); $xml->close_group(); $xml->print_xml(); break; case 'find_categories': //This is called to list categories for the //article edit page. It creates a scrolling list. You can give it a string, // or a category, or a section. //we're just returning xml for ajax we don't want any headers, etc. require_once DIR . '/includes/functions_misc.php'; $vbulletin->input->clean_array_gpc('r', array('order' => TYPE_UINT)); $xml = new vB_AJAX_XML_Builder($vbulletin, 'text/xml'); $xml->add_group('root'); $html = vBCms_ContentManager::getCategorySelector(); if (!empty($html)) { $xml->add_tag('html', $html);