Location: PHPKode > scripts > NConf > nconf-1.3.0-0/nconf/include/menu/menu_user.php
<?php
echo '
    <h2 class="ui-widget-header header"><span>'.TXT_MENU_BASIC.'</span></h2>
    <div class="ui-widget-content box_content">';

        ###
        # user navigation start
        $user_menu_begin = array();
        array_push($user_menu_begin, array("nav_links" => "Show History::history.php", "friendly_name" => "", "grouping" => ""));
        array_push($user_menu_begin, array("nav_links" => "Show Host parent / child view::dependency.php", "friendly_name" => "", "grouping" => ""));
        # create output
        create_menu($user_menu_begin);

        $user_menu_begin2 = array();
        # Create oncall link, if $ONCALL_GROUPS is defined
        if (!empty($ONCALL_GROUPS)){
            array_push($user_menu_begin2, array("nav_links" => "Change on-call settings::overview.php?class=contact&amp;xmode=pikett", "friendly_name" => "", "grouping" => ""));
        }
        # Generate Nagios config link
        array_push($user_menu_begin2, array("nav_links" => "Generate Nagios config::generate_config.php", "friendly_name" => "", "grouping" => ""));

        # create output
        create_menu($user_menu_begin2);



        ###
        # user navigation links of classes
        # Select ConfigClasses
        $query = 'SELECT grouping, nav_links, friendly_name  FROM ConfigClasses WHERE nav_privs = "user" AND nav_visible = "yes" ORDER BY UPPER(grouping), ordering ASC, config_class';
        $user_menu_end = db_handler($query, "array", "Select user Navigation classes");


        /* -> this seems to be not needed anymore, it makes not correct ordering in the menu
        # sorts a multidimensional array (grouping)
        # because of manual added entries like "generate nagios config"
        $tmp = Array();
        foreach($user_menu_end as &$ma){
            $tmp[] = &$ma["grouping"];
        }
        NConf_DEBUG::set($tmp, 'DEBUG', 'temporary');
        NConf_DEBUG::set($user_menu_end, 'DEBUG', 'user_menu_end');
        array_multisort($tmp, $user_menu_end); 
        */
        NConf_DEBUG::set($user_menu_end, 'DEBUG', 'Create menu user');

        # Display  menu
        create_menu($user_menu_end);


echo '</div>';

// FIX menu user end
//include('include/menu/static_content/menu_user_end.php');
include('include/menu/static_content/menu_user_end.html');

?>
Return current item: NConf