-
Notifications
You must be signed in to change notification settings - Fork 0
/
navbar.php
85 lines (71 loc) · 5.39 KB
/
navbar.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
function show_navbar($toproof, $working_domain, $pageTitle) {
?>
<!-- NAV BAR START -->
<nav class="navbar navbar-expand-lg nav-color navbar-dark">
<div class="container-fluid">
<a class="navbar-brand" href="<?php echo $working_domain ?>">
<img src="assets/window-domain_icon-icons.com_52810.png" alt="" style="width:40px;" class="rounded-pill"> <?php echo $pageTitle ?>
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent" aria-controls="navbarContent" aria-expanded="true" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarContent">
<form class="d-flex justify-content-center" action="index.php" method="get">
<input type="text" class="form-control me-2 search-color" placeholder="Enter Domain or IP" name="toproof" value="<?php echo $toproof; ?>">
<div class="btn-group" role="group">
<button type="button" class="btn btn-primary dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
Choose tool
</button>
<ul class="dropdown-menu" aria-labelledby="navbarContent">
<li><button type="submit" class="dropdown-item" name="action" value="health-check">Health Check</button></li>
<li><button type="submit" class="dropdown-item" name="action" value="nslookup">nslookup</button></li>
<li><button type="button" class="dropdown-item" data-bs-toggle="modal" data-bs-target="#dig_choose">dig</button></li>
<li><button type="submit" class="dropdown-item" name="action" value="whois">whois</button></li>
<li><button type="submit" class="dropdown-item" name="action" value="dnssec">dnssec</button></li>
<li><button type="submit" class="dropdown-item" name="action" value="rdns-ptr">rDNS/PTR</button></li>
<li><button type="submit" class="dropdown-item" name="action" value="puny">Punyconvert</button></li>
<!-- <li><button type="submit" class="dropdown-item" name="action" value="mtr">MTR</button></li> -->
</ul>
</div>
<!-- Modal dig choose -->
<div class="modal" id="dig_choose">
<div class="modal-dialog">
<div class="modal-content">
<!-- Modal Header -->
<div class="modal-header">
<h4 class="modal-title">Dig Choose</h4>
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<!-- Modal body -->
<div class="modal-body">
<pre>Please select what you would like to check here</pre>
<form class="d-flex justify-content-center" action="index.php" method="get">
<div class="btn-group-vertical">
<li><button type="submit" class="dropdown-item" name="action" value="digA">A (IPv4)</button></li>
<li><button type="submit" class="dropdown-item" name="action" value="digAAAA">AAAA (IPv6)</button></li>
<li><button type="submit" class="dropdown-item" name="action" value="digTXT">TXT</button></li>
<li><button type="submit" class="dropdown-item" name="action" value="digMX">MX</button></li>
<li><button type="submit" class="dropdown-item" name="action" value="digCNAME">CNAME</button></li>
<!-- <li><button type="submit" class="dropdown-item" name="action" value="digCAA">CAA</button></li> -->
<!-- <li><button type="submit" class="dropdown-item" name="action" value="digDS">DS</button></li> -->
<li><button type="submit" class="dropdown-item" name="action" value="digOPENPGPKEY">OPENPGPKEY</button></li>
<li><button type="submit" class="dropdown-item" name="action" value="digSSHFP">SSHFP</button></li>
</div>
</form>
</div>
<!-- Modal footer -->
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</nav>
<!-- NAV BAR END -->
<?php
}
?>