framework/Mvc/Extensions/Ckfinder/lib/core/connector/php/php5/Core/ResourceTypeConfig.php
public function checkSingleExtension($extension)
    {
        $extension = strtolower(ltrim($extension,'.'));

        if (sizeof($this->_deniedExtensions)) {
            if (in_array($extension, $this->_deniedExtensions)) {
                return false;
            }
        }

        if (sizeof($this->_allowedExtensions)) {
            return in_array($extension, $this->_allowedExtensions);
        }

        return true;
    }
public function checkSingleExtension($extension)
    {
        $extension = strtolower(ltrim($extension,'.'));

        if (sizeof($this->_deniedExtensions)) {
            if (in_array($extension, $this->_deniedExtensions)) {
                return false;
            }
        }

        if (sizeof($this->_allowedExtensions)) {
            return in_array($extension, $this->_allowedExtensions);
        }

        return true;
    }
public function checkSingleExtension ( $ extension ) { $ extension = strtolower ( ltrim ( $ extension , '.' ) ) ; if ( sizeof ( $ this -> _deniedExtensions ) ) { if ( in_array ( $ extension , $ this -> _deniedExtensions ) ) { return false ; } } if ( sizeof ( $ this -> _allowedExtensions ) ) { return in_array ( $ extension , $ this -> _allowedExtensions ) ; } return true ; }
Check if extension is allowed
Return true if the extension is allowed.

@param string $extension
@access public
@return boolean
Check if extension is allowed Return true if the extension is allowed .