1樓
發表于: 2015-3-17 12:36
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<meta name="viewport"
http-equiv="Content-Type" content="width=device-width, text/html; charset=utf-8">
<head>
<title>贺冬瓜移动直连免流</title>
<style type="text/css">
*
{/*页面风格*/
margin:1px;
text-align:center;
color: #1E90FF ;
font-size:16px;
}/*免流按钮*/
input.bok {
background-color: #50ade6 ;
font-size:20px;
width:50%;
height:35px;
color:#ffffff;
border-radius:10px;
border:1px solid #CCC;
}/* white-space:nowrap; word-wrap:break-word; */
.div1{ text-align:left;
word-wrap:break-word;
}/*顶部TOP */
.div2{ height:100%; overflow:hidden;
color:#f4a460;
}
table.ta{
border-radius:10px;
}
td.jj{
border-radius:10px;
border:1px solid #CCC;
}/*输入框风格*/
input.bd{
border:1px solid #CCC;
background-color: #ccccc;
width:50%;height:20px;
border-radius:10px;
color:#333333;
}
</style>
<head>
<script type="text/javascript">
var charIndex = -1;
var stringLength = 0;
var inputText;
function writeContent(init){
if(init){
inputText = document.getElementById('contentToWrite').innerHTML;
}
if(charIndex==-1){
charIndex = 0;
stringLength = inputText.length;
}
var initString = document.getElementById('myContent').innerHTML;
initString = initString.replace(/<SPAN.*$/gi,"");
var theChar = inputText.charAt(charIndex);
var nextFourChars = inputText.substr(charIndex,4);
if(nextFourChars=='<BR>' || nextFourChars=='<br>'){
theChar = '<br>';
charIndex+=3;
}
initString = initString + theChar + "<SPAN id='blink'>_____</SPAN>";
document.getElementById('myContent').innerHTML = initString;
charIndex = charIndex/1 +1;
if(charIndex%2==1){
document.getElementById('blink').style.display='none';
}else{
document.getElementById('blink').style.display='inline';
}
if(charIndex<=stringLength){
setTimeout('writeContent(false)',15);
}else{
blinkSpan();
}
}
var currentStyle = 'inline';
function blinkSpan(){
if(currentStyle=='inline'){
currentStyle='none';
}else{
currentStyle='inline';
}
document.getElementById('blink').style.display = currentStyle;
setTimeout('blinkSpan()',500);
}
</script>
</head>
<body>
<?php
{INCLUDE "./_Vnml_conf";}
if (empty($_POST['port'])){
echo '<table width="100%" class="ta" > <td class="jj">
<br> <div style=" font-size:17px;">
欢迎使用冬瓜免流移动 直连<br>测试版<br></div><br></td> </table>
<table class="ta" width="100%">
<td width="55%" class="jj"> <div class="div1"> ';
if($zl==""){
echo'<br><br><br><br>';
}else{
echo' <iframe src="http://1111.ip138.com/ic.asp" frameborder="0" width="80%"
height="70px" ></iframe> ';
}
echo'
<nobr>当 前 模 式:';
if($zl==""){
echo"模式未选</nobr>";}
else{
echo "$ms</nobr>";}
echo'
<br><nobr> 本地 I P:'.$_SERVER['REMOTE_ADDR'].'</nobr><br>
本 地 端 口 :'.$_SERVER['REMOTE_PORT'].' <br>
服务连接: '.$_SERVER['HTTP_CONNECTION'].' <br>
代 理 I P:'.$_SERVER['SERVER_ADDR'].':'.$_SERVER['SERVER_PORT'].' <br>
P H P 版本 :'.PHP_VERSION.'<br>
<script>
var times=history.length;
document.write("你已免流浏览"+times+"个网站;");
</script>
</div>';
echo'</td><td class="jj">
VNML模式(T特殊版):<br><br>
1丶直连1( 移动免 )<br>
2丶直连2( 移动免 )<br>
3丶直连3( 移动免 )<br>
4丶直连4( 移动免 )<br>
5丶直连5( 移动免 )<br>
6丶直连6( 移动免 )<br>
7丶直连7( 移动免 )<br>
</td></table>';
echo '
<form action="/vnml" method="post" >
<table class="ta" width="100%" >
<td class="jj">';
$zl1="HLPMjExLjEzOS4xNDQuMTQ1NH";
$zl2="RTYMjE4LjIwMC4yNDQuMTk3UI";
$zl3="FJ4MjE4LjIwNy42NS4xMDA=RX";
$zl4="DFGMjIxLjEzMS4xMjguMTI5SB";
$zl5="FHFMjExLjEzNy44NS4xODA=QP";
$zl6="YUKMjE4LjIwMS40LjIyNg==CV";
$zl7="POHMjE4LjIwMi40LjI0Mw==LK";
echo '模 式 :';
if($zl==$zl1)
echo '<input type="checkbox" name="Zl" value="'.$zl1.'" checked >直连1';
else
echo '<input type="checkbox" name="Zl" value="'.$zl1.'">直连1';
if($zl==$zl2)
echo '<input type="checkbox" name="Zl" value="'.$zl2.'" checked >直连2';
else
echo '<input type="checkbox" name="Zl" value="'.$zl2.'">直连2';
if($zl==$zl3)
echo '<input type="checkbox" name="Zl" value="'.$zl3.'" checked >直连3';
else
echo '<input type="checkbox" name="Zl" value="'.$zl3.'">直连3';
echo "<br>";
if($zl==$zl4)
echo '<input type="checkbox" name="Zl" value="'.$zl4.'" checked >直连4';
else
echo '<input type="checkbox" name="Zl" value="'.$zl4.'">直连4';
if($zl==$zl5)
echo '<input type="checkbox" name="Zl" value="'.$zl5.'" checked >直连5';
else
echo '<input type="checkbox" name="Zl" value="'.$zl5.'">直连5';
if($zl==$zl6)
echo '<input type="checkbox" name="Zl" value="'.$zl6.'" checked >直连6';
else
echo '<input type="checkbox" name="Zl" value="'.$zl6.'">直连6';
if($zl==$zl7)
echo '<input type="checkbox" name="Zl" value="'.$zl7.'" checked >直连7';
else
echo '<input type="checkbox" name="Zl" value="'.$zl7.'">直连7';
###页面编码区
echo'<br>编码:';
if($urlencode==true){
echo '开<input type="radio" name="urlencode" value="true" checked>';
}else{
echo '开<input type="radio" name="urlencode" value="true">';
}
if($urlencode==false){
echo '关<input type="radio" name="urlencode" value="false" checked>';
}else{
echo '关<input type="radio" name="urlencode" value="false" >';
}
###HTTP协议
echo '
HTTP协议:';
if($httpfs==1.0){
echo '<input type="radio" name="httpfs" value="1.0" checked >1.0';
}else{
echo '<input type="radio" name="httpfs" value="1.0" >1.0'; }
if($httpfs==1.1){
echo '<input type="radio" name="httpfs" value="1.1" checked >1.1';
}else{
echo '<input type="radio" name="httpfs" value="1.1" >1.1'; }
###定义输入框区
echo'
<br><br>
<div> 直连端口 : <input type="text" name="port" value="'.$port.'" class="bd" >
</div>
</td> </table>
<br>
<input type="submit" class="bok" value="保存免流配置">
<br> <br></form>';
}else{
$zl=$_POST['Zl'];
$urlencode=$_POST['urlencode'];
$httpfs=$_POST['httpfs']; $port=$_POST['port'];
###定义收集的内容格式
$str='<?php
####配置文件勿动
$zl="'.$zl.'";
$httpfs="'.$httpfs.'";
$urlencode='.$urlencode.';
$port="'.$port.'";
$zl1="HLPMjExLjEzOS4xNDQuMTQ1NH";
$zl2="RTYMjE4LjIwMC4yNDQuMTk3UI";
$zl3="FJ4MjE4LjIwNy42NS4xMDA=RX";
$zl4="DFGMjIxLjEzMS4xMjguMTI5SB";
$zl5="FHFMjExLjEzNy44NS4xODA=QP";
$zl6="YUKMjE4LjIwMS40LjIyNg==CV";
$zl7="POHMjE4LjIwMi40LjI0Mw==LK";
if($zl==$zl1){
$ms="直连模式1";
}elseif($zl==$zl2){
$ms="直连模式1";
}elseif($zl==$zl3){
$ms="直连模式3";
}elseif($zl==$zl4){
$ms="直连模式4";
}elseif($zl==$zl5){
$ms="直连模式5";
}elseif($zl==$zl6){
$ms="直连模式6";
}elseif($zl==$zl7){
$ms="直连模式7";
}else{
$ms="模式未选";
}';
###定义文件存放的位置
$file = fopen("./_Vnml_conf", "w+");
fwrite($file,$str);
fclose($file);
###保存页面区
{INCLUDE "./_Vnml_conf";}
if($urlencode==true){
$bbm="已打开";
}else{
$bbm="已关闭";
}
echo '<br> <strong>
<a href="/">
移动直连免流 </a></strong> <br><br><br>';
###打字机效果
echo '
<div id="myContent" style="text-align:left; ">
</div>
<div id="contentToWrite" style=" display:none "><br>
保存结果:免流配置保存成功<br>
已保存模式:'.$ms.'<br>
已保存HTTP协议: '.$httpfs.'<br>
已保存页面编码:'.$bbm.'<br>
已保存网关端口:'.$port.'
<br><br>
四川免流论坛:http://vnsh.tk<br>
</div>
<script type="text/javascript">
writeContent(true);
</script>';}
?>
</body>
</html>
|