Spade

Mini Shell

Directory:~$ /home/lmsyaran/public_html/joomla4/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ /home/lmsyaran/public_html/joomla4/hikamarketoverrides.tar

hikamarketoverrides.php000064400000003547151160537470011342
0ustar00<?php
/**
 * @package    HikaMarket for Joomla!
 * @version    3.1.1
 * @author     Obsidev S.A.R.L.
 * @copyright  (C) 2011-2020 OBSIDEV. All rights reserved.
 * @license    GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?><?php
if(!defined('DS'))
	define('DS', DIRECTORY_SEPARATOR);
jimport('joomla.plugin.plugin');
class plgSystemHikamarketoverrides extends JPlugin {
	public function __construct(&$subject, $config) {
		parent::__construct($subject, $config);
		$this->init();
	}

	private function init() {
		static $init = null;
		if($init !== null)
			return;
		$init = true;

		$hikashopHelper =
rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php';
		$marketHelper =
rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikamarket'.DS.'helpers'.DS.'helper.php';
		if(!file_exists($hikashopHelper) || !file_exists($marketHelper))
			return;

		$db = JFactory::getDBO();
		$db->setQuery('SELECT config_value FROM #__hikashop_config WHERE
config_namekey = ' . $db->Quote('version'));
		$version = $db->loadResult();

		jimport('joomla.filesystem.folder');

		$path =
rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikamarket'.DS.'overrides'.DS.$version.DS;
		if(!JFolder::exists($path))
			return;

		$allFiles = JFolder::files($path);
		if(empty($allFiles))
			return;
		include_once $hikashopHelper;
		foreach($allFiles as $oneFile) {
			if(substr($oneFile, -4) != '.php')
				continue;
			if(substr($oneFile, 0, 6) == 'class.') {
				$originalFile =
rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'classes'.DS.substr($oneFile,
6);
				if(file_exists($originalFile)) {
					include_once $originalFile;
					include_once $path . $oneFile;
				}
			} else {
				include_once $path . $oneFile;
			}
		}
	}
}
hikamarketoverrides.xml000064400000001351151160537470011342
0ustar00<?xml version="1.0" encoding="utf-8"?>
<extension version="2.5" type="plugin"
method="upgrade" group="system">
	<name>HikaMarket HikaShop overrides</name>
	<creationDate>20 juillet 2020</creationDate>
	<version>3.1.1</version>
	<author>Obsidev</author>
	<authorEmail>dev@obsidev.com</authorEmail>
	<authorUrl>http://www.obsidev.com</authorUrl>
	<copyright>Copyright (C) 2012-2020 OBSIDEV SARL - All rights
reserved.</copyright>
	<license>http://www.gnu.org/licenses/gpl-2.0.html
GNU/GPL</license>
	<description>HikaMarket HikaShop overrides</description>
	<files>
		<filename
plugin="hikamarketoverrides">hikamarketoverrides.php</filename>
	</files>
	<params addpath="/components/com_hikamarket/params">
	</params>
</extension>
index.html000064400000000054151160537470006551 0ustar00<html><body
bgcolor="#FFFFFF"></body></html>