Exemple #1
0
     $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);
         $xml->close_group();
         $xml->print_xml();
     }
     break;
 case 'clear_cache':
     /* This is now located in misc.php and called from the maintenance 
     		section, because the cache is now used by functions outside of the CMS.
     		Nothing should actually call this, but just in case, display a message. */
     print_cp_header($vbphrase['vbcms']);
     print_cp_message($vbphrase['no_cache_clean']);
     print_cp_footer();
     break;
 case 'perpage':