wap_index.php

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php
$dirx=dirname($_SERVER["SCRIPT_FILENAME"])."/";
$first=json_decode(file_get_contents($dirx."data/config.json"))->first;
if($first=="1"){
    Header("Location: install");
    die();
}

require 'function/conn.php';
require 'function/function.php';

if ($_GET["action"] == "update_dir") {
    mysqli_query($conn, "update ".TABLE."config set C_dir='" . splitx( strtolower($_SERVER["PHP_SELF"]), "wap_index.php",0) . "'");
    box("更新成功!", "wap_index.php", "success");
}
if (substr($_SERVER["PHP_SELF"], -13) == "wap_index.php" && $C_dir != splitx( $_SERVER["PHP_SELF"], "wap_index.php",0)) {
    echo ("系统检测到您移动了安装目录,是否更新数据库?(<a href='?action=update_dir'>是</a>/否)" . splitx( $_SERVER["PHP_SELF"], "wap_index.php",0));
}
$S_page = $_GET["page"];
if($S_page<1){
    $S_page=1;
}
if ($_GET["type"] == "") {
    $U_type = "index";
} else {
    $U_type = $_GET["type"];
}

if(isset($_GET["S_id"])){
    $S_id = $_GET["S_id"];
}else{
	$S_id = "0";
}

if ($C_close == 1) {
    Header("Location: close.html");
    die();
}

if ($C_todomain <> "empty" && $C_todomain <> "" && $C_todomain <> $C_domain) {
    header('HTTP/1.1 301 Moved Permanently');
    Header("Location:http://" . $C_todomain.$dirx."wap_index.php");
    die();
}

switch ($U_type) {
    case "index":
        $page_info = e(j(CreateIndex(a($U_type, 1,"wap"))));
        break;

    case "contact":
        $page_info = e(j(CreateContact(a($U_type, 1,"wap"))));
        break;

    case "guestbook":
        $page_info = e(j(CreateGuestbook(a($U_type, 1,"wap"))));
        break;

    case "bbs":
        $page_info = e(j(CreateBbs(a($U_type, 1,"wap"))));
后面还有 77 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。