defined('C5_EXECUTE') or die(_("Access Denied."));
Loader::block('mollify');
class MollifyBlockController extends BlockController {
var $pobj;
protected $btTable = 'btContentLocal';
protected $btInterfaceWidth = "600";
protected $btInterfaceHeight = "465";
public $content = "";
public function getBlockTypeDescription() {
return t("For adding Mollify File Library.");
}
public function getBlockTypeName() {
return t("Mollify");
}
public function __construct($obj = null) {
parent::__construct($obj);
}
public function on_page_view() {
$html = Loader::helper('html');
$this->addHeaderItem("");
$this->addHeaderItem("");
$this->addHeaderItem("");
$this->addHeaderItem($html->javascript('/mollify/client/swfupload.js'));
$this->addHeaderItem($html->javascript('/mollify/client/org.sjarvela.Mollify.nocache.js'));
$this->addHeaderItem($html->javascript('/mollify/client/themes/include/preloadCssImages.jQuery_v5.js'));
$this->addHeaderItem($html->css('/mollify/client/themes/katalysis/style.css'));
}
public function view(){
$this->set('content', $this->content);
}
public function save($data) {
$args['content'] = isset($data['content']) ? $data['content'] : '';
parent::save($args);
}
public function xml_highlight($s){
$s = htmlspecialchars($s);
$s = preg_replace("#<([/]*?)(.*)([\s]*?)>#sU",
"<\\1\\2\\3>",$s);
$s = preg_replace("#<([\?])(.*)([\?])>#sU",
"<\\1\\2\\3>",$s);
$s = preg_replace("#<([^\s\?/=])(.*)([\[\s/]|>)#iU",
"<\\1\\2\\3",$s);
$s = preg_replace("#<([/])([^\s]*?)([\s\]]*?)>#iU",
"<\\1\\2\\3>",$s);
$s = preg_replace("#([^\s]*?)\=("|')(.*)("|')#isU",
"\\1=\\2\\3\\4",$s);
$s = preg_replace("#<(.*)(\[)(.*)(\])>#isU",
"<\\1\\2\\3\\4>",$s);
return nl2br($s);
}
}
?>
Fatal error: Class 'MollifyBlockController' not found in /var/www/vhosts/katalysis.net/httpdocs/concrete/models/block.php on line 122