<?php
-require_once "../common.php";
-require_once "../header.php";
+require_once "../inc/common.php";
+require_once "../inc/header.php";
$ip_info = [];
$ip = NULL;
<?php
}
-
+if (isset($whois))
+{
?>
<div class="modal fade" id="ip_whois_raw" tabindex="-1" role="dialog" aria-labelledby="confirmModalCenterTitle" aria-hidden="true">
</button>
</div>
<div class="modal-body">
- <code><?php echo str_replace("\n", "<br>",$whois); ?></code>
+ <code><?php echo str_replace("\n", "<br>",htmlspecialchars($whois)); ?></code>
</div>
<div class="modal-footer">
<button id="CloseButton" type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
-<?php require_once("../footer.php");
\ No newline at end of file
+<?php
+}
+require_once "../inc/footer.php";