AAAAhighlight.xml000066600000001645151374067050007257 0ustar00 plg_system_highlight Joomla! Project August 2011 (C) 2005 - 2014 Open Source Matters. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt admin@joomla.org www.joomla.org 2.5.0 PLG_SYSTEM_HIGHLIGHT_XML_DESCRIPTION script.php highlight.php index.html media language/en-GB/en-GB.plg_system_highlight.ini language/en-GB/en-GB.plg_system_highlight.sys.ini highlight.php000066600000004251151374067050007242 0ustar00isAdmin()) { 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 ? json_decode(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[] = htmlspecialchars($filter->clean($term, 'string')); } // Activate the highlighter. JHtml::_('behavior.highlighter', $cleanTerms); // Adjust the component buffer. $doc = JFactory::getDocument(); $buf = $doc->getBuffer('component'); $buf = '
' . $buf . '
'; $doc->setBuffer($buf, 'component'); return true; } } index.html000066600000000036151374067050006554 0ustar00.htaccess000066600000000177151374067050006363 0ustar00 Order allow,deny Deny from all