-
Notifications
You must be signed in to change notification settings - Fork 1
/
submitBDUSS.php
63 lines (63 loc) · 2.36 KB
/
submitBDUSS.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<html>
<head>
<title>贴吧签到托管-提交BDUSS</title>
<meta name="viewport" charset="utf-8" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.2/css/bootstrap.min.css">
<link href="//cdn.bootcss.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet">
<style>
body {
padding-top: 80px;
background-color: #eee;
}
footer,.form-panel{
max-width: 330px;
margin: 0 auto;
}
</style>
<script>
function subBDUSS(){
document.getElementById('info').innerHTML='<i class="fa fa-spinner fa-spin"></i>更新中...请稍候....';
document.getElementById('btn').disabled=true;
var xmlhttp;
var href = location.href.replace('submitBDUSS.php','');
xmlhttp=new XMLHttpRequest();
xmlhttp.open("POST",href+'/addBDUSS.php',true);
xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
xmlhttp.send('bduss='+document.getElementById('bduss').value);
xmlhttp.onreadystatechange=function(){
if(xmlhttp.readyState==4 && xmlhttp.status==200){
document.getElementById('info').innerHTML=xmlhttp.responseText;
document.getElementById('btn').disabled=false;
}
}
}
</script>
</head>
<body>
<div class="panel panel-primary form-panel">
<div class="panel-heading">提交BDUSS</div>
<div class="panel-body">
<div class="form-horizontal" role="form">
<div class="form-group">
<label for="input_user_name" class="col-sm-3 control-label">BDUSS</label>
<div class="col-sm-9">
<input type="text" id='bduss' class="form-control" id="input_user_name"placeholder="BDUSS(不带'BDUSS='和';')">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-3 col-sm-9">
<button type="submit" id="btn" class="btn btn-primary btn-block" onclick="subBDUSS()">提交</button>
</div>
</div>
<div id='info' class="col-sm-offset-3 col-sm-9"></div>
</div>
<div class="col-sm-offset-3 col-sm-9">
<a href="./">签到查询</a> <a href="refresh.php">更新贴吧</a><br><a href="BDUSSbyLogin.php">自动获取BDUSS</a>
</div>
</div>
</div>
</body>
<footer>© 2015 <a href="http://www.zzliux.com" target="_blank">zzliux</a><?php echo file_get_contents("tongji.txt") ?></footer>
<!-- 感谢星弦雪大神提供的BaiduUtil和登录模板 -->
</html>