예제 #1
0
        }
        if (!$_SESSION['proxy'] || count($_SESSION['proxy']) < 2) {
            unset($_SESSION['proxy']);
            $this->fun->local('./');
        }
    }
    /**
     * 输出头
     */
    private function Output_Header()
    {
        date_default_timezone_set('PRC');
        header("Cache-control: private");
        header('content-type: text/html; charset=UTF-8');
    }
    /**
     * 检查权限
     * 将权限组压缩到QX中,方便模板层控制
     * 同时写入到全局$this->QX变量中
     */
    private function proxyTPurview()
    {
        $this->QX = @$_SESSION['proxy']['purview'];
        //var_dump($_SESSION['proxy']['purview']);die;
        $this->sma->assign('QX', $this->QX);
        $this->sma->assign('proxy', $_SESSION['proxy']);
    }
}
$start = new start(false, true, false);
$start->check_Login('login', 'code', 'INTbid', 'news', 'Quote', 'LD');
$start->start_dispose();
예제 #2
0
        if (!$_SESSION['back'] | count($_SESSION['back']) < 2) {
            unset($_SESSION['back']);
            $this->fun->local('./');
        }
    }
    /**
     * 输出头
     */
    private function Output_Header()
    {
        //ob_start();
        date_default_timezone_set('PRC');
        header("Cache-control: private");
        header('content-type: text/html; charset=UTF-8');
    }
    /**
     * 检查权限
     * 将权限组压缩到BTP中,方便模板层控制
     * 同时写入到全局$this->BTP变量中
     */
    private function BackTPurview()
    {
        $this->BTP = @$_SESSION['back']['purview'];
        $this->sma->assign('BTP', $this->BTP);
        $this->cart = @$_SESSION['back'];
        $this->sma->assign('back', $this->cart);
    }
}
$start = new start(false, true, false);
$start->check_Login('login', 'code');
$start->start_dispose();