/
index.php
53 lines (35 loc) · 1.24 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
//ini_set('display_errors',1);
//ini_set('display_startup_errors',1);
//error_reporting(-1);
// ini_set('display_errors', 1);
// error_reporting(E_ALL);
require_once('includes/controllers.php');
//include('views/_header.php');
$q = $_GET['q']; //query method
$a = $_GET['a']; //query action (ajax)
if ($q=="dnslookup") {
include('views/_header.php');
include('views/home.php');
include('views/domainlookup.php');
include('views/_footer.php');
}
elseif ($q=="ajax"){
ini_set('display_errors', 0);
$domain = actualDomain($_GET['domain']);
if ($a=="ip"){ print ipLookup($domain); }
if ($a=="madwireSystem"){ print check_madwire_ip($domain); }
if ($a=="bcStyles"){ print check_bc_styles($domain); }
if ($a=="dnsA") { print "<pre>". diga($domain) . "</pre>"; }
if ($a=="whois") { print "<pre>". whois($domain). "</pre>";}
if ($a=="dnsMX") { print "<pre>". digmx($domain). "</pre>";}
if ($a=="ipWhois") { print "<pre>". ipWhois($domain). "</pre>";}
if ($a=="cert") { print "<pre>". certificate($domain). "</pre>"; }
if ($a=="ipgeo"){ print "<pre>". ipgeo($domain). "</pre>";}
}
else {
include('views/_header.php');
include('views/home.php');
include('views/_footer.php');
}
?>