Rev 972 | Rev 1050 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 972 | Rev 977 | ||
---|---|---|---|
Line 85... | Line 85... | ||
85 | } |
85 | } |
86 | } else { |
86 | } else { |
87 | $query = $obj->nodeId(); |
87 | $query = $obj->nodeId(); |
88 | } |
88 | } |
89 | 89 | ||
90 | $res = OIDplus::db()->query("select * from ###objects where id = ?", [$query]); |
- | |
91 | $data = $res ? $res->fetch_object() : null; |
- | |
92 | if(null === $data){ |
- | |
93 | $out['error'] = 'Not found'; |
- | |
94 | if(true === $this->useCache){ |
- | |
95 | $this->rdap_write_cache($out, $cacheFile); |
- | |
96 | } |
- | |
97 | return $this->rdap_out($out); |
- | |
98 | } |
- | |
99 | - | ||
100 | $obj = OIDplusObject::parse($data->id); |
- | |
101 | - | ||
102 | $whois_server = ''; |
90 | $whois_server = ''; |
103 | if (OIDplus::config()->getValue('individual_whois_server', '') != '') { |
91 | if (OIDplus::config()->getValue('individual_whois_server', '') != '') { |
104 | $whois_server = OIDplus::config()->getValue('individual_whois_server', ''); |
92 | $whois_server = OIDplus::config()->getValue('individual_whois_server', ''); |
105 | } |
93 | } |
106 | else if (OIDplus::config()->getValue('vts_whois', '') != '') { |
94 | else if (OIDplus::config()->getValue('vts_whois', '') != '') { |
Line 148... | Line 136... | ||
148 | "links"=> [] |
136 | "links"=> [] |
149 | ], |
137 | ], |
150 | [ |
138 | [ |
151 | "title"=>"Description", |
139 | "title"=>"Description", |
152 | "description"=> [ |
140 | "description"=> [ |
153 | ($obj->isConfidential()) ? 'REDACTED FOR PRIVACY' : $data->description, |
141 | ($obj->isConfidential()) ? 'REDACTED FOR PRIVACY' : $obj->getDescription(), |
154 | ], |
142 | ], |
155 | "links"=> [ |
143 | "links"=> [ |
156 | [ |
144 | [ |
157 | "href"=> OIDplus::webpath()."?goto=".urlencode($query), |
145 | "href"=> OIDplus::webpath()."?goto=".urlencode($query), |
158 | "type"=> "text/html", |
146 | "type"=> "text/html", |