Exemple #1
0
     print_cp_header($vbphrase['content_manager']);
     echo vBCms_ContentManager::showNodes($per_page);
     print_cp_footer();
     break;
 case 'save':
     //figure out what type we're doing. It could be category or section.
     $vbulletin->input->clean_array_gpc('r', array('sortby' => TYPE_STR, 'title_filter' => TYPE_STR, 'submit' => TYPE_STR, 'state_filter' => TYPE_INT, 'author_filter' => TYPE_UINT, 'filter_section' => TYPE_UINT, 'sentfrom' => TYPE_STR, 'contenttypeid' => TYPE_INT));
     if ($vbulletin->GPC_exists['sentfrom'] and $vbulletin->GPC['sentfrom'] == 'section') {
         print_cp_header($vbphrase['section_manager']);
         vBCms_ContentManager::updateSections();
         echo vBCms_ContentManager::showSections($per_page);
         print_cp_footer();
     } else {
         if ($vbulletin->GPC_exists['sentfrom'] and $vbulletin->GPC['sentfrom'] == 'category' or $vbulletin->GPC_exists['contenttypeid'] and $vbulletin->GPC['contenttypeid'] == vB_Types::instance()->getContentTypeID('vBCms_Category')) {
             print_cp_header($vbphrase['category_manager']);
             vBCms_ContentManager::updateCategories();
             echo vBCms_ContentManager::showNodes($per_page, 'category');
             print_cp_footer();
         } else {
             if ($vbulletin->GPC_exists['sentfrom'] and $vbulletin->GPC['sentfrom'] == 'nodes') {
                 print_cp_header($vbphrase['content_manager']);
                 vBCms_ContentManager::updateSections();
                 echo vBCms_ContentManager::showNodes($per_page);
                 print_cp_footer();
             }
         }
     }
 case 'fix_nodes':
     print_cp_header($vbphrase['vbcms']);
     echo vBCms_ContentManager::fixNodeLR();
     print_cp_message($vbphrase['nodetable_repaired']);