session_start(); $snapversion="SnapPlus"; $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="perilsnapplus"; $staff="staff"; $locationtype = 'plus'; if (!loggedin()){ $showlogin="yes"; include("$incpath/menu.php"); echo "
Peril allows you to edit the one IP address you monitor.
snap_plus_table(); } // if not post else { echo "
post ip is : " ,$_POST['IP']; $mycurrentIP=htmlentities(trim(stripslashes($_POST['IP']))); $ipaddr = ip2long($mycurrentIP); $s_ipaddr = sprintf("%u",$ipaddr); $myhostip = long2ip($s_ipaddr); $myhostname = gethostbyaddr($myhostip); $imagetype = 'png'; if ($myhostname == "255.255.255.255") { $myhostname=$mycurrentIP; $myhostip=gethostbyname($myhostname); } // echo "
current ip is : " ,$mycurrentIP; // echo "
current myhostname is : " ,$myhostname; // echo "
current myhostip is : " ,$myhostip; if (($mycurrentIP == "") || ($myhostname == $myhostip) ) { $currentIP=$_SERVER['REMOTE_ADDR']; list ($snapmember_id, $snaplocationtype, $snapregisterIP, $reghostname) = mysql_fetch_array(get_snap_locations($reg_member_id,$locationtype)); $registerIP = long2ip($snapregisterIP); $defaultIP = $currentIP; $cur_hostname = gethostbyaddr($currentIP); ?>
You must enter a valid IP address or hostname
Peril allows you to edit the one IP address you monitor.
snap_plus_table(); } else { echo "
A PerilSnap 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 "