1234567891011121314151617181920212223 |
- <?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");
- $secret = SafeRequest("secret", "get");
- $secret && $secret == IN_SECRET || exit("Access denied");
- $ssl = is_ssl() ? "https://" : "http://";
- $api = $ssl . $_SERVER["HTTP_HOST"] . IN_PATH;
- $query = db("sign")->where("in_status=1 and in_time>0")->order("in_time desc")->select();
- foreach ($query as $row) {
- db("sign")->where(array("in_id" => $row["in_id"]))->update(array("in_time" => 0));
- $pw = db("secret")->where("in_site", str_replace("www.", "", $row["in_site"]))->value("in_md5");
- $pw = $pw ?: $secret;
- $src = "download.php?id=" . $row["in_aid"] . "&ssl=" . $row["in_ssl"] . "&site=" . $row["in_site"] . "&path=" . $row["in_path"] . "&ipa=" . $row["in_ipa"] . "&cert=" . $row["in_cert"] . "&replace=" . $row["in_replace"] . "&pw=" . $pw . "&api=" . $api;
- echo "<tr><td><iframe width=\"100%\" height=\"50\" allowtransparency=\"true\" scrolling=\"no\" border=\"0\" frameborder=\"0\" src=\"" . $src . "\"></iframe></td></tr>";
- }
|