at path:ROOT / clients / siptv357 / whois.php
run:R W Run
DIR
2026-04-08 19:27:46
R W Run
DIR
2026-04-08 19:25:59
R W Run
DIR
2026-04-08 19:27:51
R W Run
21.93 KB
2026-04-08 19:24:51
R W Run
49.15 KB
2026-04-08 19:24:52
R W Run
280.99 KB
2026-04-08 19:24:50
R W Run
101.33 KB
2026-04-08 19:24:53
R W Run
179.56 KB
2026-04-08 19:24:46
R W Run
213.14 KB
2026-04-08 19:24:52
R W Run
79.92 KB
2026-04-08 19:24:46
R W Run
56 KB
2026-04-08 19:24:54
R W Run
86.7 KB
2026-04-08 19:24:53
R W Run
6.61 KB
2026-04-08 19:24:50
R W Run
208.83 KB
2026-04-08 19:24:47
R W Run
118.62 KB
2026-04-08 19:24:53
R W Run
102.65 KB
2026-04-08 19:24:52
R W Run
95.59 KB
2026-04-08 19:24:51
R W Run
6.62 KB
2026-04-08 19:24:49
R W Run
71.19 KB
2026-04-08 19:24:51
R W Run
442.59 KB
2026-04-08 19:24:50
R W Run
63.35 KB
2026-04-08 19:24:53
R W Run
10.58 KB
2026-04-08 19:24:53
R W Run
9.56 KB
2026-04-08 19:24:52
R W Run
254.62 KB
2026-04-08 19:24:53
R W Run
45.93 KB
2026-04-08 19:24:48
R W Run
33.13 KB
2026-04-08 19:24:48
R W Run
70.7 KB
2026-04-08 19:24:53
R W Run
67.05 KB
2026-04-08 19:24:53
R W Run
118.6 KB
2026-04-08 19:24:53
R W Run
38.58 KB
2026-04-08 19:24:51
R W Run
897.49 KB
2026-04-08 19:24:50
R W Run
423.19 KB
2026-04-08 19:24:52
R W Run
151.14 KB
2026-04-08 19:24:51
R W Run
145.99 KB
2026-04-08 19:24:54
R W Run
148.23 KB
2026-04-08 19:24:48
R W Run
453.85 KB
2026-04-08 19:24:49
R W Run
177.45 KB
2026-04-08 19:24:51
R W Run
195.88 KB
2026-04-08 19:24:51
R W Run
16.13 KB
2026-04-08 19:24:49
R W Run
117.47 KB
2026-04-08 19:24:51
R W Run
313.6 KB
2026-04-08 19:24:50
R W Run
256.93 KB
2026-04-08 19:24:54
R W Run
37.77 KB
2026-04-08 19:24:48
R W Run
60.22 KB
2026-04-08 19:24:51
R W Run
310.39 KB
2026-04-08 19:24:52
R W Run
72.87 KB
2026-04-08 19:24:52
R W Run
116.18 KB
2026-04-08 19:24:52
R W Run
109.8 KB
2026-04-08 19:24:47
R W Run
81.07 KB
2026-04-08 19:24:53
R W Run
655.6 KB
2026-04-08 19:24:53
R W Run
208 KB
2026-04-08 19:24:50
R W Run
27.25 KB
2026-04-08 19:24:54
R W Run
216.76 KB
2026-04-08 19:24:52
R W Run
983.86 KB
2026-04-08 19:24:48
R W Run
123.57 KB
2026-04-08 19:24:47
R W Run
70.04 KB
2026-04-08 19:24:53
R W Run
242.47 KB
2026-04-08 19:24:49
R W Run
1.12 MB
2026-04-08 19:24:53
R W Run
282.51 KB
2026-04-08 19:24:49
R W Run
92.23 KB
2026-04-08 19:24:51
R W Run
47.27 KB
2026-04-08 19:24:49
R W Run
487.47 KB
2026-04-08 19:24:54
R W Run
6.44 KB
2026-04-08 19:24:50
R W Run
322.19 KB
2026-04-08 19:24:51
R W Run
139.51 KB
2026-04-08 19:24:51
R W Run
49.82 KB
2026-04-08 19:24:54
R W Run
74.8 KB
2026-04-08 19:24:52
R W Run
50.72 KB
2026-04-08 19:24:51
R W Run
6.34 KB
2026-04-08 19:24:47
R W Run
19.29 KB
2026-04-08 19:24:48
R W Run
888 By
2026-04-08 19:24:51
R W Run
63.53 KB
2026-04-08 19:24:53
R W Run
51.3 KB
2026-04-08 19:24:49
R W Run
53.33 KB
2026-04-08 19:24:51
R W Run
12.83 KB
2026-04-08 19:24:48
R W Run
802.17 KB
2026-04-08 19:24:54
R W Run
36.67 KB
2026-04-08 19:24:50
R W Run
5.91 KB
2026-04-08 19:24:47
R W Run
7.28 KB
2026-04-08 19:24:50
R W Run
11.77 KB
2026-04-08 19:24:53
R W Run
118.58 KB
2026-04-08 19:24:52
R W Run
288.49 KB
2026-04-08 19:24:50
R W Run
103.43 KB
2026-04-08 19:24:48
R W Run
104.42 KB
2026-04-08 19:24:52
R W Run
124.17 KB
2026-04-08 19:24:47
R W Run
31.12 KB
2026-04-08 19:24:53
R W Run
602.32 KB
2026-04-08 19:24:54
R W Run
352.45 KB
2026-04-08 19:24:49
R W Run
331.86 KB
2026-04-08 19:24:51
R W Run
142.83 KB
2026-04-08 19:24:49
R W Run
120.18 KB
2026-04-08 19:24:50
R W Run
234.26 KB
2026-04-08 19:24:53
R W Run
96.05 KB
2026-04-08 19:24:52
R W Run
88.58 KB
2026-04-08 19:24:47
R W Run
204.38 KB
2026-04-08 19:24:48
R W Run
223.06 KB
2026-04-08 19:24:52
R W Run
136.21 KB
2026-04-08 19:24:54
R W Run
1014.04 KB
2026-04-08 19:24:49
R W Run
24.26 KB
2026-04-08 19:24:47
R W Run
45.7 KB
2026-04-08 19:24:51
R W Run
58.67 KB
2026-04-08 19:24:52
R W Run
24.87 KB
2026-04-08 19:24:51
R W Run
102.83 KB
2026-04-08 19:24:50
R W Run
59.95 KB
2026-04-08 19:24:46
R W Run
23.7 KB
2026-04-08 19:24:52
R W Run
50.54 KB
2026-04-08 19:24:48
R W Run
18.17 KB
2026-04-08 19:24:49
R W Run
5.94 KB
2026-04-08 19:24:52
R W Run
5.94 KB
2026-04-08 19:24:48
R W Run
6.01 KB
2026-04-08 19:24:49
R W Run
10.22 KB
2026-04-08 19:24:50
R W Run
34.44 KB
2026-04-08 19:24:50
R W Run
17.81 KB
2026-04-08 19:24:51
R W Run
162.47 KB
2026-04-08 19:24:52
R W Run
294.7 KB
2026-04-08 19:24:48
R W Run
140.62 KB
2026-04-08 19:24:49
R W Run
42.25 KB
2026-04-08 19:24:50
R W Run
41.75 KB
2026-04-08 19:24:52
R W Run
81.13 KB
2026-04-08 19:24:54
R W Run
69.24 KB
2026-04-08 19:24:48
R W Run
26.85 KB
2026-04-08 19:24:49
R W Run
76.05 KB
2026-04-08 19:24:49
R W Run
4.72 KB
2026-04-08 19:24:49
R W Run
19.8 KB
2026-04-08 19:24:49
R W Run
error_log
📄whois.php
1<?php
2
3use WHMCS\Admin;
4use WHMCS\Domain\Checker;
5use WHMCS\Domains;
6use WHMCS\Domains\Domain;
7use WHMCS\View\Helper;
8use WHMCS\WHOIS;
9
10define("ADMINAREA",true);
11
12require("../init.php");
13
14$aInt = new Admin("WHOIS Lookups");
15
16$aInt->title = $aInt->lang('whois','title');
17$aInt->sidebar = "utilities";
18$aInt->icon = "domains";
19$aInt->requiredFiles(array("domainfunctions"));
20
21if ($action=="checkavailability") {
22 check_token('WHMCS.admin.default');
23 $whois = new WHOIS();
24 $result = $whois->lookup(array('sld' => $sld, 'tld' => $tld));
25 $whois->logLookup();
26 echo $result['result'];
27 exit;
28}
29
30$code = '';
31
32if ($domain = $whmcs->get_req_var('domain')) {
33 check_token('WHMCS.admin.default');
34
35 $domains = new Domains();
36
37 /**
38 * A space in a domain name is always invalid. Strip whitespace to
39 * be sure the following method does not throw if a space is present.
40 *
41 * @see https://jira.whmcs.com/browse/CORE-16013
42 */
43 $domain = str_replace(' ', '', $domain);
44
45 $domainparts = $domains->splitAndCleanDomainInput($domain);
46 $isValid = $domains->checkDomainisValid($domainparts);
47
48 if ($isValid) {
49
50 $whois = new WHOIS();
51 if ($whois->canLookup($domainparts['tld'])) {
52
53 $result = $whois->lookup($domainparts);
54 $whois->logLookup();
55
56 if ($result['result'] == "available") {
57 $code .= '<div class="alert alert-success text-center" role="alert" style="font-size:18px;">'
58 . sprintf($aInt->lang('whois', 'available'), $domain)
59 . '</div>';
60 } elseif ($result['result'] == "unavailable") {
61 $code .= '<div class="alert alert-danger text-center" role="alert" style="font-size:18px;">'
62 . sprintf($aInt->lang('whois', 'unavailable'), $domain)
63 . '</div>';
64 } else {
65 $code .= '<div class="alert alert-danger text-center" role="alert" style="font-size:18px;">'
66 . $aInt->lang('whois', 'error')
67 . '</div>'
68 . '<p align="text-center">' . $result['errordetail'] . '</p>';
69 }
70
71 } else {
72
73 $code .= '<div class="alert alert-danger text-center" role="alert" style="font-size:18px;">'
74 . sprintf($aInt->lang('whois', 'invalidtld'), $domainparts['tld'])
75 . '</div>';
76
77 }
78
79 } else {
80
81 $code .= '<div class="alert alert-danger text-center" role="alert" style="font-size:18px;">'
82 . $aInt->lang('whois', 'invaliddomain')
83 . '</div>';
84
85 }
86
87}
88
89$code = '<form method="post" action="'.$_SERVER['PHP_SELF'].'">
90 <div class="row clearfix">
91 <div class="col-md-8 col-md-offset-2 col-sm-10 col-sm-offset-1">
92 <div class="input-group input-group-lg">
93 <input type="text" name="domain" value="' . $domain . '" class="form-control" placeholder="domaintolookup.com" />
94 <div class="input-group-btn">
95 <input type="submit" value="Lookup Domain" class="btn btn-primary" />
96 </div>
97 </div>
98 </div>
99 </div>
100</form><br>' . $code;
101
102$code .= '<div class="row">';
103$isUnavailable = false;
104
105if ($domain && $isValid && $result['result'] == 'unavailable') {
106 $isUnavailable = true;
107 $code .= '<div class="col-md-6 col-sm-12"><h2>' . $aInt->lang('whois', 'whois') . '</h2>
108<div class="well well-lg">
109 ' . $result['whois'] . '
110</div></div>';
111}
112
113$checker = new Checker();
114
115if (!empty($domain)) {
116 $suggestions = $checker->getLookupProvider()->getSuggestions((new Domain($domain)));
117
118 if ($suggestions->count()) {
119 $outputCount = 0;
120 $class = 'col-md-12';
121 $columns = 4;
122 $suggestionLimit = 52;
123 if ($isUnavailable) {
124 $class = 'col-md-6 col-sm-12';
125 $columns = 2;
126 $suggestionLimit = 30;
127 }
128 $code .= '<div class="' . $class . '"><h2>' . AdminLang::trans('whois.suggestions') . '</h2>'
129 . '<table class="table"><tr>';
130 /** @var Domains\DomainLookup\SearchResult $suggestion */
131 $count = 1;
132 foreach ($suggestions as $suggestion) {
133 if ($outputCount >= $suggestionLimit) {
134 break;
135 }
136 if ($count > $columns) {
137 $count = 1;
138 $code .= '</tr><tr>';
139 }
140 $label = $suggestion->getDomain();
141 if ($suggestion->group()) {
142 $label .= ' ' . Helper::getDomainGroupLabel($suggestion->group());
143 }
144 $code .= '<td>' . $label . '</td>';
145 $count++;
146 $outputCount++;
147 }
148 $code .= '</tr></table></div>';
149 }
150}
151$code .= '</div>';
152
153$aInt->content = $code;
154$aInt->display();
155