verify( $type, $uid, $sid, $key ); } public function verify( $type, $uid, $sid, $key ) { $this->_type = $type; $this->_uid = $uid; $this->_sid = $sid; $this->_key = $key; list($usec, $sec) = explode(" ", microtime()); $this->_stmp = $sec; $this->_sign = $this->UMD5( $this->_stmp .$this->_uid .$this->UMD5($this->_key) .$this->_sid .$this->_type ); } public function UMD5($str) { return strtoupper(md5($str)); } }