12345678910111213141516171819202122232425 |
- <?php
- // by 请勿倒卖,已申请软著,否则追究法律责任
- require "../system/db.class.php";
- error_reporting(0);
- header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
- header("Cache-Control: no-cache, must-revalidate");
- header("Pragma: no-cache");
- header("Content-type: text/html;charset=" . IN_CHARSET);
- header("Access-Control-Allow-Origin: " . $_SERVER["HTTP_ORIGIN"]);
- header("Access-Control-Allow-Credentials: true");
- $id = intval(SafeRequest("id", "get"));
- $step = SafeRequest("step", "get");
- $percent = intval(SafeRequest("percent", "get"));
- $pw = SafeRequest("pw", "get");
- $pw && $pw == IN_SECRET || exit("Access denied");
- $row = db("appid")->where("in_id", $id)->find();
- if (!$row) {
- exit;
- }
- if (!db("signlog")->where(array("in_aid" => $id))->count()) {
- db("signlog")->insert(array("in_aid" => $id, "in_step" => $step, "in_percent" => $percent));
- } else {
- db("signlog")->where(array("in_aid" => $id))->update(array("in_step" => $step, "in_percent" => $percent));
- }
|