/** * 退出后台 */ public function logout() { unset($_SESSION['adminId']); unset($_SESSION['adminUsername']); unset($_SESSION['adminPermission']); session_destroy(); cc_to_link(B_URL . 'login'); }
/** * 信息提示跳转 * @param type $url * @param type $message * @param type $second */ public function showMessage($url, $message, $second = 5) { //替换问好为^ $url = base64_encode($url); $jumpUrl = B_URL . "home/showMessage/?url={$url}&message={$message}&second={$second}"; cc_to_link($jumpUrl); }