? GR0V Shell

GR0V shell

Linux www.koreapackagetour.com 2.6.32-042stab145.3 #1 SMP Thu Jun 11 14:05:04 MSK 2020 x86_64

Path : /home/admin/public_html/old/administrator/components/com_roksprocket/
File Upload :
Current File : /home/admin/public_html/old/administrator/components/com_roksprocket/roksprocket_install.script.php

<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');

/**
 * Script file of HelloWorld component
 */
class com_roksprocketInstallerScript
{
    /**
     * method to run after an install/update/uninstall method
     *
     * @param $type
     * @param $parent
     *
     * @return void
     */
    public function postflight($type, $parent)
    {
        $db = JFactory::getDbo();
        // $parent is the class calling this method

        //Remove any old config entries
        $query = $db->getQuery(true);
        $query->delete('#__rokcommon_configs')->where($db->quoteName('extension') . ' = ' . $db->quote('roksprocket'));
        // query extension id and client id
        $db->setQuery($query);
        $db->query();

        $query = $db->getQuery(true);
        $query->insert('#__rokcommon_configs')->columns('extension, type, file, priority');
        $query->values("'roksprocket', 'container', '/components/com_roksprocket/container.xml', 10");
        $query->values("'roksprocket', 'library', '/components/com_roksprocket/lib', 10");
        $db->setQuery($query);
        $db->query();
    }
}

T1KUS90T
  root-grov@210.1.60.28:~$