Current File : /home/pacjaorg/public_html/kmm/plugins/djclassifiedspayment/djcfpaypal/script.djcfpaypal.php
<?php
/**
 * @package DJ-Classifieds
 * @copyright Copyright (C) DJ-Extensions.com, All rights reserved.
 * @license http://www.gnu.org/licenses GNU/GPL
 * @author url: http://dj-extensions.com
 * @author email contact@dj-extensions.com
 *
 */

defined ( '_JEXEC' ) or die ( 'Restricted access' );

class plgDjclassifiedspaymentDjcfpaypalInstallerScript
{
    function preflight($type, $parent)
	{
        $db = JFactory::getDBO();
        $db->setQuery("UPDATE #__extensions SET element=LOWER(element) WHERE type='plugin' AND folder='djclassifiedspayment' AND element='djcfPaypal'"); // j4 requirement
        $db->execute();
    }

    function postflight($type, $parent)
	{
        include_once(JPATH_ROOT.'/administrator/components/com_djclassifieds/lib/djpayment.php');
        if(method_exists('DJClassifiedsPayment', 'getRidOfTheLegacyPlugin')){
            DJClassifiedsPayment::getRidOfTheLegacyPlugin('djcfPaypal');
        }
    }
}
Site is undergoing maintenance

PACJA Events

Maintenance mode is on

Site will be available soon. Thank you for your patience!