Location: PHPKode > projects > Php Admin Tools > EasyPHP/www/PAT_0.0.9b/extra/PAT/apps/caffeine_monkey/nslookup.php
<?php

/* Copyright 2002-2003 Phillip Stansell & Damien Heiser
 *
 * This file is part of Caffeine Monkey.
 *
 * Caffeine Monkey 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.
 *
 * Caffeine Monkey 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 Caffeine Monkey; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

require_once './cm.php';

$form_host = $_GET[ns_host];
$form_server = $_GET[ns_server];
$form_type = $_GET[type];
$ns_command;
 
echo html_header( array( 'page_name' => 'NSLookup', 'host_name' => $form_host ) );
	
if ( isset($_GET[ns_host]) ) {
 $ns_command = nslookup($form_host, $form_server, $form_type);

 echo date("r")."\n\n";
 System($ns_command);
}

echo html_footer();

?>

Return current item: Php Admin Tools