usr_name = $n; $this->usr_full_name = $fn; $this->IPAddress = $_SERVER["REMOTE_ADDR"]; $this->UserAgent = $_SERVER['HTTP_USER_AGENT']; $this->usr_hits = 0; } public function setName($newname) { $this->usr_full_name = $newname; } public function setHit() { $this->usr_hits++; } public function access() { $this->usr_hits++; } public function getUserName() { return $this->usr_name; } public function getFullName() { return $this->usr_full_name; } public function getHits() { return $this->usr_hits; } public function getIPAddress() { return $this->IPAddress; } public function verifyUser() { if(($this->IPAddress == $_SERVER["REMOTE_ADDR"]) && ($this->UserAgent ==$_SERVER['HTTP_USER_AGENT'] )) return true; else return false; } } ?>