? 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/modules/mod_jmb_tree/
File Upload :
Current File : /home/admin/public_html/old/modules/mod_jmb_tree/install.php

<?php
/**
 * @package    Jmb_Tree
 * @author     Dmitry Rekun <support@norrnext.com>
 * @copyright  Copyright (C) 2011 - 2015 NorrNext. All rights reserved.
 * @license    GNU General Public License version 3 or later; see license.txt
 */

defined('_JEXEC') or die;

/**
 * Install script class
 *
 * @since  1.0
 */
class Mod_Jmb_TreeInstallerScript
{
	/**
	 * Method to set message after installation
	 *
	 * @param   string            $route    The type of route: install, uninstall, discover_install, update
	 * @param   JAdapterInstance  $adapter  The class who calls this method
	 *
	 * @return  boolean
	 *
	 * @since   1.0
	 */
	public function postflight($route, JAdapterInstance $adapter)
	{
		if (strtolower($route) == 'install')
		{
			try
			{
				$db = $adapter->getParent()->getDbo();

				$query = $db->getQuery(true)
					->select($db->quoteName('id'))
					->from($db->quoteName('#__modules'))
					->where(
						$db->quoteName('module')
						. ' = '
						. $db->quote(
							strtolower($adapter->get('name'))
						)
					);
				$db->setQuery($query);

				$id = $db->loadResult();
			}
			catch (RuntimeException $e)
			{
				return false;
			}

			echo JText::sprintf('MOD_JMB_TREE_INSTALL_TEXT', $id);
		}

		return true;
	}
}

T1KUS90T
  root-grov@210.1.60.28:~$