function user_login() { $userarr = uc_user_get($this->username, 0); return uc_user_check($userarr['uid'], md5(UC_KEY . md5($this->password))); }
<?php !defined('P_W') && exit('Forbidden'); if (empty($detail) && GetCookie('ucuser')) { require_once R_P . 'uc_client/uc_client.php'; list($winduid, $md5pwd) = explode("\t", addslashes(StrCode(GetCookie('ucuser'), 'DECODE'))); $detail = uc_user_check($winduid, $md5pwd); } if ($detail['uid'] > 0) { $register = L::loadClass('Register', 'user'); $register->appendUser($detail['uid'], $detail['username'], $detail['password'], $detail['email']); $detail = getUserByUid($detail['uid']); }