function syn_login($r_res) { $oDb = getDb(); checkUser($r_res); $Session = new Session($oDb); $Session->setKey($r_res['uid']); select_yjl_db(); }