<?php require "needlogin.php"; require "mysql.php"; $alivecheck = easymysql_select('sysinfo', array('key' => 'checkproxy')); if ($alivecheck['value'] == 'free') { easymysql_update('proxy', array(), array('checktoken' => 0)); easymysql_update('sysinfo', array('key' => 'checkproxy'), array('value' => 'check')); } header("Location: index.php");
} else { echo "正在验证..."; } ?> </td> </tr> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading">Daemon状态</div> <div class="panel-body"> <?php $ccdaemon = easymysql_select('daemon', array("daemon" => "ccdaemon")); $checkdaemon = easymysql_select('daemon', array("daemon" => "checkdaemon")); ?> <table class="table table-hover"> <tr> <td>验证Daemon</td> <td> <?php if (time() - intval($checkdaemon['time']) > 60) { echo '<span class="label label-warning">连接断开</span>'; } else { echo '<span class="label label-success">工作正常!版本' . $checkdaemon['version'] . '</span>'; } ?> </td> </tr> <tr>
<?php session_start(); if ($_SESSION['cloudcc_username']) { header("Location: index.php"); die; } require "mysql.php"; $result = easymysql_select('users', array('username' => $_POST['username'], 'password' => md5(md5($_POST['password']) . 's4661a2!l83t%@!1)1!!'))); if (!$result['username']) { header("Location: login.php?error=1"); } else { $_SESSION['cloudcc_username'] = $result['username']; header("Location: login.php"); }
$readded = 0; $inputstr = str_replace("\r", "", $inputstr); $strarr = explode("\n", $inputstr); $i = 0; while ($i < count($strarr)) { $res = explode(":", $strarr[$i]); if (strval(intval($res[1])) != $res[1]) { $fail++; } else { if ($res[0] . ":" . intval($res[1]) != $strarr[$i]) { $fail++; } else { if (intval($res[1]) > 65535 || intval($res[1]) < 1) { $fail++; } else { $checkresult = easymysql_select('proxy', array("ip" => $res[0])); if ($checkresult["ip"] == $res[0]) { $readded++; } else { easymysql_insert('proxy', array("ip" => $res[0], "port" => $res[1], "status" => 3, "checked" => "None", "taskid" => 0)); $success++; } } } } $i++; } ?> <!DOCTYPE html> <html lang="en"> <head>