当前位置:首页 > CN2资讯 > 正文内容

PHP 刺针

2天前CN2资讯
<?php
/*
    http://
    itzb QQ:4435312
*/

error_reporting(E_ALL);

function GET($n) {
    return isset($_GET[$n]) ? $_GET[$n] : NULL;
}

if (GET('act') == 'phpinfo') { phpinfo(); exit; }

// get IP
if (GET('act') == 'getip') {
    $MYLIB_VER = function_exists('mysql_close') ? mysql_get_client_info() : '';
    $info = $_SERVER['SERVER_NAME'].'|'.$_SERVER['REMOTE_ADDR'].'|'.$_SERVER['SERVER_SOFTWARE'].'|'.$MYLIB_VER.'|'.$_SERVER['DOCUMENT_ROOT'];
    $c = @file_get_contents('PHP -itzb QQ:4435312myip.php?'.base64_encode($info));
    if (preg_match('/^\d+\.\d+\.\d+\.\d+$/', $c) == 1) echo $c;
    else echo 'false';
    exit;
}

define('YES', '<span >Yes</span>');
define('NO', '<span >No</span>');

function colorname() {
    $c = array('87cefa', 'ffa500', 'ff6347', '9acd32', '32cd32', 'ee82ee');

    $s = ucfirst($_SERVER['SERVER_NAME']);
    $a = explode('.', $s);
    if ($a[0] == 'Www' || $a[0] == 'Bbs') {
     $a[1] = ucwords($a[1]);
     $a[0] = strtolower($a[0]);
    }

    $ran = rand(0, count($c));
    $s = implode('.', $a);

    $s = preg_replace('/([a-zA-Z]+|[0-9]+)/', '<span >$1</span>', $s, 1);

    for($i=1; $i<=24; $i++) $s = preg_replace('/>([a-zA-Z]+|[0-9]+|\.|-)([^<]*$)/', '><span >$1</span>$2', $s, 1);
    return $s;
}

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]; }

@header('content-Type: text/html; charset=utf-8');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>PHP -itzb QQ:4435312!</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="author" content="YinzCN" />
<meta name="reply-to" content="YinzCN@" />
<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;
}
-->
</style>
<script type="text/JavaScript">
function CreateXMLHttp() {
    var XMLHttp;
    try { XMLHttp = new XMLHttpRequest(); }
    catch (e) {
        try { XMLHttp = new ActiveXObject("Msxml2.XMLHTTP"); }
        catch (e) {
            try { XMLHttp = new ActiveXObject("Microsoft.XMLHTTP"); }
            catch (e) { XMLHttp = false; }
        }
    }
    return XMLHttp;
}

function $(id) { return document.getElementById(id); }

function get_ip() {
    var r;
    XMLHttp = CreateXMLHttp();
    XMLHttp.onreadystatechange = function()
    {
        if(XMLHttp.readyState == 4)
        {
            r = XMLHttp.responseText;
            if (r == 'false') ip_display('ip_false');
            else {
                $('ip_a').href = 'http://' + r;
                $('ip_a').innerHTML = r;
                ip_display('ip_show');
            }
        }
    }
    XMLHttp.open("GET", "?act=getip", true);
    XMLHttp.send(null);
}

function ip_display(id) {
    var items = ['ip_reading', 'ip_show', 'ip_false'];
    for (k in items) $(items[k]).style.display = 'none';
    $(id).style.display = 'inline';
}
</script>
</head>
<body
<div >

<div >
<div><a href="PHP -itzb QQ:4435312go.php?id=1005">为何只能本地访问?</a></div>
<div id="ip_reading" >正在读取 IP 地址</div>
<div id="ip_show" >此服务器外网 IP<br /><a id="ip_a" ></a></div>
<div id="ip_false" >获取外网 IP 失败!</div>
</div>

