Beispiel #1
0
/**
 * 执行快速登录触发操作:写入内容给监听的txt文件,然后前端可触发事件
 * @param string $code
 * @return void
 */
function doquicklogin($code)
{
    $file = PATH_ROOT . './data/temp/login_' . $code . '.txt';
    $uid = Ibos::app()->user->uid;
    file_put_contents($file, String::authCode($uid, 'ENCODE', $code));
    return close('登录成功,请关闭窗口');
}