##############################################################################
# Webutil                             Version 1.0                            #
# Copyright 1998 The Puppet Master    pmaster@ravensclaw.com                 #
# Created 12/14/98                                                           #
##############################################################################
# COPYRIGHT NOTICE                                                           #
# Copyright 1998 The Puppet Master  All Rights Reserved.                     #
#                                                                            #
# WebUtil may be used and modified free of charge by anyone so long as       #
# this copyright notice and the comments above remain intact.  By using this #
# code you agree to indemnify The Puppet Master from any liability that      #  
# might arise from it's use.                                                 #  
#                                                                            #
# Selling the code for this program without prior written consent is         #
# expressly forbidden.  In other words, please ask first before you try and  #
# make money off of my program.                                              #
#                                                                            #
# Obtain permission before redistributing this software over the Internet or #
# in any other medium.  In all cases copyright and header must remain intact.#
##############################################################################

Purpse: To display some useful net utilties via a browers.  Includes: ping, 
	traceroute, whois, finger, host, nslookup, dnsquery, uptime, and calendar.

Setting up:

Set the first line in the script to point to the path to Perl.
(usually /usr/bin/perl)

Display a link to the history file?
$show_hist = "1";          # 0=No | 1=Yes

# $IMGURL is the url where you keep your images.  Please put the directnic.gif
# file within that directory.  Please do not remove the affiliate info for
# DirectNic.  Thank you...

$IMGURL="http://www.domain.com/images/";

$cgi_url is the URL location of this script.

$pingnum is the default number of pings to perform for the ping operation.  5
is a good default number, if you decide to use a higher value, you will only
prolong the output.

$nameserver is the default name server to use.
$nameserver="ns1.nationwide.net";


PLEASE DON'T USE MY NAMESERVER IN THE EXAMPLES!!!

#DONE

Upload your script via ASCII, and change the permissions to 755.  

Call the script via your browser, (the same thing you listed in $cgi_url).


formdate.pl, parsform.pl, are all subroutines found in the
CGI/Perl Cookbook by Matt Wright and Craig Patchett.  They may only be used 
in conjuction with this script, or any of your own scripts if you have legally
purchased the book.  


Additional Note: Some of these commands, (ie: whois, dnsquery, finger), may 
not work for you, (they look like they run but never return any results).  
These commands must be accessable in your path.  Your Hosting Provider
may or may not provide you with these commands... I can't control that.  
So if some of these features don't work and some do, then chances are 
you will need to beg your Hosting Provider for access to these commands.

