utils.whois renamed to whois.utils.php

This commit is contained in:
sparc 2005-08-29 11:07:12 +00:00
parent 1859c2bb0b
commit 53ab678ed5
4 changed files with 91 additions and 91 deletions

View File

@ -2,6 +2,7 @@
- changed gif icon for a new png one
- recovered better example.php from old
distribution
- utils.whois renamed to whois.utils.php
2005/08/26 David Saez <david@ols.es>
- code cleanup and formatting

View File

@ -61,7 +61,7 @@ $result = $whois->Lookup('AS220');
Notes
-----
There is an extended class called "utils.whois" which contains a
There is an extended class called "whois.utils.php" which contains a
debugging function called showObject(), if you showObject($result)
it will output the total layout of the returned object to the
web browser.

View File

@ -1,4 +1,4 @@
<?php
<?php
/*
Whois.php PHP classes to conduct whois queries
@ -24,67 +24,67 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
?>
<head>
<title>whois.php -base classes to do whois queries with php</title>
</head>
<body bgcolor="ffffff">
<blockquote>
<pre>
<blockquote>
<?
if(isSet($query))
{
include_once('whois.main.php');
$whois = new Whois();
$result = $whois->Lookup($query);
echo "<b>Results for $query :</b><p>";
if($output=="object") {
include("utils.whois");
$utils = new utils;
$utils->showObject($result);
}
else {
if(!empty($result['rawdata'])) {
echo implode($result["rawdata"],"\n");
}
else {
echo "<br>No Match";
}
}
}
?>
</blockquote>
</pre>
</blockquote>
<center>
<table>
<tr><td bgcolor="55aaff">
<form method="post" action="<?echo $SCRIPT_NAME; ?>">
<table>
<tr><td colspan=2><b>Enter any domain name, ip address or AS handle you would like to query whois for<b></td></tr>
<tr><td align=center colspan=2><input name="query">
<input type="submit" value="Whois"></td></tr>
<tr><td colspan=2>
<input type="radio" name="output" value="normal" checked> Show me regular output
</td></tr>
<tr><td>
<input type="radio" name="output" value="object"> Show me the returned PHP object
</td>
<td align=right valign=bottom>
<a href="http://phpwhois.sourceforge.net">
<img border=0 src="whois.icon.png" alt=""><br>
</a>
</td>
</tr>
</table>
</form>
</td></tr>
</table>
</center>
?>
<head>
<title>whois.php -base classes to do whois queries with php</title>
</head>
<body bgcolor="ffffff">
<blockquote>
<pre>
<blockquote>
<?
if(isSet($query))
{
include_once('whois.main.php');
$whois = new Whois();
$result = $whois->Lookup($query);
echo "<b>Results for $query :</b><p>";
if($output=="object") {
include_once('whois.utils.php');
$utils = new utils;
$utils->showObject($result);
}
else {
if(!empty($result['rawdata'])) {
echo implode($result["rawdata"],"\n");
}
else {
echo "<br>No Match";
}
}
}
?>
</blockquote>
</pre>
</blockquote>
<center>
<table>
<tr><td bgcolor="55aaff">
<form method="post" action="<?echo $SCRIPT_NAME; ?>">
<table>
<tr><td colspan=2><b>Enter any domain name, ip address or AS handle you would like to query whois for<b></td></tr>
<tr><td align=center colspan=2><input name="query">
<input type="submit" value="Whois"></td></tr>
<tr><td colspan=2>
<input type="radio" name="output" value="normal" checked> Show me regular output
</td></tr>
<tr><td>
<input type="radio" name="output" value="object"> Show me the returned PHP object
</td>
<td align=right valign=bottom>
<a href="http://phpwhois.sourceforge.net">
<img border=0 src="whois.icon.png" alt=""><br>
</a>
</td>
</tr>
</table>
</form>
</td></tr>
</table>
</center>

49
utils.whois → src/whois.utils.php Normal file → Executable file
View File

@ -1,30 +1,29 @@
<?php
/*
Whois2.php PHP classes to conduct whois queries
Copyright (C)1999,2000 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by Mark Jeftovic <markjr@easydns.com>
For the most recent version of this package:
http://www.easydns.com/~markjr/whois2/
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
For the most recent version of this package visit:
http://phpwhois.sourceforge.net
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* utils.whois 1.0 Colin Viebrock <cmv@easydns.com> 1999/12/06 */
/* 1.1 Mark Jeftovic <markjr@easydns.com> 1999/12/15 */