public function isPageAllowed($page)
    {
        if ($this->hook('isPageAllowed', array($page)) === true) {
            return true;
        }

        return in_array($page, $this->allowed_pages) || in_array(str_replace('_', '/', $page), $this->allowed_pages);
    }
public function isPageAllowed($page)
    {
        if ($this->hook('isPageAllowed', array($page)) === true) {
            return true;
        }

        return in_array($page, $this->allowed_pages) || in_array(str_replace('_', '/', $page), $this->allowed_pages);
    }
public function isPageAllowed ( $ page ) { if ( $ this -> hook ( 'isPageAllowed' , array ( $ page ) ) === true ) { return true ; } return in_array ( $ page , $ this -> allowed_pages ) || in_array ( str_replace ( '_' , '/' , $ page ) , $ this -> allowed_pages ) ; }
Verifies if the specified page is allowed to be accessed without
authentication.

@param string $page

@return bool
Verifies if the specified page is allowed to be accessed without authentication .