some changes

This commit is contained in:
sparc 2007-12-21 17:14:23 +00:00
parent 4e2f1e039d
commit 3b3869d36b
5 changed files with 11 additions and 5 deletions

View file

@ -63,7 +63,8 @@ if (isSet($_GET['query']))
$result = $whois->Lookup($query);
$resout = str_replace('{query}', $query, $resout);
$winfo = '';
switch ($output)
{
case 'object':

View file

@ -287,8 +287,12 @@ class WhoisClient {
* Convert html output to plain text
*/
function httpQuery ($query) {
$lines = @file($this->Query['server']);
//echo ini_get('allow_url_fopen');
//if (ini_get('allow_url_fopen'))
$lines = @file($this->Query['server']);
if (!$lines) return false;
$output = '';

View file

@ -38,6 +38,7 @@ class publicdomainregistry_handler
{
$items = array(
'owner' => 'Registrant:',
'owner#' => '(Registrant):',
'admin' => 'Administrative Contact',
'tech' => 'Technical Contact',
'domain.name' => 'Domain name:',

View file

@ -52,7 +52,7 @@ class uk_handler
'domain.changed' => 'Last updated:',
'domain.expires' => 'Renewal date:',
'domain.nserver' => 'Name servers:',
'domain.sponsor' => "Registrant's agent:",
'domain.sponsor' => 'Registrar:',
'domain.status' => 'Registration status:',
'' => 'WHOIS lookup made at'
);
@ -64,7 +64,7 @@ class uk_handler
$r['regrinfo']['owner']['organization'] = $r['regrinfo']['owner']['organization'][0];
$r['regrinfo']['domain']['sponsor'] = $r['regrinfo']['domain']['sponsor'][0];
unset($r['regrinfo']['domain']['nserver'][count($r['regrinfo']['domain']['nserver']) - 1]);
//unset($r['regrinfo']['domain']['nserver'][count($r['regrinfo']['domain']['nserver']) - 1]);
$r['regrinfo']['registered'] = 'yes';
$r = format_dates($r, 'dmy');

View file

@ -169,7 +169,7 @@ class utils extends Whois {
// Add bold field names
$out = preg_replace ("/(?m)^([\w\s-]+:)/", '<b>$1</b>', $out);
$out = preg_replace ("/(?m)^([\w\s-&;]+:)/", '<b>$1</b>', $out);
// Add italics for disclaimer