File: 0.02.68a/server/base/view.inc.php (View as Code)

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 FreeNATS. If not, see www.gnu.org/licenses 19: 20: For more information see www.purplepixie.org/freenats 21: -------------------------------------------------------------- */ 22: 23: function ViewItemTxt($type,$option) 24: { 25: switch ($type) 26: { 27: case "node": return "Node - ".$option; 28: case "allnodes": return "All Active Nodes"; 29: case "alertnodes": return "All Alerting Nodes"; 30: case "group": return "Group (".$option.")"; 31: case "allgroups": return "All Groups"; 32: case "alertgroups": return "All Alerting Groups"; 33: case "alerts": return "Current Alerts"; 34: case "title": return "Title (".$option.")"; 35: case "testdetail": return "Detail for Test (".$option.")"; 36: case "testgraph": return "History Graph for Test (".$option.")"; 37: default: return "Unknown Item Type (".$type."/".$option.")"; 38: } 39: } 40: 41: 42: 43: ?>