session_start(); $snapversion="SnapDeluxe"; $title="InternetPerils Inc. - PerilScope - Peril$snapversion"; require("../../php/require/config.php"); require("$reqpath/login/config.php"); require("$reqpath/common.php"); require("$reqpath/login/membership.php"); require("$reqpath/login/pscope.php"); require("$reqpath/login/snap.php"); include("$incpath/header.php"); $group="perilsnapdeluxe"; $staff="staff"; if (!loggedin()){ $showlogin="yes"; include("$incpath/menu.php"); echo "
"; snap_deluxe_table (); } else { echo "
post ip is : " ,$_POST['IP']; $mycurrentIP=htmlentities(trim(stripslashes($_POST['IP']))); $locationtype=htmlentities(trim(stripslashes($_POST['locationtype']))); $imagetype=htmlentities(trim(stripslashes($_POST['image']))); $ipaddr = ip2long($mycurrentIP); //echo "
current ip is : " ,$currentIP; $s_ipaddr = sprintf("%u",$ipaddr); $myhostip = long2ip($s_ipaddr); $myhostname = gethostbyaddr($myhostip); //echo "
current myhostname is : " ,$myhostname; if ($myhostname == "255.255.255.255") { $myhostname=$mycurrentIP; $myhostip=gethostbyname($myhostname); } if (($mycurrentIP == "") || ($myhostname == $myhostip) ) { $mycurrentIP=$_SERVER['REMOTE_ADDR']; list ($snapmember_id, $snaplocationtype, $snapregisterIP, $reghostname) = mysql_fetch_array(get_snap_locations($reg_member_id,$locationtype)); $registerIP = long2ip($snapregisterIP); $defaultIP = $mycurrentIP; $cur_hostname = gethostbyaddr($mycurrentIP); ?>
You must enter a valid IP address or hostname
snap_deluxe_table (); } else { echo "A Peril",$snapversion, " request will be submitted on your behalf for address "; echo "" , $myhostip , " [",$myhostname , "].\n"; echo "
You should receive an image which gives information about\n"; echo "your network connectivity as soon as data is available.\n\n"; echo "
Typically data is available to PerilSnap users within an \n"; echo "hour and is delivered in a mime-compliant mail message.\n\n"; echo "The PerilSnap image will be sent to $reg_email ."; echo "