示例#1
0
文件: p.php 项目: php360/ltnmp
            return '<font color="green">√</font>';
            break;
        default:
            return $result;
            break;
    }
}
//保留服务器性能测试结果
$valInt = isset($_POST['pInt']) ? $_POST['pInt'] : "未测试";
$valFloat = isset($_POST['pFloat']) ? $_POST['pFloat'] : "未测试";
$valIo = isset($_POST['pIo']) ? $_POST['pIo'] : "未测试";
if ($_GET['act'] == "phpinfo") {
    phpinfo();
    exit;
} elseif ($_POST['act'] == "整型测试") {
    $valInt = test_int();
} elseif ($_POST['act'] == "浮点测试") {
    $valFloat = test_float();
} elseif ($_POST['act'] == "IO测试") {
    $valIo = test_io();
} elseif ($_POST['act'] == "开始测试") {
    ?>
	<script language="javascript" type="text/javascript">
		var acd1;
		acd1 = new Date();
		acd1ok=acd1.getTime();
	</script>
	<?php 
    for ($i = 1; $i <= 100000; $i++) {
        echo "<!--567890#########0#########0#########0#########0#########0#########0#########0#########012345-->";
    }
示例#2
0
test_hh_bool(true);
test_hh_resource(STDIN);
test_hh_arraykey('herp');
test_hh_arraykey(123);
test_hh_num(123);
test_hh_num(1.23);
test_string(new string());
test_int(new int());
test_float(new float());
test_bool(new bool());
test_resource(new resource());
test_arraykey(new arraykey());
test_num(new num());
print "--- INCORRECT USAGE ---\n";
test_hh_string(new string());
test_hh_int(new int());
test_hh_float(new float());
test_hh_bool(new bool());
test_hh_resource(new resource());
test_hh_arraykey(new arraykey());
test_hh_arraykey(1.23);
test_hh_num(new num());
test_hh_num('123');
test_string('123');
test_int(123);
test_float(1.23);
test_bool(true);
test_resource(STDIN);
test_arraykey('herp');
test_arraykey(123);
test_num(1.23);
示例#3
0
    case "bom":
        bom();
        exit;
    default:
        break;
}
//表单处理
if (isset($_POST['Buginfo']) and $_POST['act'] == "提交") {
    //Bug提交!
    $message = $message . "\n\n 来自:" . $_SERVER['SERVER_NAME'] . $_SERVER['PHP_SELF'];
    $to = "*****@*****.**";
    $subject = "浩哥你多大了?";
    $jg = @mail($to, $subject, $message);
    $jgprint = true == $jg ? "<font color=\"green\">上报成功!谢谢你!</font>" : "<font color=\"red\">上报失败!写信给我吧:307292967@qq.com</font>";
} elseif ($_POST['action'] == "整数运算") {
    $ts_int = test_int();
} elseif ($_POST['action'] == "浮点运算") {
    $ts_float = test_float();
} elseif ($_POST['action'] == "IO测试") {
    $ts_io = test_io();
} elseif ($_POST['action'] == "开始测试") {
    ?>
<script language="javascript" type="text/javascript">
var acd1;
acd1 = new Date();
acd1ok=acd1.getTime();
</script>
<?php 
    for ($i = 1; $i <= 1000; $i++) {
        echo "<!--567890#########0#########0#########0#########0#########0#########0#########0#########012345-->";
    }
示例#4
0
test_bool(true);
test_resource(STDIN);
test_arraykey('herp');
test_arraykey(123);
test_num(123);
test_num(1.23);
print "--- INCORRECT USAGE ---\n";
test_string(new string());
test_int(new int());
test_float(new float());
test_bool(new bool());
test_resource(new resource());
test_arraykey(new arraykey());
test_num(new num());
print "--- INCORRECT USAGE ---\n";
test_hh_string(new string());
test_hh_int(new int());
test_hh_float(new float());
test_hh_bool(new bool());
test_hh_resource(new resource());
test_hh_arraykey(new arraykey());
test_hh_arraykey(1.23);
test_hh_num(new num());
test_hh_num('123');
test_string(new string());
test_int(new int());
test_float(new float());
test_bool(new bool());
test_resource(new resource());
test_arraykey(new arraykey());
test_num(new num());