CONTROL_OPT::ctl_chkver PHP Method

ctl_chkver() public method

public ctl_chkver ( )
    function ctl_chkver()
    {
        if (!isset($this->adminLogged["admin_allow"]["opt"]["chkver"]) && !$this->is_super) {
            return array("alert" => "x040301");
        }
        $this->tplData["act_get"] = $GLOBALS["act_get"];
        $this->tplData["latest_ver"] = $this->mdl_opt->chk_ver();
        $this->tplData["install_pub"] = strtotime(BG_INSTALL_PUB);
        $this->obj_tpl->tplDisplay("opt_chkver.tpl", $this->tplData);
        return array("alert" => "y040301");
    }

Usage Example

コード例 #1
0
ファイル: opt.php プロジェクト: baigoStudio/baigoADS
    exit("Access Denied");
}
include_once BG_PATH_FUNC . "init.func.php";
$arr_set = array("base" => true, "ssin" => true, "header" => "Content-Type: text/html; charset=utf-8", "db" => true, "type" => "ctl", "ssin_begin" => true);
fn_init($arr_set);
include_once BG_PATH_INC . "is_install.inc.php";
//验证是否已登录
include_once BG_PATH_INC . "is_admin.inc.php";
//验证是否已登录
include_once BG_PATH_CONTROL . "admin/ctl/opt.class.php";
//载入设置控制器
$ctl_opt = new CONTROL_OPT();
//初始化设置对象
switch ($GLOBALS["act_get"]) {
    case "chkver":
        $arr_optRow = $ctl_opt->ctl_chkver();
        //数据库
        if ($arr_optRow["alert"] != "y060301") {
            header("Location: " . BG_URL_ADMIN . "ctl.php?mod=alert&act_get=show&alert=" . $arr_optRow["alert"]);
            exit;
        }
        break;
    case "dbconfig":
        $arr_optRow = $ctl_opt->ctl_dbconfig();
        if ($arr_optRow["alert"] != "y060301") {
            header("Location: " . BG_URL_ADMIN . "ctl.php?mod=alert&act_get=show&alert=" . $arr_optRow["alert"]);
            exit;
        }
        break;
    default:
        $arr_optRow = $ctl_opt->ctl_form();