можно ли убрать копирайт из такого кода?
<?php
/**
* @version 1.0
* @copyright ZyX
* @website allforjoomla.ru
* @email
info@litecms.ru
*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport( 'joomla.plugin.plugin' );
class plgSystemSeolinks extends JPlugin{
function plgSystemSeolinks(& $subject, $config){
parent::__construct($subject, $config);
}
function onAfterDispatch(){
$mainframe = & JFactory::getApplication('site');
if($mainframe->isAdmin()) return;
$task = JRequest::getCmd('task','');
if($task=='edit') return;
$document =& JFactory::getDocument();
if($document->getType()!='html') return;
$linx = $this->params->get('linx', '');
$linxCSS = $this->params->get('linx_class', '');
$numRepl = (int)$this->params->get('numRepl', 1);
$numRepl = 1;
if(!($numRepl>0&&$numRepl<=5||($numRepl==99))) $numRepl = 1;
$links = array();
$tmp = explode("\n",$linx);
if(!is_array($tmp)) $tmp = array();
$uri = JURI::getInstance();
$current = $uri->toString();
$current2 = str_replace($uri->root(),'',$current);
$current3 = '/'.$current2;
foreach($tmp as $tmp2){
$tmp2 = trim($tmp2);
if($tmp2==''||!ereg('=',$tmp2)) continue;
$link = explode('=',$tmp2);
$words = trim($link[0]);
array_shift($link);
$href = trim(implode('=',$link));
if($href==''||$words=='') continue;
if($href==$current||$href==$current2||$href==$current3) continue;
$words = str_replace(', ',',',$words);
$words = str_replace(' ,',',',$words);
$words = str_replace(',','|',$words);
$links[] = array(
'words' => addslashes($words),
'href' => $href
);
}
if(count($links)==0) return;
if(is_string($document->_buffer)) $body = $document->_buffer;
else $body = $document->_buffer['component'][''];
if($body!=''){
$body = preg_replace("/(<style)(.*?)(?=<\/style>)(<\/style>)/sie","'<:ZyX>'.plgSystemSeolinks::maskContent('\\1\\2\\3').'<:ZyX/>'",$body);
$body = preg_replace("/(<script)(.*?)(?=<\/script>)(<\/script>)/sie",'"<:ZyX>".plgSystemSeolinks::maskContent("\\1\\2\\3")."<:ZyX/>"',$body);
$body = preg_replace("/(<h[1-6])(.*?)(?=<\/h[1-6]>)(<\/h[1-6]>)/sie","'<:ZyX>'.plgSystemSeolinks::maskContent('\\1\\2\\3').'<:ZyX/>'",$body);
$body = preg_replace("/(<a)(.*?)(?=<\/a>)(<\/a>)/sie","'<:ZyX>'.plgSystemSeolinks::maskContent('\\1\\2\\3').'<:ZyX/>'",$body);
$body = preg_replace("/(<[a-z])(.*?)(?=>)(>)/sie","'<:ZyX>'.plgSystemSeolinks::maskContent('\\1\\2\\3').'<:ZyX/>'",$body);
$searches = array();
$replaces = array();
foreach($links as $link){
$replace = '<a'.($linxCSS!=''?' class="'.$linxCSS.'"':'').' href="'.$link['href'].'">\\2</a>';
if($linxCSS!='') $replace = '<span class="'.$linxCSS.'">'.$replace.'</span>';
$replace = '\\1'.$replace.'\\3';
$searches[] = "/([\s\.\,\;\!\?\:])(".$link['words'].")([\s\.\,\;\!\?\:])/is";
$replaces[] = $replace;
}
$body = preg_replace($searches, $replaces, $body,$numRepl);
$body = preg_replace("/<\:ZyX>(.*?)(?=<\:ZyX\/>)<\:ZyX\/>/sie",'plgSystemSeolinks::unmaskContent("\\1")',$body);
if(!plgSystemSeolinks::checkDomain($this->params->get('domainKey', ''))) $body.= base64_decode('PGRpdiBzdHlsZT0iYm9yZGVyLXRvcDoxcHggc29saWQgI2NjYzt0ZXh0LWFsaWduOnJpZ2h0OyI+PGEgdGFyZ2V0PSJfYmxhbmsiIHRpdGxlPSJzZW9MaW5rcyIgaHJlZj0iaHR0cDovL3d3dy5hbGxmb3Jqb29tbGEucnUiIHN0eWxlPSJ2aXNpYmlsaXR5OnZpc2libGU7ZGlzcGxheTppbmxpbmU7Y29sb3I6I2NjYzsiPnNlb0xpbmtzPC9hPjwvZGl2Pg==');
if($body!='') $document->setBuffer( $body, 'component');
}
}
function checkDomain($key){eval(base64_decode('JGxpdGVDaGVja1N0ciA9ICIzNi4xMDAuMTExLjEwOS45Ny4xMDUuMTEwLjMyLjYxLjMyLjExNS4xMTYuMTE0Ljk1LjExNC4xMDEuMTEyLjEwOC45Ny45OS4xMDE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XZhbFN0ci49IGNocigkbGl0ZUNoZWNrU3RyWyRpXSk7fQ0KZXZhbCgkbGl0ZUV2YWxTdHIpOw=='));return $key==$res;}
function maskContent($txt){
$result = base64_encode($txt);
return $result;
}
function unmaskContent($txt){
$result = stripslashes(base64_decode($txt));
return $result;
}
}