summaryrefslogtreecommitdiffstats
path: root/usr/local/www/widgets
diff options
context:
space:
mode:
authorN0YB <Al_Stu@Frontier.com>2013-03-16 17:19:46 -0700
committerN0YB <Al_Stu@Frontier.com>2013-03-16 17:19:46 -0700
commitfe74228f2a8a9abc45a580a01559518043ca8d0b (patch)
treea02fce8c029171fa899fcc1085b99ec7691373a2 /usr/local/www/widgets
parentba6b2811a11e1ddf355a93cecbf72ccee71d9b85 (diff)
downloadpfsense-fe74228f2a8a9abc45a580a01559518043ca8d0b.zip
pfsense-fe74228f2a8a9abc45a580a01559518043ca8d0b.tar.gz
Diag DNS Lookup Dialog Output
Display DNS lookup results in a dialog box rather than browsing away from the current page (Dashboard Firewall Widget or Status: System logs: Firewall) to the diag DNS page. Especially useful when filtering so that filter does not have to be reposted to return to the current page.
Diffstat (limited to 'usr/local/www/widgets')
-rw-r--r--usr/local/www/widgets/widgets/log.widget.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr/local/www/widgets/widgets/log.widget.php b/usr/local/www/widgets/widgets/log.widget.php
index 15d32f3..bb38d8d 100644
--- a/usr/local/www/widgets/widgets/log.widget.php
+++ b/usr/local/www/widgets/widgets/log.widget.php
@@ -185,8 +185,12 @@ function format_log_line(row) {
</a>
</td>
<td class="listMRr ellipsis nowrap" title="<?php echo htmlspecialchars($filterent['interface']);?>"><?php echo htmlspecialchars($filterent['interface']);?></td>
- <td class="listMRr ellipsis nowrap" title="<?php echo htmlspecialchars($filterent['src']);?>"><?php echo htmlspecialchars($filterent['src']);?></td>
- <td class="listMRr ellipsis nowrap" title="<?php echo htmlspecialchars($filterent['dst']);?>"><?php echo htmlspecialchars($filterent['dst']);?></td>
+ <td class="listMRr ellipsis nowrap" title="<?php echo htmlspecialchars($filterent['src']);?>">
+ <a href="#" onclick="javascript:getURL('diag_dns.php?host=<?php echo "{$filterent['srcip']}"; ?>&dialog_output=true', outputrule);" title="<?=gettext("Reverse Resolve with DNS");?>">
+ <?php echo htmlspecialchars($filterent['srcip']);?></a><?php echo ":" . htmlspecialchars($filterent['srcport']);?></td>
+ <td class="listMRr ellipsis nowrap" title="<?php echo htmlspecialchars($filterent['dst']);?>">
+ <a href="#" onclick="javascript:getURL('diag_dns.php?host=<?php echo "{$filterent['dstip']}"; ?>&dialog_output=true', outputrule);" title="<?=gettext("Reverse Resolve with DNS");?>">
+ <?php echo htmlspecialchars($filterent['dstip']);?></a><?php echo ":" . htmlspecialchars($filterent['dstport']);?></td>
<?php
if ($filterent['proto'] == "TCP")
$filterent['proto'] .= ":{$filterent['tcpflags']}";
OpenPOWER on IntegriCloud