123456789101112131415161718192021222324252627282930313233 |
- <?php
- // by 请勿倒卖,已申请软著,否则追究法律责任
- namespace app\index;
- class index extends Base
- {
- function index()
- {
- if (!defined("IN_ROOT")) {
- exit("Access denied");
- }
- if (IN_DOMAIN) {
- $host = str_replace("www.", "", $_SERVER["HTTP_HOST"]);
- $domain = str_replace("www.", "", IN_DOMAIN);
- if ($host != $domain) {
- exit("访问地址不正确!");
- }
- }
- $array = "";
- for ($i = 0; $i < strlen($_SERVER["HTTP_HOST"]); $i++) {
- $str = substr($_SERVER["HTTP_HOST"], $i, 1);
- $arr[] = "\"" . $str . "\"";
- $array .= $str == "." ? "<i class=\"icon-comma trans\"></i>" : "<i class=\"icon-\" style=\"font-style:normal;font-size:100px;font-weight:bold\">" . $str . "</i>";
- }
- $letter_doodle = implode(",", $arr);
- if (checkmobile() || strpos($_SERVER["HTTP_USER_AGENT"], "MicroMessenger")) {
- include "source/template/mobile/moban" . (IN_TEMPLATAWA ? IN_TEMPLATAWA : "") . "/index.php";
- } else {
- include "source/template/pc/moban" . (IN_TEMPLATAPC ? IN_TEMPLATAPC : "") . "/index.php";
- }
- }
- }
|