File: menu.php

package info (click to toggle)
nag 1.1-3.1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,196 kB
  • ctags: 288
  • sloc: php: 1,260; sh: 657; makefile: 95; xml: 34; perl: 20; sql: 14
file content (27 lines) | stat: -rw-r--r-- 827 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
/**
 * $Horde: nag/menu.php,v 1.6.2.1 2002/12/17 04:37:23 jon Exp $
 *
 * Copyright 2001-2002 Jon Parise <jon@horde.org>
 *
 * See the enclosed file COPYING for license information (GPL). If you did
 * not receive such a file, see also http://www.fsf.org/copyleft/gpl.html.
 */

require_once HORDE_BASE . '/lib/Menu.php';

/* Check for additional site-specific menu items (in config/menu.php). */
$additional_items = '';
if (@is_readable(NAG_BASE . '/config/menu.php')) {
    include_once NAG_BASE . '/config/menu.php';
    foreach ($_menu as $item) {
        $additional_items .= Menu::customItem($item);
    }
}

require NAG_TEMPLATES . '/menu/menu.inc';

/* Include the JavaScript for the help system (if enabled). */
if ($conf['user']['online_help'] && $browser->hasFeature('javascript')) {
    Help::javascript();
}