CONTROL_HELP::ctl_show PHP Метод

ctl_show() публичный Метод

public ctl_show ( )
    function ctl_show()
    {
        $this->mod = fn_getSafe(fn_get("mod"), "txt", "intro");
        $this->act_get = fn_getSafe(fn_get("act_get"), "txt", "outline");
        if (file_exists(BG_PATH_LANG . $this->config["lang"] . "/help/" . $this->mod . "/config.php")) {
            $_arr_config = (include_once BG_PATH_LANG . $this->config["lang"] . "/help/" . $this->mod . "/config.php");
        } else {
            $_arr_config = array();
        }
        if (BG_DEFAULT_UI != "default") {
            $_arr_config = str_ireplace("baigo", BG_DEFAULT_UI, $_arr_config);
        }
        $this->tplData = array("helpConfig" => $this->helpConfig, "config" => $_arr_config, "mod" => $this->mod, "act_get" => $this->act_get, "content" => $this->str_process());
        $this->obj_tpl->tplDisplay("help.tpl", $this->tplData);
    }

Usage Example

Пример #1
0
<?php

/*-----------------------------------------------------------------
!!!!警告!!!!
以下为系统文件,请勿修改
-----------------------------------------------------------------*/
//不能非法包含或直接执行
if (!defined("IN_BAIGO")) {
    exit("Access Denied");
}
include_once BG_PATH_INC . "common_help.inc.php";
//验证是否已登录
include_once BG_PATH_CONTROL . "help/help.class.php";
//载入文章类
$ctl_help = new CONTROL_HELP();
$ctl_help->ctl_show();