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