Exemplo n.º 1
0
 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();
 }
Exemplo n.º 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";