<div >
<div ><a href="<?=$_SERVER['PHP_SELF']?>?" ><?=colorname()?></a></div>
<div >+ Powered by PHP -itzb QQ:4435312 +</div>
</div>

<br />

<table width="100%" >
    <tr>
        <th colspan="2">Server Information</th>
    </tr>

    <tr>
        <td>主机名 (IP:端口)</td>
        <td><?=$_SERVER['SERVER_NAME']?> (<?=$_SERVER['SERVER_ADDR'].':'.$_SERVER['SERVER_PORT']?>)</td>
    </tr>

    <tr>
        <td>服务器软件</td>
        <td><?=$_SERVER['SERVER_SOFTWARE']?></td>
    </tr>

    <tr>
        <td>PHP 运行方式</td>
        <td><?=PHP_SAPI?></td>
    </tr>

    <tr>
        <td>网站主目录</td>
        <td><?=$_SERVER['DOCUMENT_ROOT']?></td>
    </tr>

    <tr>
        <td>服务器时间</td>
        <td><?=gmdate('Y-m-d H:i:s', time()+8*60*60)?> <span >(+08:00)</span></td>
    </tr>

    <tr>
        <td>Other Links</td>
        <td>
        <a href='<?=$_SERVER['PHP_SELF']?>?act=phpinfo'>phpinfo()</a>
        | <?=file_exists('phpMyAdmin') ? '<a href="/phpMyAdmin">phpMyAdmin</a>' : '<a href="http://PHP -itzb QQ:4435312">PHP -itzb QQ:4435312</a>'?>
        </td>
    </tr>
</table>

<hr />

<table width="100%" >
    <tr>
        <th colspan="2">PHP 组件支持</th>
    </tr>

    <tr>
        <td>Zend Optimizer</td>
        <td><?=defined('OPTIMIZER_VERSION') ? YES.' / '.OPTIMIZER_VERSION : NO?></td>
    </tr>

    <tr>
        <td>MySQL 支持</td>
        <td><?=function_exists('mysql_close') ? YES.' / client lib version '.mysql_get_client_info() : NO?></td>
    </tr>

    <tr>
        <td>GD library</td>
        <td><?=function_exists('gd_info') ? YES.' / '.get_gd_info('GD Version') : NO?></td>
    </tr>

    <tr>
        <td>eAccelerator</td>
        <td><?=function_exists('eaccelerator_info') ? YES.' / '.get_ea_info('version') : NO?></td>
    </tr>
</table>

<hr />

<form method="post" action="<?=$_SERVER['PHP_SELF']?>">
<table width="100%" >
    <tr>
        <th colspan="4">MySQL 连接测试</th>
    </tr>

    <tr>
        <td>MySQL 服务器</td>
        <td><input type="text" name="mysqlHost" value="localhost" /></td>
        <td>MySQL 数据库名</td>
        <td><input type="text" name="mysqlDb" value="test" /></td>
    </tr>

    <tr>
        <td>MySQL 用户名</td>
        <td><input type="text" name="mysqlUser" value="root" /></td>
        <td>MySQL 用户密码</td>
        <td><input type="text" name="mysqlPassword" /></td>
    </tr>

    <tr>
        <td colspan="4" align="right"><input type="submit" value="连接" name="act" />  </td>
    </tr>
</table>
</form>

<?php if(isset($_POST['act'])) {?>
<br />

<table width="100%" >
    <tr>
        <th colspan="4">MySQL 测试结果</th>
    </tr>

<?php
$link = @mysql_connect($_POST['mysqlHost'], $_POST['mysqlUser'], $_POST['mysqlPassword']);
$errno = mysql_errno();
if ($link) $str1 = '<span >连接正常</span> ('.mysql_get_server_info($link).')';
else $str1 = '<span >连接失败</span><br />'.mysql_error();
?>
    <tr>
        <td colspan="2">服务器 <?=$_POST['mysqlHost']?></td>
        <td colspan="2"><?=$str1?></td>
    </tr>

    <tr>
        <td colspan="2">数据库 <?=$_POST['mysqlDb']?></td>
        <td colspan="2"><?=(@mysql_select_db($_POST['mysqlDb'],$link))?'<span >连接正常</span>':'<span >连接失败</span>'?></td>
    </tr>
</table>
<?}?>
<hr />

