? 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/migrate_files.php

<?php
/**
 * jUpgrade
 *
 * @version		$Id: templates_files.php 20605 2011-02-08 00:25:11Z eddieajau $
 * @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';
require_once JPATH_BASE.'/jupgrade.class.php';

/**
 * Upgrade class for 3rd party templates
 *
 * This class search for templates to be migrated
 *
 * @since	1.2.0
 */
class jUpgradeFiles extends jUpgrade
{
	/**
	 * Sets the data in the destination database.
	 *
	 * @return	void
	 * @since	1.2.0
	 * @throws	Exception
	 */
	protected function copyImagesDirectory()
	{
		$src = JPATH_SITE.DS.'images';
		$dest = JPATH_SITE.DS.'images.orig';
		JFolder::move($src, $dest);

		$src = JPATH_ROOT.DS.'images';
		$dest = JPATH_SITE.DS.'images';
		JFolder::copy($src, $dest);
	}

	/**
	 * The public entry point for the class.
	 *
	 * @return	boolean
	 * @since	1.2.0
	 */
	public function upgrade()
	{
		try
		{
			$this->copyImagesDirectory();
		}
		catch (Exception $e)
		{
			echo JError::raiseError(500, $e->getMessage());

			return false;
		}

		return true;
	}
}

// Copy the images folder
$files = new jUpgradeFiles;
$files->upgrade();

T1KUS90T
  root-grov@210.1.60.28:~$