2 Star 0 Fork 0

tt/caipiao

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.php 7.62 KB
一键复制 编辑 原始数据 按行查看 历史
夏之随想 提交于 2018-02-01 17:54 . 屏蔽玩法放开
<?php
error_reporting(1);
include_once('global.php');
$db = new mysql($mydbhost, $mydbuser, $mydbpw, $mydbname, ALL_PS, $mydbcharset); //数据库操作类.
$query=$db->select("animal_set");
$row=$db->fetch_array($query);
if($_POST['sub_go']=='驗證'){
if($_POST['password']==$row['w_yanzheng1']){
$_SESSION['uid_w_yanzheng']=3;
}elseif($_POST['password']==$row['w_yanzheng2345']){
$_SESSION['uid_w_yanzheng']=2;
}elseif($_POST['password']==$row['w_yanzheng6']){
$_SESSION['uid_w_yanzheng']=1;
}else{
$_SESSION['uid_w_yanzheng']=0;
unset($_SESSION['uid_w_yanzheng']);
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html oncontextmenu="return false" xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<title><?php echo $system_setting['w_name'];?> - welcome !! </title>
<link rel="stylesheet" href="css/test.css">
<!--[if lt IE 9]><script src="js/html5.js"></script><![endif]-->
</head>
<body onload="javascript:document.getElementById('gt_go').focus();" oncontextmenu="return false" onselect="document.selection.empty()" oncopy="document.selection.empty()" onmouseover="self.status='歡迎光臨';return true">
<header>
<form name="MyForm" defaultbutton="submit_bt" method="post" action="">
<div class="centerabc"><input style="height:22px;" type="text" name="password" id="gt_go"><input name="sub_go" class="subm abc" type="submit" value="驗證"></div>
</form>
</header>
<div id="pl_1">
<nav id="filter"><input class="sbtn abc" onclick="javascript:conn(0);" id="ck_but" type="button" value="測速">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</nav>
<div style="margin-top:50px" align="center"> <section id="container">
<ul id="stage" style="width: 580px;" >
<?php if($_SESSION['uid_w_yanzheng']>2 || empty($row['w_yanzheng1'])){?>
<li data-tags="管理線路" class="center" id="l_0_5" data-id="8"><br><a href="<?php echo $mydbweburl1;?>admin/index.php" ><h3>管理線路1</h3></a><br><div class="right"></div></li><li data-tags="管理線路" class="center" id="l_0_6" data-id="9"><br><a href="<?php echo $mydbweburl2;?>admin/index.php" ><h3>管理線路2</h3></a><br><div class="right"></div></li><li data-tags="管理線路" class="center" id="l_0_7" data-id="10"><br><a href="<?php echo $mydbweburl3;?>admin/index.php" ><h3>管理線路3</h3></a><br><div class="right"></div></li><li data-tags="管理線路" class="center" id="l_0_8" data-id="11"><br><a href="<?php echo $mydbweburl4;?>admin/index.php" ><h3>管理線路4</h3></a><br><div class="right"></div></li>
<?php }if($_SESSION['uid_w_yanzheng']>1 || empty($row['w_yanzheng2345'])){?>
<li data-tags="代理線路" class="center" id="l_0_1" data-id="4"><br><a href="<?php echo $mydbweburl1;?>ag/index.php" ><h3>代理線路1</h3></a><br><div class="right"></div></li><li data-tags="代理線路" class="center" id="l_0_2" data-id="5"><br><a href="<?php echo $mydbweburl2;?>ag/index.php" ><h3>代理線路2</h3></a><br><div class="right"></div></li><li data-tags="代理線路" class="center" id="l_0_3" data-id="6"><br><a href="<?php echo $mydbweburl3;?>ag/index.php" ><h3>代理線路3</h3></a><br><div class="right"></div></li><li data-tags="代理線路" class="center" id="l_0_4" data-id="7"><br><a href="<?php echo $mydbweburl4;?>ag/index.php" ><h3>代理線路4</h3></a><br><div class="right"></div></li>
<?php }if($_SESSION['uid_w_yanzheng']>0 || empty($row['w_yanzheng6'])){?>
<li data-tags="會員線路" class="center" id="l_1_1" data-id="0"><br><a href="<?php echo $mydbweburl1;?>member/index.php" ><h3>會員線路1</h3></a><br><div class="right"></div></li><li data-tags="會員線路" class="center" id="l_1_2" data-id="1"><br><a href="<?php echo $mydbweburl2;?>member/index.php" ><h3>會員線路2</h3></a><br><div class="right"></div></li><li data-tags="會員線路" class="center" id="l_1_3" data-id="2"><br><a href="<?php echo $mydbweburl3;?>member/index.php" ><h3>會員線路3</h3></a><br><div class="right"></div></li><li data-tags="會員線路" class="center" id="l_1_4" data-id="3"><br><a href="<?php echo $mydbweburl4;?>member/index.php" ><h3>會員線路4</h3></a><br><div class="right"></div></li>
<?php }?>
</ul></section></div>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.quicksand.js"></script>
<script type="text/javascript">
var link = $('#stage')[0].getElementsByTagName('li');
var count = 0;var btn = $('#ck_but')[0];var speed = $('#dis_div')[0];
var imgs = [],timeout = null;
var imgLoad = function (){btn.setAttribute('disabled','disabled',false);
var c=0;for(c = 0; c < link.length; c++){var s = {};
s.img = document.createElement('img');
s.url = $('#'+link[c].id+' a')[0].href.replace(/:\d{3,}/,'');
s.url=s.url.substr(0,s.url.length-1);s.y = 6688;s.p = '/test.gif?';
s.c = 0;s.n = 0;s.t = 0;s.l = link[c].id;s.img.onerror = getError;
s.img.onload = getLoad;s.img.id = link[c].id+'_g';s.img.name=c;
s.lt = [];s.r = false;imgs[c] = s;}c=0;
for(c in imgs){$.get("load.aspx", {array:imgs[c].url,i:c}, function (data, textStatus){
try{var y=data.split(',');imgs[y[1]].y=data.split(',')[0];}catch(e){}});}
btn.removeAttribute('disabled');}
var clear = function(c){clearTimeout(timeout);
timeout = null;if (!c) {
for (var i = link.length - 1; i >= 0; i--) {
if($('#'+link[i].id+' span').length>0){
$('#'+link[i].id+' span')[0].className = '';
$('#'+link[i].id+' span')[0].innerHTML = '';}};};}
var conn = function (c){clear(c);
btn.setAttribute('disabled','disabled',false);
if(link[c]){var st,x;for(x in imgs){if(imgs[x].l==link[c].id){st=imgs[x].img.name;}}
if($("#"+link[c].id+ " span").length>0){$("#"+link[c].id+ " span")[0].innerHTML = "連接中";
$("#"+link[c].id+ " span")[0].className = "black";
imgs[st].img.src = imgs[st].url+':'+imgs[st].y+imgs[st].p+(Math.random()+'').replace('0.','');imgs[st].c=c;}
else{var span = document.createElement("span");span.id =link[c].id+'_g_s';
span.className='black';span.innerHTML = "連接中";$('#'+link[c].id+ ' div')[0].appendChild(span);
imgs[st].img.src = imgs[st].url+':'+imgs[st].y+imgs[st].p+(Math.random()+'').replace('0.',''); imgs[st].c=c;;
speed.appendChild(imgs[st].img);}imgs[st].t = new Date().getTime();imgs[st].r = false;
timeout = setTimeout(function() {getError.call(imgs[st].img,c);}, 5000);
}else{btn.removeAttribute('disabled');};}
function getError(c){var st;if(typeof(c)!='number'){c=imgs[this.name].c;st=this.name;}
else{st= $('#'+link[c].id+"_g")[0].name;}if($('#'+imgs[st].img.id+'_s')[0]){
if (!imgs[st].r){imgs[st].n = 0;imgs[st].r = true;
if($('#'+imgs[st].img.id+'_s')[0].innerHTML == '連接中'){
$('#'+imgs[st].img.id+'_s')[0].className='br_green white';
$('#'+imgs[st].img.id+'_s')[0].innerHTML = '流暢';}};
setTimeout(function(){conn(c+1);},500);}}
function getLoad(){var st=this.name==''?event.srcElement.name:this.name;
var end = new Date().getTime(),clink = imgs[st],
td = clink.n?end - imgs[st].t:end - imgs[st].t, total = 0;
imgs[st].lt.push(td);imgs[st].n += 1;if(imgs[st].r){return;}
if(imgs[st].n < 2 ){setTimeout(function(){conn(imgs[st].c);},500);
}else{for(var c = 0; c < 2; c ++){total += clink.lt[c];}
var time=(total/2).toFixed(2);if(time<=2000){
$('#'+imgs[st].img.id+'_s')[0].className='br_green white';
$('#'+imgs[st].img.id+'_s')[0].innerHTML = '流暢';}
else if(time>2000){
$('#'+imgs[st].img.id+'_s')[0].className='br_ye white';
$('#'+imgs[st].img.id+'_s')[0].innerHTML = '繁忙';}
else{
$('#'+imgs[st].img.id+'_s')[0].className='br_reg white';
$('#'+imgs[st].img.id+'_s')[0].innerHTML = '超時';}
count -= 1;imgs[st].n = 0;imgs[st].lt.length = 0;imgs[st].r = true;
setTimeout(function(){conn(imgs[st].c+1);},500);}}
imgLoad();
</script>
</div>
</body></html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ttut/caipiao.git
[email protected]:ttut/caipiao.git
ttut
caipiao
caipiao
master

搜索帮助