Current Path :
/
home
/
zrcdevco
/
public_html
/
zrcprod
/
plugins
/
jamegafilter
/
k2
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/zrcdevco/public_html/zrcprod/plugins/jamegafilter/k2/script.php
<?php /* * ------------------------------------------------------------------------ * JA Filter Plugin - K2 * ------------------------------------------------------------------------ * Copyright (C) 2004-2016 J.O.O.M Solutions Co., Ltd. All Rights Reserved. * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html * Author: J.O.O.M Solutions Co., Ltd * Websites: http://www.joomlart.com - http://www.joomlancers.com * This file may not be redistributed in whole or significant part. * ------------------------------------------------------------------------ */ defined('_JEXEC') or die; class plgJamegafilterK2InstallerScript { function postflight($type, $parent) { $db = JFactory::getDBO(); $query = $db->getQuery(true); $array = array ( $db->quoteName('enabled').'= 1', $db->quoteName('params').'='.$db->quote('{}') ); $query ->update('#__extensions') ->set($array) ->where("type='plugin'") ->where("folder='jamegafilter'") ->where("element='".$parent->get('element')."'"); $db->setQuery($query); $db->execute(); } }