/** * Initial checks in jUpgrade * * @return none * @since 1.2.0 */ function getParams() { // Initialize jupgrade class $jupgrade = new jUpgrade(); $object = $jupgrade->getParams(); echo json_encode($object); }
* @subpackage com_jupgrade * @copyright Copyright 2006 - 2011 Matias Aguire. All rights reserved. * @license GNU General Public License version 2 or later. * @author Matias Aguirre <*****@*****.**> * @link http://www.matware.com.ar */ define('_JEXEC', 1); define('JPATH_BASE', dirname(__FILE__)); define('DS', DIRECTORY_SEPARATOR); // Includes require_once JPATH_BASE . '/defines_old.php'; require_once JPATH_BASE . '/jupgrade.class.php'; // jUpgrade class $jupgrade = new jUpgrade(); // Getting the component parameter with global settings $params = $jupgrade->getParams(); // Define filenames $sizefile = JPATH_ROOT . '/tmp/size.tmp'; $molajofile = JPATH_ROOT . '/tmp/molajo16.zip'; $joomlafile = JPATH_ROOT . '/tmp/joomla16.zip'; // Cleanup if (file_exists($sizefile)) { unlink($sizefile); } if (file_exists($molajofile)) { unlink($molajofile); } if (file_exists($joomlafile)) { unlink($joomlafile); } // Setting names