function _run_action() { /* 只有登录的用户才可访问 */ if (!$this->visitor->has_login && in_array(APP, array('apply'))) { header('Location: index.php?app=member&act=login&ret_url=' . rawurlencode($_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'])); return; } parent::_run_action(); }
function _run_action() { //小二登录,前台保持退出状态 by andcpp if ($this->visitor->get("waiter_id")) { $this->visitor->waiter_logout(); } //end /* 只有登录的用户才可访问 */ if (!$this->visitor->has_login && in_array(APP, array('apply'))) { header('Location: index.php?app=member&act=login&ret_url=' . rawurlencode($_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'])); return; } parent::_run_action(); }