* Copyright (c) 2008-2009 Sergey I. Sharybin <*****@*****.**> * * This program can be distributed under the terms of the GNU GPL. * See the file COPYING. */ global $IFACE; if ($IFACE != "SPAWNING NEW IFACE" || $_GET['IFACE'] != '') { print 'HACKERS?'; die; } if ($_CMLink_ != '#CMLink_Included#') { $_CMLink_ = '#CMLink_Included#'; class CMLink extends CMHeadTag { function CMLink() { $this->SetClassName('CMLink'); } function Init($params) { $this->SetDefaultSettings(); $this->SetClassName('link'); $this->SetSettings(unserialize_params($params)); } function SetDefaultSettings() { $this->SetClassName('CMLink'); } } content_Register_MCClass('CMLink'); }
/** * Gate - Wiki engine and web-interface for WebTester Server * * Virtual class for meta classes * * Copyright (c) 2008-2009 Sergey I. Sharybin <*****@*****.**> * * This program can be distributed under the terms of the GNU GPL. * See the file COPYING. */ global $IFACE; if ($IFACE != "SPAWNING NEW IFACE" || $_GET['IFACE'] != '') { print 'HACKERS?'; die; } if ($_CMVirtual_ != '#CMVirtual_Included#') { $_CMVirtual_ = '#CMVirtual_Included#'; class CMVirtual extends CVCVirtual { function CMVirtual() { $this->SetClassName('CMVirtual'); } function SetDefaultSettings() { $this->SetClassName('CMVirtual'); } } content_Register_MCClass('CMVirtual'); }
$_CMScript_ = '#CMScript_Included#'; class CMScript extends CMHeadTag { var $innerHTML; function CMScript() { $this->SetClassName('CMScript'); } function Init($params, $innerHTML = '') { $this->SetDefaultSettings(); $this->closeTag = true; $this->innerHTML = $innerHTML; $this->SetClassName('script'); $this->SetSettings(unserialize_params($params)); } function SetDefaultSettings() { $this->SetClassName('CMScript'); } function SetSource($src) { $this->innerHTML = $src; } function InnerHTML() { return $this->innerHTML; } } content_Register_MCClass('CMScript'); }
* Copyright (c) 2008-2009 Sergey I. Sharybin <*****@*****.**> * * This program can be distributed under the terms of the GNU GPL. * See the file COPYING. */ global $IFACE; if ($IFACE != "SPAWNING NEW IFACE" || $_GET['IFACE'] != '') { print 'HACKERS?'; die; } if ($_CMMeta_ != '#CMMeta_Included#') { $_CMMeta_ = '#CMMeta_Included#'; class CMMeta extends CMHeadTag { function CMMeta() { $this->SetClassName('CMMeta'); } function Init($params) { $this->SetDefaultSettings(); $this->SetClassName('meta'); $this->SetSettings(unserialize_params($params)); } function SetDefaultSettings() { $this->SetClassName('CMMeta'); } } content_Register_MCClass('CMMeta'); }
function Init($tag, $params, $closeTag = false) { $this->SetDefaultSettings(); $this->tag = $tag; $this->closeTag = $closeTag; $this->SetSettings(unserialize_params($params)); } function SetDefaultSettings() { $this->SetClassName('CMHeadTag'); } function Source() { $result = '<' . $this->GetClassName(); foreach ($this->GetSettings() as $k => $v) { if (trim($v) != '') { $result .= " {$k}=\"{$v}\""; } else { $result .= " {$k}"; } } $result .= '>'; $inner = $this->InnerHTML(); if ($inner != '' || $this->closeTag) { $result = $result . $inner . '</' . $this->GetClassName() . '>'; } return $result; } } content_Register_MCClass('CMHeadTag'); }