$vbulletin->input->clean_array_gpc('r', array('sectionid' => TYPE_UINT, 'level' => TYPE_UINT)); $xml = new vB_AJAX_XML_Builder($vbulletin, 'text/xml'); $xml->add_group('root'); $xml->add_tag('html', vBCms_ContentManager::showSections($per_page)); $xml->close_group(); $xml->print_xml(); break; case 'list_allsection': //This is called from ajax.php. It returns a list of // sub-categories of the current node. Because //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'); $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':