HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/web/itpartnership.net (cms)/modules/TinyMCE/event.Core.ContentPostRender.php
<?php
if( !isset($gCms) ) exit;

$content=$params["content"];

if (!isset($this->cms->siteprefs['frontendwysiwyg']) || !$this->cms->siteprefs['frontendwysiwyg'] ) return;

$uid = get_userid(false);
if( $uid == false )
  {
    if ($this->cms->siteprefs['frontendwysiwyg']!=$this->GetName()) 
      return;
  }
else
  {
    if( get_preference($uid,'wysiwyg') != $this->GetName() )
      return;
  }

$pos=strpos(strtolower($content),"</head");

if ($pos===false) return;
$content=substr($content,0,$pos).$this->WYSIWYGGenerateHeader("",true).substr($content,$pos);
//$_SESSION["microtiny_live_frontend"]="yes";
//		echo "hihihi";die();
$params["content"]=$content;

?>