diff --git a/Changes.md b/Changes.md index 647644d..0f83f19 100644 --- a/Changes.md +++ b/Changes.md @@ -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 - code cleanup and formatting diff --git a/Readme.md b/Readme.md index 20d8178..71122c2 100644 --- a/Readme.md +++ b/Readme.md @@ -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. diff --git a/example.php b/example.php index cc9bfec..6b215aa 100644 --- a/example.php +++ b/example.php @@ -1,4 +1,4 @@ - - - -whois.php -base classes to do whois queries with php - - -
-
-
- -Lookup($query); - echo "Results for $query :

"; - - if($output=="object") { - include("utils.whois"); - $utils = new utils; - $utils->showObject($result); - } - else { - if(!empty($result['rawdata'])) { - echo implode($result["rawdata"],"\n"); - } - else { - echo "
No Match"; - } - } -} -?> - -

-
-
-
- - -
-
- - - - - - - - -
Enter any domain name, ip address or AS handle you would like to query whois for
-
- Show me regular output -
- Show me the returned PHP object - - -
-
-
-
-
-
+?> + + +whois.php -base classes to do whois queries with php + + +
+
+
+ +Lookup($query); + echo "Results for $query :

"; + + 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 "
No Match"; + } + } +} +?> + +

+
+
+
+ + +
+
+ + + + + + + + +
Enter any domain name, ip address or AS handle you would like to query whois for
+
+ Show me regular output +
+ Show me the returned PHP object + + +
+
+
+
+
+
diff --git a/utils.whois b/src/whois.utils.php old mode 100644 new mode 100755 similarity index 80% rename from utils.whois rename to src/whois.utils.php index 73bbfb1..f9259af --- a/utils.whois +++ b/src/whois.utils.php @@ -1,30 +1,29 @@ - - 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 1999/12/06 */ /* 1.1 Mark Jeftovic 1999/12/15 */