Location: PHPKode > projects > Php Admin Tools > EasyPHP/www/PAT_0.0.9b/extra/PAT/apps/caffeine_monkey/trace.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[trace_host];
$form_hops = $_GET[trace_hops];
$form_size = $_GET[trace_size];
$form_timeout = $_GET[trace_timeout];
$form_dodns = $_GET[trace_dodns];
$trace_command;

echo html_header( array( 'page_name' => 'Traceroute', 'host_name' => $form_host ) );

if ( isset($_GET[trace_host]) ) {
 $trace_command = traceroute($form_host, $form_hops, $form_size, $form_timeout, $form_dodns);

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

echo html_footer();

?>

Return current item: Php Admin Tools