예제 #1
0
파일: page.php 프로젝트: netstao/swoole.com
 function chatroom()
 {
     session();
     Swoole\Auth::$login_url = '/page/login/?';
     Swoole\Auth::login_require();
     $userInfo = createModel('UserInfo');
     $this->swoole->tpl->assign('user', $userInfo->get($_SESSION['user_id'])->get());
     $this->swoole->tpl->display();
 }
예제 #2
0
<?php

$php->tpl->template_dir = WEBPATH . '/admin/templates';
$php->session->start();
Swoole\Auth::$session_prefix = 'admin_';
Swoole\Auth::$login_url = '/admin/login.php?';
Swoole\Auth::login_require();
$access = array();
require_once "../dict/acl.php";