function __construct() { parent::__construct(); $this->user = M('users'); if (session('user') != null) { redirect(pdm_ux('Console/Index/index')); } }
function __construct() { parent::__construct(); $_session = session('user'); if ($_session == null) { redirect(PDM_URL); } $this->_checkTimeout(); $this->uid = $_session['id']; $this->auth_code = $_session['auth_code']; $this->timeout = $_session['timeout']; session('pdm_timeout', NOW_TIME); }
function __construct() { parent::__construct(); }