Exemplo n.º 1
0
     		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':
     //Here are are updating the number of rows per page
     // This needs to be saved as a user preference. Then we will display
     // results again, which we will do because we don't have a "break"
     $current_user = new vB_Legacy_CurrentUser();
     $vbulletin->input->clean_array_gpc('r', array('perpage' => TYPE_UINT, 'sentfrom' => TYPE_STR));
     // print_cp_header needs to come before calling vBCms_ContentManager::savePerPage
     // which starts printing a table, creating whitespace before the CP header
     print_cp_header($vbphrase['vbcms']);
     $per_page = vBCms_ContentManager::savePerPage($current_user);
     switch ($vbulletin->GPC['sentfrom']) {
         case 'section':
             $redirect_do = 'section';
             break;
         case 'category':
             $redirect_do = 'category';
             break;
         case 'nodes':
         default:
             $redirect_do = 'list';
     }
     print_cp_message($vbphrase['saved_perpage'], 'cms_content_admin.php?' . $vbulletin->session->vars['sessionurl'] . "do={$redirect_do}");
     print_cp_footer();
     break;
 case 'filter_category':