/* Display Alert message */
if ($input_errors) {
    print_input_errors($input_errors);
    // TODO: add checks
}
if ($savemsg) {
    print_info_box2($savemsg);
}
//if (file_exists($d_snortconfdirty_path)) {
if (file_exists($d_snortconfdirty_path) || file_exists("/var/run/snort_conf_{$snort_uuid}_.dirty")) {
    echo '<p>';
    if ($savemsg) {
        print_info_box_np2("{$savemsg}");
    } else {
        print_info_box_np2('
			The Snort configuration has changed and snort needs to be restarted on this interface.<br>
			You must apply the changes in order for them to take effect.<br>
			');
    }
}
?>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td>
<?php 
$tab_array = array();
$tabid = 0;
$tab_array[$tabid] = array(gettext("Snort Interfaces"), false, "/snort/snort_interfaces.php");
$tabid++;
$tab_array[$tabid] = array(gettext("If Settings"), true, "/snort/snort_interfaces_edit.php?id={$id}");
$tabid++;
$tab_array[$tabid] = array(gettext("Categories"), false, "/snort/snort_rulesets.php?id={$id}");
/* Display Alert message */
if ($input_errors) {
    print_input_errors($input_errors);
}
// TODO: add checks
if ($savemsg) {
    print_info_box2($savemsg);
}
//if (file_exists($d_snortconfdirty_path)) {
if ($d_snortconfdirty_path_ls != '') {
    echo '<p>';
    if ($savemsg) {
        print_info_box_np2("{$savemsg}");
    } else {
        print_info_box_np2('
			The Snort configuration has changed for one or more interfaces.<br>
			You must apply the changes in order for them to take effect.<br>
			');
    }
}
?>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td>
<?php 
$tab_array = array();
$tab_array[0] = array(gettext("Snort Interfaces"), true, "/snort/snort_interfaces.php");
$tab_array[1] = array(gettext("Global Settings"), false, "/snort/snort_interfaces_global.php");
$tab_array[2] = array(gettext("Updates"), false, "/snort/snort_download_updates.php");
$tab_array[3] = array(gettext("Alerts"), false, "/snort/snort_alerts.php");
$tab_array[4] = array(gettext("Blocked"), false, "/snort/snort_blocked.php");
$tab_array[5] = array(gettext("Whitelists"), false, "/snort/snort_interfaces_whitelist.php");