Sources moved to src folder
This commit is contained in:
parent
97e75c86cc
commit
065544fd52
3 changed files with 32 additions and 36 deletions
|
@ -26,7 +26,7 @@ along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
include('whois.main.php');
|
include('src/whois.main.php');
|
||||||
|
|
||||||
if (isset($argv[1]))
|
if (isset($argv[1]))
|
||||||
$domain = $argv[1];
|
$domain = $argv[1];
|
||||||
|
@ -37,4 +37,3 @@ $whois = new Whois();
|
||||||
$result = $whois->Lookup($domain);
|
$result = $whois->Lookup($domain);
|
||||||
|
|
||||||
print_r($result);
|
print_r($result);
|
||||||
?>
|
|
|
@ -42,8 +42,8 @@ if (isSet($_GET['query']))
|
||||||
else
|
else
|
||||||
$output = '';
|
$output = '';
|
||||||
|
|
||||||
include_once('whois.main.php');
|
include_once('src/whois.main.php');
|
||||||
include_once('whois.utils.php');
|
include_once('src/whois.utils.php');
|
||||||
|
|
||||||
$whois = new Whois();
|
$whois = new Whois();
|
||||||
|
|
||||||
|
@ -141,4 +141,3 @@ else
|
||||||
|
|
||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
?>
|
|
4
testsuite.php
Normal file → Executable file
4
testsuite.php
Normal file → Executable file
|
@ -78,7 +78,7 @@ if (!empty($argv[1]) && isset($domains[$argv[1]]))
|
||||||
|
|
||||||
// Test domains
|
// Test domains
|
||||||
|
|
||||||
include('whois.main.php');
|
include('src/whois.main.php');
|
||||||
|
|
||||||
$whois = new Whois();
|
$whois = new Whois();
|
||||||
|
|
||||||
|
@ -209,5 +209,3 @@ foreach($array2 as $key => $value)
|
||||||
|
|
||||||
return !isset($difference) ? false : $difference;
|
return !isset($difference) ? false : $difference;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
Loading…
Reference in a new issue