//set_page(); # Get ID if (!empty($_REQUEST["id"])) { $id = $_REQUEST["id"]; } else { NConf_DEBUG::set("No id", 'ERROR'); } #determine if class or attribute if (!empty($_REQUEST["type"])) { $type = $_REQUEST["type"]; } else { NConf_DEBUG::set("This type does not exist", 'ERROR'); } // end / exit page if error if (NConf_DEBUG::status('ERROR')) { echo NConf_HTML::exit_error(); } if ($type == "class") { ######################################## ## configure user friendly names here ## ######################################## $user_friendly_names = array("id_attr" => "Attribute ID", "id_class" => "Class ID", "attr_name" => "Nagios-specific attribute name", "config_class" => "Nagios-specific class name", "friendly_name" => "Friendly name (shown in GUI)", "description" => "description, example or help-text", "datatype" => "Data type", "max_length" => "max. text-field length (chars)", "poss_values" => "Possible values", "predef_value" => "Predefined value", "mandatory" => "Is attribute mandatory", "ordering" => "Ordering position", "nav_visible" => "Is Class visible in Navigation", "visible" => "Is attribute visible", "write_to_conf" => "write attribute to configuration", "naming_attr" => "naming attribute", "link_as_child" => "link selected item(s) as children", "fk_show_class_items" => "items of class to be assigned", "fk_id_class" => "attribute belongs to class", "grouping" => "Navigation Group", "nav_links" => "Configure Links", "nav_privs" => "Viewable by", "out_file" => "generated filename", "nagios_object" => "Nagios object definition"); ######################################## ######################################## $HTTP_referer = 'show_class.php'; #query $query = 'SELECT * FROM ConfigClasses WHERE id_class = ' . $id; } elseif ($type == "attr") { ######################################## ## configure user friendly names here ## ########################################