File Manager

Current Path : /webspace/www.babilon.be/html/modules/TinyMCE/
Upload File :
Current File : //webspace/www.babilon.be/html/modules/TinyMCE/event.Core.ContentPostRender.php

<?php
if (!cmsms())  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;

?>

File Manager Version 1.0, Coded By Lucas
Email: hehe@yahoo.com