".S_NO_PERMISSIONS.""); show_footer(); exit; } ?> "; $h2=$h2.form_select("config",0,S_HOUSEKEEPER); $h2=$h2.form_select("config",1,S_MEDIA_TYPES); $h2=$h2.form_select("config",2,S_ESCALATION_RULES); $h2=$h2.form_select("config",3,S_IMAGES); $h2=$h2.""; show_header2($h1, $h2, "
", "
"); # show_table_header(S_CONFIGURATION_OF_ZABBIX_BIG); ?> "; echo nbsp(S_DO_NOT_KEEP_ALERTS_OLDER_THAN); show_table2_h_delimiter(); echo ""; show_table2_v_delimiter($col++); echo nbsp(S_DO_NOT_KEEP_ALARMS_OLDER_THAN); show_table2_h_delimiter(); echo ""; show_table2_v_delimiter2(); echo ""; show_table2_header_end(); } ?> "; show_table_header(S_IMAGES_BIG); table_begin(); table_header(array(S_ID,S_TYPE,S_NAME,S_ACTIONS)); $result=DBselect("select imageid,imagetype,name,image from images order by name"); $col=0; while($row=DBfetch($result)) { if($row["imagetype"]==1) { $imagetype=S_ICON; } else if($row["imagetype"]==2) { $imagetype=S_BACKGROUND; } else { $imagetype=S_UNKNOWN; } $actions="".S_SHOW.""; $actions=$actions." :: ".S_CHANGE.""; table_row(array( $row["imageid"], $imagetype, $row["name"], // "", $actions),$col++); } if(DBnum_rows($result)==0) { echo ""; echo "".S_NO_IMAGES_DEFINED.""; echo ""; } table_end(); if(!isset($_GET["imageid"])) { $name=""; $imagetype=1; } else { $result=DBselect("select imageid,imagetype,name,image from images where imageid=".$_GET["imageid"]); $row=DBfetch($result); $name=$row["name"]; $imagetype=$row["imagetype"]; $imageid=$row["imageid"]; } $col=0; show_form_begin("config.images"); echo S_IMAGE; show_table2_v_delimiter($col++); # echo "
"; echo ""; echo ""; echo ""; if(isset($imageid)) { echo ""; } echo nbsp(S_NAME); show_table2_h_delimiter(); echo ""; show_table2_v_delimiter($col++); echo S_TYPE; show_table2_h_delimiter(); echo ""; show_table2_v_delimiter($col++); echo S_UPLOAD; show_table2_h_delimiter(); echo ""; show_table2_v_delimiter2(); echo ""; if(isset($_GET["imageid"])) { echo ""; } show_table2_header_end(); } ?> "; show_table_header(S_MEDIA_TYPES_BIG); table_begin(); table_header(array(S_ID,S_TYPE,S_DESCRIPTION_SMALL,S_ACTIONS)); $result=DBselect("select mt.mediatypeid,mt.type,mt.description,mt.smtp_server,mt.smtp_helo,mt.smtp_email,mt.exec_path from media_type mt order by mt.type"); $col=0; while($row=DBfetch($result)) { if($row["type"]==0) { $type=S_EMAIL; } else if($row["type"]==1) { $type=S_SCRIPT; } else { $type=S_UNKNOWN; } $actions="".S_CHANGE.""; table_row(array( $row["mediatypeid"], $type, $row["description"], $actions),$col++); } if(DBnum_rows($result)==0) { echo ""; echo "".S_NO_MEDIA_TYPES_DEFINED.""; echo ""; } table_end(); ?> "; if(isset($_GET["mediatypeid"])) { echo ""; } echo ""; echo S_DESCRIPTION; show_table2_h_delimiter(); echo ""; show_table2_v_delimiter($col++); echo S_TYPE; show_table2_h_delimiter(); echo ""; if($type==0) { echo ""; show_table2_v_delimiter($col++); echo nbsp(S_SMTP_SERVER); show_table2_h_delimiter(); echo ""; show_table2_v_delimiter($col++); echo nbsp(S_SMTP_HELO); show_table2_h_delimiter(); echo ""; show_table2_v_delimiter($col++); echo nbsp(S_SMTP_EMAIL); show_table2_h_delimiter(); echo ""; } if($type==1) { echo ""; echo ""; echo ""; show_table2_v_delimiter($col++); echo S_SCRIPT_NAME; show_table2_h_delimiter(); echo ""; } show_table2_v_delimiter2(); echo ""; if(isset($_GET["mediatypeid"])) { echo ""; echo ""; } show_table2_header_end(); } ?> "; show_table_header(S_ESCALATION_RULES_BIG); table_begin(); table_header(array(S_ID,S_DESCRIPTION_SMALL,S_ACTIONS)); $result=DBselect("select escalationid, name from escalations order by name"); $col=0; while($row=DBfetch($result)) { $actions="".S_CHANGE.""; table_row(array( $row["escalationid"], $row["name"], $actions),$col++); } if(DBnum_rows($result)==0) { echo ""; echo "".S_NO_ESCALATION_RULES_DEFINED.""; echo ""; } table_end(); echo "
"; show_table_header(S_ESCALATION_DETAILS_BIG); table_begin(); table_header(array(S_STEP,S_DESCRIPTION_SMALL,S_ACTIONS)); table_row(array( 1, "30 seconds on this level", "Increase escalation level"),$col++); table_row(array( 2, "60 seconds on this level", "Increase escalation level"),$col++); table_row(array( 1, "", "Increase severity"),$col++); table_row(array( 1, "", "Set escalation level to 5"),$col++); table_row(array( 1, "", "Increase administrative hierarcy"),$col++); $result=DBselect("select escalationid, name from escalations order by name"); $col=0; while($row=DBfetch($result)) { break; $actions="".S_CHANGE.""; table_row(array( $row["escalationid"], $row["name"], $actions),$col++); } if(DBnum_rows($result)==0) { echo ""; echo "".S_NO_ESCALATION_DETAILS.""; echo ""; } table_end(); } ?>