HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/PvdBoogaard/indoorski.nl/backup/oude-site/cms/lib/tiny_mce/tiny_mce.php
<?php


class tiny_mce extends iwp_base {
	public $delayLoad = false;
	public $readonly = false;
	public $mode = 'exact';
	public $pluginList = 'iwpcalendarmoduleplugin,iwpinsertlink,gallerymoduleplugin,moduleForm,safari,pagebreak,style,layer,table,save,advimage,advlink,media,searchreplace,print,contextmenu,paste,fullscreen,visualchars,nonbreaking,xhtmlxtras,template,inlinepopups';
	public $buttons1 = 'undo,redo,|,bold,italic,underline,formatselect,fontselect,fontsizeselect,justifyleft,justifycenter,justifyright,justifyfull,|,fullscreen';
	public $buttons2 = 'cut,copy,paste,pastetext,pasteword,|,cleanup,|,bullist,numlist,|,outdent,indent,|,link,unlink,iwpinsertlink,moduleForm,anchor,image,media,table,|,forecolor,backcolor,%%content_pagebreak%%|,code';
	public $buttons3 = '';
	public $buttons4 = '';
	public $width = 700;
	public $resizing = true;
	public $horizontalResizing = true;

	function GetEditorHTML ($elementId){

		$this->template->Assign(array('tinyMCE', 'mode'), $this->mode);
		$this->template->Assign(array('tinyMCE', 'fullUrl'), iwp_config::Get('siteURL') .'/lib/tiny_mce/');
		$this->template->Assign(array('tinyMCE', 'shortUrl'), $this->urls->ForceSlash(iwp_config::Get('appPath'), true, true) .'lib/tiny_mce/');
		$this->template->Assign(array('tinyMCE', 'elementId'), $elementId);
		$this->template->Assign(array('tinyMCE', 'delayLoad'), $this->delayLoad);
		$this->template->Assign(array('tinyMCE', 'readonly'), $this->readonly);
		$this->template->Assign(array('tinyMCE', 'mode'), $this->mode);
		$this->template->Assign(array('tinyMCE', 'width'), $this->width);
		$this->template->Assign(array('tinyMCE', 'resizing'), $this->resizing);
		$this->template->Assign(array('tinyMCE', 'horizontalResizing'), $this->horizontalResizing);
		$this->template->Assign(array('tinyMCE', 'pluginList'), $this->pluginList);

		$this->template->Assign(array('tinyMCE', 'buttons1'), $this->buttons1);

		if ($elementId == 'content') {
			$buttons2 = str_replace('%%content_pagebreak%%', '|,pagebreak,', $this->buttons2);
		} else {
			$buttons2 = str_replace('%%content_pagebreak%%', '', $this->buttons2);
		}

		$this->template->Assign(array('tinyMCE', 'buttons2'), $buttons2);

		$this->template->Assign(array('tinyMCE', 'buttons3'), $this->buttons3);
		$this->template->Assign(array('tinyMCE', 'buttons4'), $this->buttons4);

		//	gzip check taken from tiny_mce_gzip.php
		$encodings = array();
		$supportsGzip = false;

		// Check if it supports gzip
		if (isset($_SERVER['HTTP_ACCEPT_ENCODING']))
			$encodings = explode(',', strtolower(preg_replace("/\s+/", "", $_SERVER['HTTP_ACCEPT_ENCODING'])));

		if ((in_array('gzip', $encodings) || in_array('x-gzip', $encodings) || isset($_SERVER['---------------'])) && function_exists('ob_gzhandler') && !ini_get('zlib.output_compression')) {
			$enc = in_array('x-gzip', $encodings) ? "x-gzip" : "gzip";
			$supportsGzip = true;
		}

		if(iwp_config::Get('disableTinymceGzip')){
			$supportsGzip = false;
		}

		$this->template->Assign(array('tinyMCE', 'useGZIP'), $supportsGzip);

		$dir = $this->template->GetTemplatePath();
		$ext = $this->template->GetExtension();

		$this->template->SetTemplatePath(dirname(__FILE__), 'html');
		$code = $this->template->ParseTemplate('editor', true);

		$this->template->SetTemplatePath($dir, $ext);

		return $code;
	}

}