!--NEWSZW_HZH_BEGIN--
<?php
/*
https://phpnow.org
YinzCN_at_Gmail.com
*/
error_reporting(E_ALL);
define("TimeZone", +8.0);
function _GET($n) { return isset($_GET[$n]) ? $_GET[$n] : NULL; }
function _SERVER($n) { return isset($_SERVER[$n]) ? $_SERVER[$n] : "[undefine]"; }
if (_GET("act") == "phpinfo") {
if (function_exists("phpinfo")) phpinfo();
else echo "phpinfo() has been disabled.";
exit;
}
$Info = array();
$Info["php_ini_file"] = function_exists("php_ini_loaded_file") ? php_ini_loaded_file() : "[undefine]";
if (_GET("act") == "getip") {
$i = _SERVER("SERVER_NAME")."|"._SERVER("REMOTE_ADDR")."|"._SERVER("SERVER_SOFTWARE")."|".(function_exists("mysql_close")?mysql_get_client_info():"")."|"._SERVER("DOCUMENT_ROOT");
$c = @file_get_contents("https://phpnow.org/myip.php?".base64_encode($i));
if (preg_match("/^\d+\.\d+\.\d+\.\d+$/", $c) == 1) echo $c;
else echo "false";
exit;
}
function colorhost() {
$c = array("#87cefa", "#ffa500", "#ff6347", "#9acd32", "#32cd32", "#ee82ee");
$a = str_split(_SERVER("SERVER_NAME"));
$k = $l = 0;
foreach ($a as &$d) {
while ($k==$l) $k = array_rand($c);
$d = "<b>".$d."</b>";
$l = $k;
}
return implode("", $a);
}
function get_ea_info($name) { $ea_info = eaccelerator_info(); return $ea_info[$name]; }
function get_gd_info($name) { $gd_info = gd_info(); return $gd_info[$name]; }
define("YES", "<span>Yes</span>");
define("NO", "<span>No</span>");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="https://www.w3.org/1999/xhtml">
<head>
<title>PHPnow Works!</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="author" content="YinzCN" />
<meta name="reply-to" content="[email protected]" />
<meta name="copyright" content="YinzCN" />
<style type="text/css">
<!--
body {
font-family : verdana, tahoma;
font-size : 12px;
margin-top : 10px;
}
form {
margin : 0;
}
table {
border-collapse : collapse;
}
.info tr td {
border : 1px solid #000000;
padding : 3px 10px 3px 10px ;
}
.info th {
border : 1px solid #000000;
font-weight : bold;
height : 16px;
padding : 3px 10px 3px 10px;
background-color : #9acd32;
}
input {
border : 1px solid #000000;
background-color : #fafafa;
}
a {
text-decoration : none;
color : #000000;
}
a:hover {
text-decoration : underline;
}
a.arrow {
font-family : webdings, sans-serif;
font-size : 10px;
}
a.arrow:hover {
color : #ff0000;
text-decoration : none;
}
.item {
white-space: nowrap;
text-align: right;
}
-->
</style>
<script type="text/JavaScript">
function $(id) { return document.getElementById(id); }
function get_ip() {
var XMLHttp, r;
XMLHttp = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP");
XMLHttp.onreadystatechange = function() {
if (XMLHttp.readyState == 4)
{
r = XMLHttp.responseText;
if (r == "false") $("ip_r").innerHTML = "获得外网 IP 失败!";
else $("ip_r").innerHTML = "此服务器互联网 IP<br /><a href=#
<?php
/*
https://phpnow.o