Skip to content

Commit

Permalink
Added scan link to IP's
Browse files Browse the repository at this point in the history
Ability to lookup IP's
Added to both Input and Conection tab
  • Loading branch information
Slober3 committed Jul 2, 2017
1 parent 26507f2 commit 594b9b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Website+Backend/inputView.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function __construct($it) {

function current() {
$text = wordwrap(parent::current(), 100, "\n", false);
return "<td>" . $text . "</td>";
return "<td>" . ( filter_var($text, FILTER_VALIDATE_IP) ? '<a href="http://www.ipvoid.com/scan/'.$text.'/">'.$text.'</a>' : $text) . "</td>";
}

function beginChildren() {
Expand Down
2 changes: 1 addition & 1 deletion Website+Backend/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function __construct($it) {
}

function current() {
return "<td>" . parent::current(). "</td>";
return "<td>" . ( filter_var(parent::current(), FILTER_VALIDATE_IP) ? '<a href="http://www.ipvoid.com/scan/'.parent::current().'/">'.parent::current().'</a>' : parent::current()) . "</td>";
}

function beginChildren() {
Expand Down

0 comments on commit 594b9b9

Please sign in to comment.