$save = true; $subject_tpl = $body_tpl = ''; } // Save values in the "config" table if ($save) { Incident_ticket::save_email_template($subject_tpl, $body_tpl); header("Location: " . $_SERVER['SCRIPT_NAME']); exit; } // First time, get the default templates. They are defined // inside the function: Incident_ticket::get_email_template() if (!$subject_tpl) { $subject_tpl = Incident_ticket::get_email_template('subject'); } if (!$body_tpl) { $body_tpl = Incident_ticket::get_email_template('body'); } $labels = array('ID' => array('help' => _("The Ticket database ID"), 'sample' => '63'), 'INCIDENT_NO' => array('help' => _("The ticket human-oriented reference"), 'sample' => 'ALA63'), 'TITLE' => array('help' => _("The ticket resume"), 'sample' => _("Detected MAC change in DMZ")), 'EXTRA_INFO' => array('help' => _("Related ticket information"), 'sample' => "Source IPs: 10.10.10.10\n" . "Source Ports: 2267\n" . "Dest. IPs: 10.10.10.11\n" . "Dest. Ports: 22\n"), 'IN_CHARGE_NAME' => array('help' => _("The person currently in charge of solving the ticket"), 'sample' => 'John Smith'), 'IN_CHARGE_LOGIN' => array('help' => _("The login of the person currently in charge of solving the ticket"), 'sample' => 'jsmith'), 'IN_CHARGE_EMAIL' => array('help' => _("The email of the person currently in charge of solving the ticket"), 'sample' => '*****@*****.**'), 'IN_CHARGE_DPTO' => array('help' => _("The department of the person currently in charge of solving the ticket"), 'sample' => 'Tech Support'), 'IN_CHARGE_COMPANY' => array('help' => _("The company of the person currently in charge of solving the ticket"), 'sample' => 'Example Inc.'), 'PRIORITY_NUM' => array('help' => _("The priority of the ticket in numbers from 1 (low) to 10 (high)"), 'sample' => 8), 'PRIORITY_STR' => array('help' => _("The priority in string format: Low, Medium or High"), 'sample' => 'High'), 'TAGS' => array('help' => _("The extra labels of information attached to the ticket"), 'sample' => "NEED_MORE_INFO, FALSE_POSITIVE"), 'CREATION_DATE' => array('help' => _("When was the ticket created"), 'sample' => '2005-10-18 19:30:53'), 'STATUS' => array('help' => _("What's the current status: Open or Close"), 'sample' => 'Open'), 'CLASS' => array('help' => _("The type of ticket: Alarm, Event, Metric..."), 'sample' => 'Alarm'), 'TYPE' => array('help' => _("The ticket category or group"), 'sample' => 'Policy Violation'), 'LIFE_TIME' => array('help' => _("The time passed since the creation of the ticket"), 'sample' => '1 Day, 10:13'), 'TICKET_DESCRIPTION' => array('help' => _("The description filled by the ticket author"), 'sample' => 'Detected a MAC change on dmz1.int host'), 'TICKET_ACTION' => array('help' => _("The action filled by the ticket author"), 'sample' => 'Investigate the ticket asap'), 'TICKET_AUTHOR_NAME' => array('help' => _("The person who just created a new ticket"), 'sample' => 'Sam Max'), 'TICKET_AUTHOR_EMAIL' => array('help' => _("The email of the ticket author"), 'sample' => '*****@*****.**'), 'TICKET_AUTHOR_DPTO' => array('help' => _("The department of the ticket author"), 'sample' => 'Network Operations'), 'TICKET_AUTHOR_COMPANY' => array('help' => _("The company of the ticket author"), 'sample' => 'Same Example Inc.'), 'TICKET_EMAIL_CC' => array('help' => _("Who (Name and Email) received this email too"), 'sample' => "\"John Smith\" <*****@*****.**>\n\"Sam Max\" <*****@*****.**>"), 'TICKET_HISTORY' => array('help' => _("The complete list of tickets related to this ticket"), 'sample' => '-- Here goes the list of tickets --'), 'TICKET_INVERSE_HISTORY' => array('help' => _("The complete list of tickets related to this ticket") . " (" . _("reverse order") . ")", 'sample' => '-- Here goes the reversed list of tickets --')); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title> <?php echo gettext("OSSIM Framework"); ?> </title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> <meta http-equiv="Pragma" content="no-cache"/> <link rel="stylesheet" type="text/css" href="../style/style.css"/> <script type="text/javascript" src="../js/jquery-1.3.2.min.js"></script> <script type="text/javascript" src="../js/jquery-ui-1.7.custom.min.js"></script>