construct_hidden_code('oldid', $current['navid']); print_label_row($vbphrase['nav_default_old'], $current['text']); if ($vbulletin->debug) { print_select_row($vbphrase['nav_default_new'], 'newid', $choices, $navelement['navid']); } else { construct_hidden_code('newid', $navelement['navid']); print_label_row($vbphrase['nav_default_new'], $navelement['text'], '', 'top', null, 40); } print_yes_no_row($vbphrase['nav_default_set'], 'confirm', 1); ($hook = vBulletinHook::fetch_hook('navigation_admin_default')) ? eval($hook) : false; print_submit_row($vbphrase['save']); } if ($_REQUEST['do'] == 'dodefault') { $roots = get_navigation_roots($navlist); $vbulletin->input->clean_array_gpc('r', array('oldid' => TYPE_INT, 'newid' => TYPE_INT, 'confirm' => TYPE_INT)); $existing = get_navigation_default($navlist, false); $current = $navlist[$vbulletin->GPC['oldid']]; $proposed = $navlist[$vbulletin->GPC['newid']]; expand_navigation_state($current); expand_navigation_state($proposed); if ($vbulletin->GPC['confirm']) { if ($current['navid'] != $existing) { print_stop_message('invalid_current_default'); } if ($current['navid'] != $vbulletin->GPC['oldid']) { print_stop_message('invalid_current_default'); } if ($proposed['navid'] != $vbulletin->GPC['newid']) { print_stop_message('invalid_new_default'); } $sqlset1 = $sqlset2 = '';
define('CSRF_SKIP_LIST', ''); define('VB_ENTRY', 'forum.php'); // ################### PRE-CACHE TEMPLATES AND DATA ###################### // get special phrase groups $phrasegroups = array('activitystream', 'holiday'); // get special data templates from the datastore $specialtemplates = array('userstats', 'birthdaycache', 'maxloggedin', 'iconcache', 'eventcache', 'mailqueue', 'activeblocks'); // pre-cache templates used by all actions $globaltemplates = array('ad_board_after_forums', 'ad_board_below_whats_going_on', 'block_activitystream', 'block_blogentries', 'block_cmsarticles', 'block_newposts', 'block_sgdiscussions', 'block_tagcloud', 'block_threads', 'block_html', 'FORUMHOME', 'forumhome_event', 'forumhome_subforums', 'forumhome_forumbit_level1_nopost', 'forumhome_forumbit_level1_post', 'forumhome_forumbit_level2_nopost', 'forumhome_forumbit_level2_post', 'forumhome_lastpostby', 'tag_cloud_link'); // pre-cache templates used by specific actions $actiontemplates = array(); // ######################### REQUIRE BACK-END ############################ require_once './global.php'; // Redirect if required if (VB_REDIRECT === true) { $tabid = get_navigation_default(build_navigation_list(), false); if ($url = get_navigation_url($tabid)) { exec_header_redirect($url); } } require_once DIR . '/includes/functions_bigthree.php'; require_once DIR . '/includes/functions_forumlist.php'; // ####################################################################### // ######################## START MAIN SCRIPT ############################ // ####################################################################### verify_forum_url($vbulletin->options['forumhome']); ($hook = vBulletinHook::fetch_hook('forumhome_start')) ? eval($hook) : false; // get permissions to view forumhome if (!($permissions['forumpermissions'] & $vbulletin->bf_ugp_forumpermissions['canview'])) { print_no_permission(); }