public function includeFileAllowed($path)
    {
        if (!$this->includeAllowed) {
            return false;
        }
        if (!@is_readable($path)) {
            return false;
        }
        if (empty($this->includeRoot)) {
            return true;
        }
        $real = realpath($path);
        foreach (explode(':', $this->includeRoot) as $root) {
            if (strpos($real, $root) === 0) {
                return true;
            }
        }
        return false;
    }
public function includeFileAllowed($path)
    {
        if (!$this->includeAllowed) {
            return false;
        }
        if (!@is_readable($path)) {
            return false;
        }
        if (empty($this->includeRoot)) {
            return true;
        }
        $real = realpath($path);
        foreach (explode(':', $this->includeRoot) as $root) {
            if (strpos($real, $root) === 0) {
                return true;
            }
        }
        return false;
    }
public function includeFileAllowed ( $ path ) { if ( ! $ this -> includeAllowed ) { return false ; } if ( ! @ is_readable ( $ path ) ) { return false ; } if ( empty ( $ this -> includeRoot ) ) { return true ; } $ real = realpath ( $ path ) ; foreach ( explode ( ':' , $ this -> includeRoot ) as $ root ) { if ( strpos ( $ real , $ root ) === 0 ) { return true ; } } return false ; }
Is this file allowed to be included?

@param $path
@return bool
Is this file allowed to be included?