xxx.class.php - 后台类

标准格式

注意:LOAD::sys_class('adminbase');

后台打开index类的index方法的请求地址为 /后台目录/index.php?t=open&n=YOURAPP&c=index&a=index

参数说明
n你的APP的目录名称
c类文件名,对应index.class.php文件
a类中发方法名,对应doindex方法
<?php
defined('IN_LCMS') or exit('No permission');
load::sys_class('adminbase');
class index extends adminbase
{
    public function __construct()
    {
        global $_L;
        parent::__construct();
    }
    public function doindex()
    {
        global $_L;
    }
}

特别注意

后台请求的GET和POST参数名会进行安全过滤,通过$_L['form']变量读取数据,规则如下:

参数名过滤规则

参数名只能包含字母、数字、_-(即正则[a-zA-Z0-9_-]),不符合的会被直接删除。

大纲