1: 2: /* -------------------------------------------------------------
3: This file is part of FreeNATS
4:
5: FreeNATS is (C) Copyright 2008 PurplePixie Systems
6:
7: FreeNATS is free software: you can redistribute it and/or modify
8: it under the terms of the GNU General Public License as published by
9: the Free Software Foundation, either version 3 of the License, or
10: (at your option) any later version.
11:
12: FreeNATS is distributed in the hope that it will be useful,
13: but WITHOUT ANY WARRANTY; without even the implied warranty of
14: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15: GNU General Public License for more details.
16:
17: You should have received a copy of the GNU General Public License
18: along with Foobar. If not, see www.gnu.org/licenses
19:
20: For more information see www.purplepixie.org/freenats
21: -------------------------------------------------------------- */
22:
23: $menu=array();
24: $menu[0]="FreeNATS Homepage";
25: $menu[1]="Monitor | Main | Settings | Logout";
26: $menu[2]=$menu[1]." | Administrator";
27:
28: function Screen_Header($title,$menuindex=0,$alertpane=0,$ah="")
29: {
30: global $menu,$NATS,$NATS_Session;
31: if ($NATS->Cfg->Get("site.enable.interactive")!=1)
32: {
33: echo "Sorry but FreeNATS interactive is disabled. ";
34: echo "site.enable.interactive != 1
";
35: $NATS->Stop();
36: exit();
37: }
38: if ($menuindex==1) $alertpane=1; // bodge
39: if ($NATS_Session->userlevel>9) $menuindex=2; // further bodge!
40: echo "FreeNATS: ".$title."\n";
41: echo "\n";
42: if ($ah!="") echo $ah;
43: echo "\n";
44: echo "