-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjs.php
More file actions
31 lines (25 loc) · 1.02 KB
/
Copy pathjs.php
File metadata and controls
31 lines (25 loc) · 1.02 KB
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
<script type="text/javascript">
fetch('https://dns.google/resolve?name=<?php echo $fulldomain ?>').then(function (response) {
response.text().then(function (text) {
var outputjsp = JSON.parse(text);
var resp = outputjsp.Status
if (resp == "0") {
function aihtml() {
var ul = document.getElementById("inuse");
var td = document.createElement("li");
td.appendChild(document.createTextNode("❌ - <?php echo $fulldomain ?>"));
ul.appendChild(td);
}
aihtml()
} else {
function aihtml() {
var ul = document.getElementById("avail");
var td = document.createElement("li");
td.appendChild(document.createTextNode("✔️ - <?php echo $fulldomain ?>"));
ul.appendChild(td);
}
aihtml()
}
});
});
</script>