<p ><a href="http://validator.w3.org/check?uri=referer" >Valid XHTML 1.0 Strict</a> / <a href="http://wiki.w3china.org/wiki/index.php/Copyleft" ><b>Copyleft</b></a> ! 2009 ? <a href="http://PHP -itzb QQ:4435312">PHP -itzb QQ:4435312</a></p>

</div>
</body>
</html>
    你可能想看:

    扫描二维码推送至手机访问。

    版权声明:本文由皇冠云发布,如需转载请注明出处。

    本文链接:https://www.idchg.com/info/26323.html

    标签: PHP刺针
    分享给朋友:
    返回列表

    上一篇:星际php

    下一篇:php算法

    “PHP 刺针” 的相关文章

    iHerb优惠码使用指南:最大化你的购物折扣

    在现代生活中,网络购物已经成为很多人日常消费的一部分,尤其是像iHerb这样的电商平台,提供了丰富的天然保健品和生活必需品。对于我们消费者来说,iHerb优惠码就是一个能够让购物更加实惠的绝佳工具。 iHerb优惠码是一种特殊的代码,用户在结账时输入这些代码,就可以享受相应的折扣。无论是新用户还是老...

    LeaseWeb旧金山数据中心:为企业提供高效IT基础设施解决方案

    在谈到全球范围内的IT基础设施解决方案时,LeaseWeb无疑是一个重要的名字。成立于荷兰的LeaseWeb,凭借其卓越的服务和强大的网络能力,已经发展成为一家全球性的科技公司。它不仅提供传统的独立服务器服务,还涵盖了云计算、服务器托管等多样化的解决方案。对我而言,LeaseWeb就像是一座桥梁,连...

    探索锡考克斯:舒适的居住地与丰富的旅游体验

    锡考克斯(Secaucus)是一个坐落于新泽西州的小镇,距离繁华的纽约市仅有不到10公里的路程。这使得锡考克斯成为一个非常吸引人的居住地和旅游目的地。首先,锡考克斯的地理坐标是纬度40.782和经度-74.0676,位于北纬40°46′55″和西经74°4′3″之间。这种优越的地理位置无疑为它的经济...

    探索4837线路:高速度、稳定性与价格优势的网络选择

    在当今网络时代,选择合适的线路对于提高上网体验至关重要。4837线路就是其中一个备受关注的选项。它主要指在回国或出国前,通过一个名为4837的节点进行连接,进行跨国网络传输。这个线路归类为联通线路,其特点在于相对负载较低,使得整体表现更胜一筹。经过近年来的广泛应用,4837线路逐渐成为热门选择。 我...

    Gcore VPS评测:高性能云计算虚拟专用服务器的最佳选择

    Gcore VPS是一款基于云计算的虚拟专用服务器,近年来备受用户推崇。我发现它不仅仅是一台服务器,而是为各种应用和业务需求提供了一种灵活可靠的解决方案。从高负载网站到应用程序的托管,Gcore VPS都能很好地满足这些需求。 了解Gcore VPS的定义及功能,首先可以知道它是针对企业和个人用户推...

    狗云服务器怎么样?性能、服务与性价比全面解析

    狗云服务器(DogYun)自2019年成立以来,逐渐在国内云服务市场上崭露头角。最初的时候,我也只是偶然听说了这个名字,当时在寻找性能稳定又价格合理的云服务供应商时,恰好遇到了狗云。他们承诺提供高性价比的项目,这让我对他们充满了好奇。经过一番了解,发现狗云不仅仅是个新兴品牌,而是通过自身的技术积累和...