Ejemplo n.º 1
0
        unset($xml);
    }
    ($hook = vBulletinHook::fetch_hook('admin_index_navigation')) ? eval($hook) : false;
    // sort groups by display order
    ksort($navigation);
    foreach ($navigation as $group_keys) {
        foreach ($group_keys as $group_key => $navgroup_holder) {
            // sort options by display order
            ksort($navgroup_holder['options']);
            foreach ($navgroup_holder['options'] as $navoption_holder) {
                foreach ($navoption_holder as $navoption) {
                    construct_nav_option($navoption['text'], $navoption['link']);
                }
            }
            // have all the options, so do the group
            construct_nav_group($navgroup_holder['group']['text'], $navgroup_holder['group']['nav_file']);
            if ($navgroup_holder['group']['hr'] == 'true') {
                construct_nav_spacer();
            }
        }
    }
    print_nav_panel();
    unset($navigation);
    echo "</div>\n";
    // *************************************************
    define('NO_CP_COPYRIGHT', true);
    unset($DEVDEBUG);
    print_cp_footer();
}
// #############################################################################
// ################################ BUILD FRAMESET #############################
Ejemplo n.º 2
0
        construct_nav_option($vbphrase['join_requests'], 'user.php?do=viewjoinrequests');
        construct_nav_group($vbphrase['usergroups']);
        construct_nav_spacer();
    }
    // *************************************************
    $canmass = false;
    if (can_moderate(0, 'canmassmove')) {
        $canmass = true;
        construct_nav_option($vbphrase['move'], 'thread.php?do=move');
    }
    if (can_moderate(0, 'canmassprune')) {
        $canmass = true;
        construct_nav_option($vbphrase['prune'], 'thread.php?do=prune');
    }
    if ($canmass) {
        construct_nav_group($vbphrase['thread']);
        construct_nav_spacer();
    }
    ($hook = vBulletinHook::fetch_hook('mod_index_navigation')) ? eval($hook) : false;
    print_nav_panel();
    echo "</div>\n";
    // *************************************************
    define('NO_CP_COPYRIGHT', true);
    unset($DEVDEBUG);
    print_cp_footer();
}
/*======================================================================*\
|| ####################################################################
|| # Downloaded: 12:56, Sat Oct 11th 2008
|| # CVS: $RCSfile$ - $Revision: 26326 $
|| ####################################################################
Ejemplo n.º 3
0
 if (can_moderate(0, 'canunbanusers') or can_moderate(0, 'canbanusers')) {
     $canuser = true;
     construct_nav_option($vbphrase['view_banned_users'], 'banning.php?do=modify');
 }
 if (can_moderate(0, 'canviewips')) {
     $canuser = true;
     construct_nav_option($vbphrase['search_ip_addresses_gcphome'], 'user.php?do=doips');
 }
 if ($canuser) {
     construct_nav_group($vbphrase['users']);
     construct_nav_spacer();
 }
 // *************************************************
 if ($groupleader = $vbulletin->db->query_first("SELECT userid FROM " . TABLE_PREFIX . "usergroupleader WHERE userid = " . $vbulletin->userinfo['userid']) or $permissions['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel']) {
     construct_nav_option($vbphrase['join_requests'], 'user.php?do=viewjoinrequests');
     construct_nav_group($vbphrase['usergroups']);
     construct_nav_spacer();
 }
 // *************************************************
 /*
 $canmass = false;
 if (can_moderate(0, 'canmassmove'))
 {
 	$canmass = true;
 	construct_nav_option($vbphrase['move'], 'thread.php?do=move');
 }
 if (can_moderate(0, 'canmassprune'))
 {
 	$canmass = true;
 	construct_nav_option($vbphrase['prune'], 'thread.php?do=prune');
 }