loadValues(); } /** * Get file system encoding, returns null if encoding is not set * * @access public * @return string */ function getFilesystemEncoding() { return $this->_filesystemEncoding; } /** * Get "secureImageUploads" value * * @access public * @return boolean */ function getSecureImageUploads() { return $this->_secureImageUploads; } /** * Get "checkSizeAfterScaling" value * * @access public * @return boolean */ function checkSizeAfterScaling() { return $this->_checkSizeAfterScaling; } /** * Get "htmlExtensions" value * * @access public * @return array */ function getHtmlExtensions() { return $this->_htmlExtensions; } /** * Get "forceAscii" value * * @access public * @return array */ function forceAscii() { return $this->_forceAscii; } /** * Get regular expression to hide folders * * @access public * @return array */ function getHideFoldersRegex() { static $folderRegex; if (!isset($folderRegex)) { if (is_array($this->_hideFolders) && $this->_hideFolders) { $folderRegex = join("|", $this->_hideFolders); $folderRegex = strtr($folderRegex, array("?" => "__QMK__", "*" => "__AST__", "|" => "__PIP__")); $folderRegex = preg_quote($folderRegex, "/"); $folderRegex = strtr($folderRegex, array("__QMK__" => ".", "__AST__" => ".*", "__PIP__" => "|")); $folderRegex = "/^(?:" . $folderRegex . ")$/uim"; } else { $folderRegex = ""; } } return $folderRegex; } /** * Get regular expression to hide files * * @access public * @return array */ function getHideFilesRegex() { static $fileRegex; if (!isset($fileRegex)) { if (is_array($this->_hideFiles) && $this->_hideFiles) { $fileRegex = join("|", $this->_hideFiles); $fileRegex = strtr($fileRegex, array("?" => "__QMK__", "*" => "__AST__", "|" => "__PIP__")); $fileRegex = preg_quote($fileRegex, "/"); $fileRegex = strtr($fileRegex, array("__QMK__" => ".", "__AST__" => ".*", "__PIP__" => "|")); $fileRegex = "/^(?:" . $fileRegex . ")$/uim"; } else { $fileRegex = ""; } } return $fileRegex; } /** * Get "Check double extension" value * * @access public * @return boolean */ function getCheckDoubleExtension() { return $this->_checkDoubleExtension; } /** * Get default resource types * * @access public * @return array() */ function getDefaultResourceTypes() { return $this->_defaultResourceTypes; } /** * Is CKFinder enabled * * @access public * @return boolean */ function getIsEnabled() { return $this->_isEnabled; } /** * Get license key * * @access public * @return string */ function getLicenseKey() { return $this->_licenseKey; } /** * Get license name * * @access public * @return string */ function getLicenseName() { return $this->_licenseName; } /** * Get chmod settings for uploaded files * * @access public * @return integer */ function getChmodFiles() { return $this->_chmodFiles; } /** * Get chmod settings for created directories * * @access public * @return integer */ function getChmodFolders() { return $this->_chmodFolders; } /** * Get role sesion variable name * * @access public * @return string */ function getRoleSessionVar() { return $this->_roleSessionVar; } /** * Get resourceTypeName config * * @param string $resourceTypeName * @return CKFinder_Connector_Core_ResourceTypeConfig|null * @access public */ function &getResourceTypeConfig($resourceTypeName) { $_null = null; if (isset($this->_resourceTypeConfigCache[$resourceTypeName])) { return $this->_resourceTypeConfigCache[$resourceTypeName]; } if (!isset($GLOBALS['config']['ResourceType']) || !is_array($GLOBALS['config']['ResourceType'])) { return $_null; } reset($GLOBALS['config']['ResourceType']); while (list($_key,$_resourceTypeNode) = each($GLOBALS['config']['ResourceType'])) { if ($_resourceTypeNode['name'] === $resourceTypeName) { $this->_resourceTypeConfigCache[$resourceTypeName] = new CKFinder_Connector_Core_ResourceTypeConfig($_resourceTypeNode); return $this->_resourceTypeConfigCache[$resourceTypeName]; } } return $_null; } /** * Get thumbnails config * * @access public * @return CKFinder_Connector_Core_ThumbnailsConfig */ function &getThumbnailsConfig() { if (!isset($this->_thumbnailsConfigCache)) { $this->_thumbnailsConfigCache = new CKFinder_Connector_Core_ThumbnailsConfig(isset($GLOBALS['config']['Thumbnails']) ? $GLOBALS['config']['Thumbnails'] : array()); } return $this->_thumbnailsConfigCache; } /** * Get images config * * @access public * @return CKFinder_Connector_Core_ImagesConfig */ function &getImagesConfig() { if (!isset($this->_imagesConfigCache)) { $this->_imagesConfigCache = new CKFinder_Connector_Core_ImagesConfig(isset($GLOBALS['config']['Images']) ? $GLOBALS['config']['Images'] : array()); } return $this->_imagesConfigCache; } /** * Get access control config * * @access public * @return CKFinder_Connector_Core_AccessControlConfig */ function &getAccessControlConfig() { if (!isset($this->_accessControlConfigCache)) { $this->_accessControlConfigCache = new CKFinder_Connector_Core_AccessControlConfig(isset($GLOBALS['config']['AccessControl']) ? $GLOBALS['config']['AccessControl'] : array()); } return $this->_accessControlConfigCache; } /** * Load values from config * * @access private */ function loadValues() { if (function_exists('CheckAuthentication')) {