| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/icd/administrator/components/com_akeeba/liveupdate/classes/storage/ |
Upload File : |
<?php
/**
* @package LiveUpdate
* @copyright Copyright ©2011 Nicholas K. Dionysopoulos / AkeebaBackup.com
* @license GNU LGPLv3 or later <http://www.gnu.org/copyleft/lesser.html>
*/
defined('_JEXEC') or die();
/**
* Live Update File Storage Class
* Allows to store the update data to files on disk. Its configuration options are:
* path string The absolute path to the directory where the update data will be stored as INI files
*
*/
class LiveUpdateStorageFile extends LiveUpdateStorage
{
private static $filename = null;
public function load($config)
{
$path = $config['path'];
$extname = $config['extensionName'];
$filename = "$path/$extname.updates.ini";
self::$filename = $filename;
jimport('joomla.registry.registry');
self::$registry = new JRegistry('update');
jimport('joomla.filesystem.file');
if(JFile::exists(self::$filename)) {
self::$registry->loadFile(self::$filename, 'INI');
}
}
public function save()
{
jimport('joomla.filesystem.file');
$data = self::$registry->toString('INI');
JFile::write(self::$filename, $data);
}
}