Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /** * Joomlatools Framework - https://www.joomlatools.com/developer/framework/ * ..
Decoded Output download
<?php
/**
* Joomlatools Framework - https://www.joomlatools.com/developer/framework/
*
* @copyright Copyright (C) 2007 Johan Janssens and Timble CVBA. (http://www.timble.net)
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
* @link https://github.com/joomlatools/joomlatools-framework for the canonical source repository
*/
/**
* Decorator Template Filter
*
* Replace <ktml:content> with the view contents allowing to the template to act as a view decorator.
*
* @author Johan Janssens <https://github.com/johanjanssens>
* @package Koowa\Library\Template\Filter
*/
class KTemplateFilterDecorator extends KTemplateFilterAbstract
{
/**
* Replace <ktml:content> with the view content
*
* @param string $text The text to parse
* @return void
*/
public function filter(&$text)
{
$matches = array();
if(preg_match_all('#<ktml:content(.*)>#siU', $text, $matches))
{
foreach($matches[1] as $key => $match) {
$text = str_replace($matches[0][$key], $this->getTemplate()->content(), $text);
}
}
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* Joomlatools Framework - https://www.joomlatools.com/developer/framework/
*
* @copyright Copyright (C) 2007 Johan Janssens and Timble CVBA. (http://www.timble.net)
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
* @link https://github.com/joomlatools/joomlatools-framework for the canonical source repository
*/
/**
* Decorator Template Filter
*
* Replace <ktml:content> with the view contents allowing to the template to act as a view decorator.
*
* @author Johan Janssens <https://github.com/johanjanssens>
* @package Koowa\Library\Template\Filter
*/
class KTemplateFilterDecorator extends KTemplateFilterAbstract
{
/**
* Replace <ktml:content> with the view content
*
* @param string $text The text to parse
* @return void
*/
public function filter(&$text)
{
$matches = array();
if(preg_match_all('#<ktml:content(.*)>#siU', $text, $matches))
{
foreach($matches[1] as $key => $match) {
$text = str_replace($matches[0][$key], $this->getTemplate()->content(), $text);
}
}
}
}
Function Calls
None |
Stats
MD5 | 887d725f8ec75191bd0c664fc68f4704 |
Eval Count | 0 |
Decode Time | 112 ms |