/**
  * @access	protected
  */
 function __construct()
 {
     // Call parent
     parent::__construct();
     $this->_base = $this->getRootDir();
     $this->plugin->type = 'manager';
 }
 /**
  * Constructor activating the default information of the class
  *
  * @access	protected
  */
 function __construct()
 {
     parent::__construct();
     // check the user/group has editor permissions
     $this->checkPlugin() or die(JError::raiseError(403, JText::_('Access Forbidden')));
     // Setup XHR callback functions
     $this->setXHR(array($this, 'getLinks'));
     // Set javascript file array
     $this->script(array('tiny_mce_popup'), 'tiny_mce');
     $this->script(array('mootools'), 'media');
     $this->script(array('tiny_mce_utils', 'jce', 'plugin', 'window', 'tree'), 'libraries');
     $this->script(array('advlink'), 'plugins');
     // Set css file array
     $this->css(array('plugin', 'tree'), 'libraries');
     $this->css(array('advlink'), 'plugins');
     $this->css(array('window', 'dialog'), 'skins');
     $this->loadLanguages();
     $extensions = $this->loadExtensions('links');
     foreach ($extensions as $extension) {
         if ($extension) {
             if (is_array($extension)) {
                 foreach ($extension as $sibling) {
                     $this->_linkextensions[] = $sibling;
                 }
             } else {
                 $this->_linkextensions[] = $extension;
             }
         }
     }
 }
Example #3
0
 /**
  * Constructor activating the default information of the class
  *
  * @access	protected
  */
 function __construct()
 {
     parent::__construct();
     // check the user/group has editor permissions
     $this->checkPlugin() or die(JError::raiseError(403, JText::_('Restricted Access')));
     $this->setXHR(array($this, 'showPreview'));
     $this->processXHR();
     // reset scripts
     $this->scripts = array();
     // Set javascript file array
     $this->script(array('tiny_mce_popup'), 'tiny_mce');
     $this->script(array('mootools', 'jce', 'plugin'), 'libraries');
     $this->script(array('preview'), 'plugins');
     // reset styles
     $this->styles = array();
     $this->css(array('preview'), 'plugins');
     $this->loadLanguages();
 }
Example #4
0
 /**
  * Constructor activating the default information of the class
  *
  * @access	protected
  */
 function __construct()
 {
     parent::__construct();
     // check the user/group has editor permissions
     $this->checkPlugin() or die(JError::raiseError(403, JText::_('ERROR_403')));
     $config =& $this->getConfig();
     $engine =& $this->getEngine();
     if (isset($config['general.remote_rpc_url'])) {
         $this->remoteRPC();
     }
     // Setup plugin XHR callback functions
     $this->setXHR(array($engine, 'checkWords'));
     $this->setXHR(array($engine, 'getSuggestions'));
     $this->setXHR(array($engine, 'ignoreWord'));
     $this->setXHR(array($engine, 'ignoreWords'));
     $this->setXHR(array($engine, 'learnWord'));
     $this->processXHR();
 }
Example #5
0
<?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");
Example #6
0
* $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 
Example #7
0
 /**
  * Constructor activating the default information of the class
  *
  * @access	protected
  */
 function __construct()
 {
     parent::__construct();
     // check the user/group has editor permissions
     $this->checkPlugin() or die(JError::raiseError(403, JText::_('Restricted Access')));
 }