Web site directory - Part II: Developing Intranet Solutions Listing 4-4 (Continued)

Part II: Developing Intranet Solutions Listing 4-4 (Continued) function getNAME() { list($name, $host) = explode( , $this->getEMAIL()); return ucwords($name); } function check_session() { if ($this->session_ok == TRUE) { return TRUE; } if (!empty($this->user_name)) { $this->session_ok = TRUE; } else { $this->session_ok = FALSE; $this->reauthenticate(); } return $this->session_ok; } function reauthenticate() { global $AUTHENTICATION_URL; header( Location: $AUTHENTICATION_URL?url=$this->self_url ); } function getBaseURL() { return $this->base_url; }

Leave a Reply