summaryrefslogtreecommitdiff
path: root/program/js/tiny_mce/plugins/spellchecker/includes
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-06-24 13:27:43 +0000
committeralecpl <alec@alec.pl>2010-06-24 13:27:43 +0000
commitf4f6291ec16bd2fe368f868e667ea2071c514098 (patch)
treee5d74a7168dfb1a4a015f6db4d7f10076f95b515 /program/js/tiny_mce/plugins/spellchecker/includes
parent2011bef155aacdfa8461a4d5c2cd3988d946d135 (diff)
- Use built-in spellchecker instead of a PHP files of spellchecker plugin in TinyMCE
Diffstat (limited to 'program/js/tiny_mce/plugins/spellchecker/includes')
-rwxr-xr-xprogram/js/tiny_mce/plugins/spellchecker/includes/general.php98
1 files changed, 0 insertions, 98 deletions
diff --git a/program/js/tiny_mce/plugins/spellchecker/includes/general.php b/program/js/tiny_mce/plugins/spellchecker/includes/general.php
deleted file mode 100755
index 9a1214569..000000000
--- a/program/js/tiny_mce/plugins/spellchecker/includes/general.php
+++ /dev/null
@@ -1,98 +0,0 @@
-<?php
-/**
- * general.php
- *
- * @package MCManager.includes
- * @author Moxiecode
- * @copyright Copyright © 2007, Moxiecode Systems AB, All rights reserved.
- */
-
-@error_reporting(E_ALL ^ E_NOTICE);
-$config = array();
-
-require_once(dirname(__FILE__) . "/../classes/utils/Logger.php");
-require_once(dirname(__FILE__) . "/../classes/utils/JSON.php");
-require_once(dirname(__FILE__) . "/../config.php");
-require_once(dirname(__FILE__) . "/../classes/SpellChecker.php");
-
-if (isset($config['general.engine']))
- require_once(dirname(__FILE__) . "/../classes/" . $config["general.engine"] . ".php");
-
-/**
- * Returns an request value by name without magic quoting.
- *
- * @param String $name Name of parameter to get.
- * @param String $default_value Default value to return if value not found.
- * @return String request value by name without magic quoting or default value.
- */
-function getRequestParam($name, $default_value = false, $sanitize = false) {
- if (!isset($_REQUEST[$name]))
- return $default_value;
-
- if (is_array($_REQUEST[$name])) {
- $newarray = array();
-
- foreach ($_REQUEST[$name] as $name => $value)
- $newarray[formatParam($name, $sanitize)] = formatParam($value, $sanitize);
-
- return $newarray;
- }
-
- return formatParam($_REQUEST[$name], $sanitize);
-}
-
-function &getLogger() {
- global $mcLogger, $man;
-
- if (isset($man))
- $mcLogger = $man->getLogger();
-
- if (!$mcLogger) {
- $mcLogger = new Moxiecode_Logger();
-
- // Set logger options
- $mcLogger->setPath(dirname(__FILE__) . "/../logs");
- $mcLogger->setMaxSize("100kb");
- $mcLogger->setMaxFiles("10");
- $mcLogger->setFormat("{time} - {message}");
- }
-
- return $mcLogger;
-}
-
-function debug($msg) {
- $args = func_get_args();
-
- $log = getLogger();
- $log->debug(implode(', ', $args));
-}
-
-function info($msg) {
- $args = func_get_args();
-
- $log = getLogger();
- $log->info(implode(', ', $args));
-}
-
-function error($msg) {
- $args = func_get_args();
-
- $log = getLogger();
- $log->error(implode(', ', $args));
-}
-
-function warn($msg) {
- $args = func_get_args();
-
- $log = getLogger();
- $log->warn(implode(', ', $args));
-}
-
-function fatal($msg) {
- $args = func_get_args();
-
- $log = getLogger();
- $log->fatal(implode(', ', $args));
-}
-
-?> \ No newline at end of file