".SHOWMYIP_CORE_02.": "; $full .= $timestamp[weekday].", ".$timestamp[month]." ".$timestamp[mday].", ".$timestamp[year]." ".$timestamp[hours].":".$timestamp[minutes].":".$timestamp[seconds]."
"; // Proxy (from IE) $full .= "".SHOWMYIP_CORE_03.": "; $proxy=getProxyFromIE(); if(!$proxy) $full .= SHOWMYIP_CORE_04."
"; // Message: Can't find proxy else $full .= $proxy."
"; // Proxy Wikipedia definition $full .= SHOWMYIP_CORE_05."
"; // Get My GID if (getmygid()) $full .= "GID: "; // Only shown if there is a value returned if (getmygid()) $full .= getmygid()."
"; // Only shown if there is a value returned // Browser (User-Agent) $full .= "".SHOWMYIP_CORE_06.": "; $full .= $_SERVER['HTTP_USER_AGENT']."
"; // Host name $ip_address = get_showmyip(); $hostname = gethostbyaddr($ip_address); $full .= "".SHOWMYIP_CORE_07.": "; $full .= $hostname."
"; // PHP Magic quotes setting $full .= "".SHOWMYIP_CORE_08.": "; if (get_magic_quotes_gpc() == 0) $full .= SHOWMYIP_CORE_09."
"; // Off if (get_magic_quotes_gpc() == 1) $full .= SHOWMYIP_CORE_10."
"; // On // PHP Display errors setting $full .= "".SHOWMYIP_CORE_11.": "; if (ini_get('display_errors') == 0) $full .= SHOWMYIP_CORE_09."
"; // Off if (ini_get('display_errors') == 1) $full .= SHOWMYIP_CORE_10."
"; // On // PHP Post Max Size $full .= "".SHOWMYIP_CORE_12.": "; $full .=ini_get('post_max_size')."
"; // xMb // PHP Post Max Size in bytes $full .= "".SHOWMYIP_CORE_13.": "; $full .=(ini_get('post_max_size')*1024*1024)."
"; return $full; } function getProxyFromIE() { exec("reg query \"HKEY_CURRENT_USER\Software\Microsoft"."\Windows\CurrentVersion\Internet Settings\" /v ProxyEnable",$proxyenable,$proxyenable_status); exec("reg query \"HKEY_CURRENT_USER\Software\Microsoft"."\Windows\CurrentVersion\Internet Settings\" /v ProxyServer",$proxyserver); if($proxyenable_status!=0) return false; // Can't access the registry! Maybe not a M$ user... else { $enabled=substr($proxyenable[4],-1,1); if($enabled==0) return false; else { $proxy=ereg_replace("^[ \t]{1,10}ProxyServer\tREG_SZ[ \t]{1,20}","", $proxyserver[4]); if(ereg("[\=\;]",$proxy)) { $proxy=explode(";",$proxy); foreach($proxy as $i => $v) { if(ereg("http",$v)) { $proxy=str_replace("http=","",$v); break; } } if(@!ereg("^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\:"."[0-9]{1,5}$",$proxy)) return false; else return $proxy; } else return $proxy; } } } // Gather the desired results in the variable $text $ip_address = get_showmyip(); $text .="

".SHOWMYIP_CORE_97." ".$ip_address."


"; if ($action == "") { // Inform user about full IP info $text .="
".SHOWMYIP_CORE_98."
"; } if ($action == full) { // Show the full IP info $text .="
".get_fullip()."
"; } $text .="
"; // Render the value of $text in a table. $title = SHOWMYIP_CORE_99; $ns -> tablerender($title, $text); // === End of BODY === // use FOOTERF for USER PAGES and e_ADMIN.'footer.php' for admin pages require_once(FOOTERF); ?>