Sindbad~EG File Manager

Current Path : /home/sarayaglobal/saraya.tw/plugins/installer/webinstaller/
Upload File :
Current File : /home/sarayaglobal/saraya.tw/plugins/installer/webinstaller/webinstaller.script.php

<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Installer.webinstaller
 *
 * @copyright   Copyright (C) 2013 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE
 */

defined('_JEXEC') or die;

/**
 * Support for the "Install from Web" tab
 *
 * @package     Joomla.Plugin
 * @subpackage  System.webinstaller
 * @since       3.2
 */
class plginstallerwebinstallerInstallerScript
{
        public function postflight($route, $adapter)
        {
            $db = JFactory::getDbo();
            $query = 'UPDATE ' . $db->quoteName('#__extensions') . ' SET ' . $db->quoteName('enabled') . ' = 1 WHERE ' . $db->quoteName('type') . ' = ' . $db->quote('plugin') . ' AND ' . $db->quoteName('element') . ' = ' . $db->quote('webinstaller');
            $db->setQuery($query);
            $db->execute();
        }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists