Commit baa9f798 authored by Franco Fichtner's avatar Franco Fichtner

src: 50 shades of white

parent ee277400
......@@ -387,12 +387,12 @@ function handle_ajax($nentries, $tail = 50) {
$row_time = strtotime($log_row['time']);
//$img = "<img border='0' src='" . find_action_image($log_row['act']) . "' alt={$log_row['act']} title={$log_row['act']} />";
if ($log_row['act']=="pass") {
$img="<span class='glyphicon glyphicon-play text-success' alt={$log_row['act']}></span>";
$img="<span class='glyphicon glyphicon-play text-success' alt={$log_row['act']}></span>";
} elseif ($log_row['act']=="block") {
$img="<span class='glyphicon glyphicon-remove text-danger' alt={$log_row['act']}></span>";
} elseif ($log_row['act']=="reject") {
$img="<span class='glyphicon glyphicon-remove text-warning' alt={$log_row['act']}></span>";
}
}
if($row_time > $lastsawtime) {
if ($log_row['proto'] == "TCP")
$log_row['proto'] .= ":{$log_row['tcpflags']}";
......
......@@ -17,4 +17,4 @@
<td>
<span class="help-block" for="{{ id }}"></span>
</td>
</tr>
\ No newline at end of file
</tr>
......@@ -98,7 +98,7 @@
BootstrapDialogModal.METHODS_TO_OVERRIDE['v3.3'] = {
/**
* Overrided.
*
*
* @returns {undefined}
*/
setScrollbar: function() {
......@@ -109,7 +109,7 @@
},
/**
* Overrided.
*
*
* @returns {undefined}
*/
resetScrollbar: function() {
......@@ -120,7 +120,7 @@
},
/**
* Overrided.
*
*
* @returns {undefined}
*/
hideModal: function() {
......@@ -140,7 +140,7 @@
constructor: BootstrapDialogModal,
/**
* New function, to get the dialogs that opened by BootstrapDialog.
*
*
* @returns {undefined}
*/
getGlobalOpenedDialogs: function() {
......@@ -287,7 +287,7 @@
},
/**
* To make multiple opened dialogs look better.
*
*
* Will be removed in later version, after Bootstrap Modal >= 3.3.0, updating z-index is unnecessary.
*/
updateZIndex: function() {
......
......@@ -136,5 +136,3 @@ function ajaxGet(url,sendData,callback) {
data:sendData
});
}
......@@ -134,4 +134,4 @@
}
}
/** End of icon animation **/
}
\ No newline at end of file
}
......@@ -182,7 +182,7 @@ include("head.inc"); ?>
</header>
<div class="content-box-main">
<div class="table-responsive">
<div class="table-responsive">
<table class="table table-striped">
<tbody>
<tr>
......@@ -260,10 +260,10 @@ include("head.inc"); ?>
<?php endif; ?>
</tbody>
</table>
</div>
<div class="container-fluid">
<input type="submit" class="btn btn-primary btn-fixed pull-right" value="<?=gettext("DNS Lookup");?>" />
</div>
</div>
<div class="container-fluid">
<input type="submit" class="btn btn-primary btn-fixed pull-right" value="<?=gettext("DNS Lookup");?>" />
</div>
</div>
</div>
</section>
......
......@@ -305,7 +305,7 @@ $main_buttons = array(
<?=$textss;?>
<?php
//if ($alias_src_span_begin) echo htmlspecialchars(pprint_address($alias_src_span_begin));
//else
//else
echo htmlspecialchars(pprint_address($natent['source']));
//if ($alias_src_span_end) echo htmlspecialchars(pprint_address($alias_src_span_end));
?>
......@@ -315,7 +315,7 @@ $main_buttons = array(
<?=$textss;?>
<?php
//if ($alias_src_port_span_begin) echo htmlspecialchars(pprint_port($alias_src_port_span_begin));
//else
//else
echo htmlspecialchars(pprint_port($natent['source']['port']));
//if($alias_src_port_span_end) echo htmlspecialchars(pprint_port($alias_src_port_span_end));
?><?=$textse;?>
......@@ -325,7 +325,7 @@ $main_buttons = array(
<?=$textss;?>
<?php
//if ($alias_dst_span_begin) echo htmlspecialchars(pprint_address($alias_dst_span_begin));
//else
//else
echo htmlspecialchars(pprint_address($natent['destination']));
//if ($alias_dst_span_end) echo htmlspecialchars(pprint_address($alias_dst_span_end));
?><?=$textse;?>
......@@ -334,7 +334,7 @@ $main_buttons = array(
<?=$textss;?>
<?php
//if ($alias_dst_port_span_begin) echo htmlspecialchars(pprint_port($alias_dst_port_span_begin['address']));
//else
//else
echo htmlspecialchars(pprint_port($natent['destination']['port']));
//if ($alias_dst_port_span_end ) echo htmlspecialchars(pprint_port($alias_dst_port_span_end['address']));
?><?=$textse;?>
......@@ -344,7 +344,7 @@ $main_buttons = array(
<?=$textss;?>
<?php
//if ($alias_target_span_begin) echo htmlspecialchars(pprint_address($alias_target_span_begin));
//else
//else
echo htmlspecialchars($natent['target']);
//if ($alias_target_span_end) echo htmlspecialchars(pprint_address($alias_target_span_end));
?><?=$textse;?>
......@@ -362,7 +362,7 @@ $main_buttons = array(
?>
<?=$textss;?><?php
//if ($alias_local_port_span_begin) echo htmlspecialchars(pprint_port($alias_local_port_span_begin['address']));
//else
//else
echo htmlspecialchars(pprint_port($localport));
//if ($alias_local_port_span_end) echo htmlspecialchars(pprint_port($alias_local_port_span_end['address']));
?><?=$textse;?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment