<?php /** * @author Moxiecode * @copyright Copyright © 2004-2007, Moxiecode Systems AB, All rights reserved. */ // JCE Modifications / Joomla! integration defined('_JEXEC') or die('Restricted access'); require_once JCE_LIBRARIES . DS . 'classes' . DS . 'editor.php'; require_once JCE_LIBRARIES . DS . 'classes' . DS . 'plugin.php'; require_once dirname(__FILE__) . DS . 'includes' . DS . 'general.php'; require_once dirname(__FILE__) . DS . "classes/utils/logger.php"; require_once dirname(__FILE__) . DS . "classes/utils/json.php"; require_once dirname(__FILE__) . DS . "classes/spellchecker.php"; $spellchecker =& JContentEditorPlugin::getInstance(); $params = $spellchecker->getPluginParams(); $config = array('general.engine' => $params->get('spellchecker_engine', 'googlespell'), 'PSpell.mode' => $params->get('spellchecker_pspell_mode', 'PSPELL_FAST'), 'PSpell.spelling' => $params->get('spellchecker_pspell_spelling', ''), 'PSpell.jargon' => $params->get('spellchecker_pspell_jargon', ''), 'PSpell.encoding' => $params->get('spellchecker_pspell_encoding', ''), 'PSpellShell.mode' => $params->get('spellchecker_pspellshell_mode', 'PSPELL_FAST'), 'PSpellShell.aspell' => $params->get('spellchecker_pspellshell_aspell', '/usr/bin/aspell'), 'PSpellShell.tmp' => $params->get('spellchecker_pspellshell_tmp', '/tmp')); require_once dirname(__FILE__) . DS . "classes" . DS . $config['general.engine'] . ".php"; // End JCE Modifications / Joomla! integration // Set RPC response headers header('Content-Type: text/plain'); header('Content-Encoding: UTF-8'); header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); $raw = ""; // Try param if (isset($_POST["json_data"])) { $raw = getRequestParam("json_data");
* $Id: help.php 26 2009-05-25 10:21:53Z happynoodleboy $ * @package JCE * @copyright Copyright (C) 2005 - 2009 Ryan Demmer. All rights reserved. * @author Ryan Demmer * @license GNU/GPL * JCE is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. */ defined('_JEXEC') or die('Restricted access'); $version = "1.5.0"; require_once JCE_LIBRARIES . DS . 'classes' . DS . 'editor.php'; require_once JCE_LIBRARIES . DS . 'classes' . DS . 'plugin.php'; require_once JCE_LIBRARIES . DS . 'classes' . DS . 'utils.php'; $help =& JContentEditorPlugin::getInstance(); $plugin = $help->getPlugin('name'); $params = $help->getEditorParams(); $help->loadLanguages(); $help->script(array('tiny_mce_popup'), 'tiny_mce'); $help->css(array('plugin', 'help')); $url = $params->get('editor_help_url', 'http://www.joomlacontenteditor.net/index2.php?option=com_content') . '&task=findkey&lang=' . $help->getLanguageTag() . '&keyref='; ?> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $help->getLanguageTag(); ?> " lang="<?php echo $help->getLanguageTag(); ?> " dir="<?php