Your IP : 216.73.216.219


Current Path : /home/pteabiscqq/www/plugins/system/quix/
Upload File :
Current File : /home/pteabiscqq/www/plugins/system/quix/installer.php

<?php
/**
 * @package		Quix
 * @author 		ThemeXpert http://www.themexpert.com
 * @copyright	Copyright (c) 2010-2015 ThemeXpert. All rights reserved.
 * @license 	GNU General Public License version 3 or later; see LICENSE.txt
 * @since 		1.0.0
 */

defined('_JEXEC') or die;

class plgSystemQuixInstallerScript
{

	public function postflight($type, $parent)
	{
		
		$db = JFactory::getDbo();
		$query = $db->getQuery(true);

		$fields = array(
			$db->quoteName('enabled') . ' = ' . (int) 1,
			$db->quoteName('ordering') . ' = ' . (int) 9999
		);

		$conditions = array(
			$db->quoteName('element') . ' = ' . $db->quote('quix'),
			$db->quoteName('type') . ' = ' . $db->quote('plugin')
		);

		$query->update($db->quoteName('#__extensions'))->set($fields)->where($conditions);

		$db->setQuery($query);
		$db->execute();


		return true;
	}
}