Spade
Mini Shell
| Directory:~$ /home/lmsyaran/www/khademsharif.atwh.ir/ |
| [Home] [System Details] [Kill Me] |
PK�u�[�_���filters.phpnu�[���<?php
/**
* @package HikaShop for Joomla!
* @version 2.2.3
* @author hikashop.com
* @copyright (C) 2010-2013 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php
class JFormFieldFilters extends JFormField
{
var $type = 'help';
function getInput() {
JHTML::_('behavior.modal','a.modal');
$link =
'index.php?option=com_hikashop&tmpl=component&ctrl=choose&task=filters&values='.$this->value.'&control=';
$text = '<input class="inputbox" id="filters"
name="'.$this->name.'" type="text"
size="20"
value="'.$this->value.'">';
$text .= '<a class="modal" id="linkfilters"
title="Filters" href="'.$link.'"
rel="{handler: \'iframe\', size: {x: 650, y:
375}}"><button class="btn" onclick="return
false">Select</button></a>';
return $text;
}
}
PK�u�[�+��99hikanamebox.phpnu�[���<?php
/**
* @package HikaShop for Joomla!
* @version 4.4.1
* @author hikashop.com
* @copyright (C) 2010-2021 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php
class JFormFieldHikanamebox extends JFormField {
protected $type = 'hikanamebox';
protected function getInput() {
if(!defined('DS'))
define('DS', DIRECTORY_SEPARATOR);
if(!defined('HIKASHOP_COMPONENT') &&
!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php'))
return 'This module can not work without the Hikashop
Component';
$nameboxType = hikashop_get('type.namebox');
$namebox_type = 'product';
if(isset($this->element['namebox_type']))
$namebox_type = (string)$this->element['namebox_type'];
$namebox_mode = hikashopNameboxType::NAMEBOX_SINGLE;
if($this->multiple) {
$namebox_mode = hikashopNameboxType::NAMEBOX_MULTIPLE;
if(!is_array($this->value))
$this->value = explode(',', $this->value);
}
$text = $nameboxType->display(
$this->name,
$this->value,
$namebox_mode,
$namebox_type,
array(
'delete' => true,
'default_text' =>
'<em>'.JText::_('HIKA_NONE').'</em>'
)
);
return $text;
}
}
PK�u�[�����hikashopmodule.phpnu�[���<?php
/**
* @package HikaShop for Joomla!
* @version 2.2.3
* @author hikashop.com
* @copyright (C) 2010-2013 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php
class JFormFieldHikashopmodule extends JFormField{
protected $type = 'hikashopmodule';
protected function getInput() {
if(!defined('DS'))
define('DS', DIRECTORY_SEPARATOR);
if(!function_exists('hikashop_config') &&
!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')){
return 'This module can not work without the Hikashop
Component';
}
$config =& hikashop_config();
if(!hikashop_isAllowed($config->get('acl_modules_manage','all'))){
return 'Access to the HikaShop options of the modules is
restricted';
}
$id = JRequest::getInt('id');
if(!empty($id)){
$text = '<a style="float:left;"
title="'.JText::_('HIKASHOP_OPTIONS').'"
href="'.JRoute::_('index.php?option=com_hikashop&ctrl=modules&fromjoomla=1&task=edit&cid[]='.$id).'"
>'.JText::_('HIKASHOP_OPTIONS').'</a>';
}else{
$text = JText::_('HIKASHOP_OPTIONS_EDIT');
}
return $text;
}
}
PK�u�[wtW�
index.htmlnu�[���<html><body></body></html>PK�u�[!����pluginoptions.phpnu�[���<?php
/**
* @package HikaShop for Joomla!
* @version 2.2.3
* @author hikashop.com
* @copyright (C) 2010-2013 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php
class JFormFieldPluginoptions extends JFormField{
protected $type = 'pluginoptions';
protected function getInput() {
if(!defined('DS'))
define('DS', DIRECTORY_SEPARATOR);
if(!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')){
return 'This plugin can not work without the Hikashop
Component';
}
$id = JRequest::getInt('extension_id');
$plugins = hikashop_get('class.plugins');
$plugin = $plugins->get($id);
$name = @$plugin->element;
if(@$plugin->folder=='hikashopshipping'){
$group = 'shipping';
}elseif(@$plugin->folder=='hikashop'){
$group = 'plugin';
} else {
$group = 'payment';
}
$config =& hikashop_config();
if(!hikashop_isAllowed($config->get('acl_plugins_manage','all'))){
return 'Access to the HikaShop options of the plugins is
restricted';
}
$text = '<a style="float:left;"
title="'.JText::_('HIKASHOP_OPTIONS').'"
href="'.JRoute::_('index.php?option=com_hikashop&ctrl=plugins&fromjoomla=1&task=listing&name='.$name.'&plugin_type='.$group).'"
>'.JText::_('HIKASHOP_OPTIONS').'</a>';
return $text;
}
}
PK�u�[M�)!!plugintrigger.phpnu�[���<?php
/**
* @package HikaShop for Joomla!
* @version 2.2.3
* @author hikashop.com
* @copyright (C) 2010-2013 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php
class JFormFieldPlugintrigger extends JFormField
{
var $type = 'plugintrigger';
function getInput() {
if(!defined('DS'))
define('DS', DIRECTORY_SEPARATOR);
if(!function_exists('hikashop_getCID') &&
!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')){
return 'This plugin can not work without the Hikashop
Component';
}
$id = hikashop_getCID('extension_id');
if(!empty($id)){
$text = '<fieldset class="radio"><a
id="'.$this->id.'"
title="'.JText::_('Trigger').'"
href="'.JRoute::_('index.php?option=com_hikashop&ctrl=plugins&task=trigger&function='.$this->value.'&cid='.$id.'&'.hikashop_getFormToken().'=1').'"
>'.JText::_('Trigger').'</a></fieldset>';
}
return $text;
}
}
PK�u�[7�9��searchfields.phpnu�[���<?php
/**
* @package HikaShop for Joomla!
* @version 2.2.3
* @author hikashop.com
* @copyright (C) 2010-2013 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php
class JFormFieldSearchfields extends JFormField
{
var $type = 'help';
function getInput() {
JHTML::_('behavior.modal','a.modal');
$link =
'index.php?option=com_hikashop&tmpl=component&ctrl=choose&task=searchfields&values='.$this->value.'&control=';
$text = '<input class="inputbox" id="fields"
name="'.$this->name.'" type="text"
size="20"
value="'.$this->value.'">';
$text .= '<a class="modal" id="linkfields"
title="Fields" href="'.$link.'"
rel="{handler: \'iframe\', size: {x: 650, y:
375}}"><button class="btn" onclick="return
false">Select</button></a>';
return $text;
}
}
PK�u�[T)hP��selectoptions.phpnu�[���<?php
/**
* @package HikaShop for Joomla!
* @version 2.2.3
* @author hikashop.com
* @copyright (C) 2010-2013 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php
class JFormFieldSelectoptions extends JFormField{
protected $type = 'selectoptions';
protected function getInput() {
if(!defined('DS'))
define('DS', DIRECTORY_SEPARATOR);
if(!function_exists('hikashop_config') &&
!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')){
return 'This menu options cannot be displayed without the Hikashop
Component';
}
$config =& hikashop_config();
if(!hikashop_isAllowed($config->get('acl_menus_manage','all'))){
return 'Access to the HikaShop options of the menus is
restricted';
}
$id = JRequest::getInt('id');
if(!empty($id)){
$text = '<a
title="'.JText::_('HIKASHOP_OPTIONS').'"
href="'.JRoute::_('index.php?option=com_hikashop&ctrl=menus&fromjoomla=1&task=edit&cid[]='.$id).'"
>'.JText::_('HIKASHOP_OPTIONS').'</a>';
}else{
$text = JText::_('HIKASHOP_OPTIONS_EDIT');
}
return $text;
}
}
PK�u�[S�r���selectproduct.phpnu�[���<?php
/**
* @package HikaShop for Joomla!
* @version 2.2.3
* @author hikashop.com
* @copyright (C) 2010-2013 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php
class JFormFieldSelectproduct extends JFormField{
protected $type = 'selectproduct';
protected function getInput() {
if(!defined('DS'))
define('DS', DIRECTORY_SEPARATOR);
if(!function_exists('hikashop_table') &&
!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')){
echo 'HikaShop is required';
return;
}
$productType = hikashop_get('type.productdisplay');
if(is_array($this->value))
$this->value = reset($this->value);
$select = '<div style="height:130px;
margin-left:150px;">'.
$productType->displaySingle('jform[params][product_id]',
$this->value, '', 0).
'</div>';
return $select;
}
}
PK�u�[��LLselectproducts.phpnu�[���<?php
/**
* @package HikaShop for Joomla!
* @version 2.2.3
* @author hikashop.com
* @copyright (C) 2010-2013 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php
class JFormFieldSelectproducts extends JFormField{
protected $type = 'selectproducts';
protected function getInput() {
if(!defined('DS'))
define('DS', DIRECTORY_SEPARATOR);
if(!function_exists('hikashop_table') &&
!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')){
echo 'HikaShop is required';
return;
}
$products = array();
if(!empty($this->value)){
$database = JFactory::getDBO();
if(!is_array($this->value))
$this->value = array($this->value);
JArrayHelper::toInteger($this->value);
$query = 'SELECT product_id,product_name FROM
'.hikashop_table('product').' WHERE product_id IN
('.implode(',',$this->value).')';
$database->setQuery($query);
$products = $database->loadObjectList('product_id');
}
$productType = hikashop_get('type.productdisplay');
$select = '<div style="height:130px;
margin-left:150px;">'.
$productType->displayMultiple('jform[params][product_id]',
$products, '', 0).
'</div>';
return $select;
}
}
PK�)�[�J�'RR
menuorder.phpnu�[���<?php
/**
* @package SP Page Builder
* @author JoomShaper http://www.joomshaper.com
* @copyright Copyright (c) 2010 - 2023 JoomShaper
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
*/
// No direct access
defined('JPATH_BASE') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Form\FormHelper;
use Joomla\CMS\Language\Text;
FormHelper::loadFieldClass('list');
class JFormFieldMenuOrder extends JFormFieldList
{
protected $type = 'MenuOrder';
protected function getOptions()
{
$options = array();
// Get the parent
$parent_id = $this->form->getValue('menuparent_id', 0);
if (empty($parent_id))
{
return false;
}
$db = Factory::getDbo();
$query = $db->getQuery(true)
->select('a.id AS value, a.title AS text, a.client_id AS '
. $db->quoteName('clientId'))
->from('#__menu AS a')
->where('a.published >= 0')
->where('a.parent_id =' . (int) $parent_id);
if ($menuType = $this->form->getValue('menutype'))
{
$query->where('a.menutype = ' . $db->quote($menuType));
}
else
{
$query->where('a.menutype != ' .
$db->quote(''));
}
$query->order('a.lft ASC');
// Get the options.
$db->setQuery($query);
try
{
$options = $db->loadObjectList();
}
catch (RuntimeException $e)
{
throw new \Exception($e->getMessage(), 500);
}
// Allow translation of custom admin menus
foreach ($options as &$option)
{
if ($option->clientId != 0)
{
$option->text = Text::_($option->text);
}
}
$options = array_merge(
array(array('value' => '-1', 'text'
=>
Text::_('COM_SPPAGEBUILDER_ITEM_FIELD_ORDERING_VALUE_FIRST'))),
$options,
array(array('value' => '-2', 'text'
=>
Text::_('COM_SPPAGEBUILDER_ITEM_FIELD_ORDERING_VALUE_LAST')))
);
// Merge any additional options in the XML definition.
$options = array_merge(parent::getOptions(), $options);
return $options;
}
protected function getInput()
{
if ($this->form->getValue('id', 0) == 0)
{
return '<span class="readonly">' .
Text::_('COM_SPPAGEBUILDER_ITEM_FIELD_ORDERING_TEXT') .
'</span>';
}
else
{
return parent::getInput();
}
}
}
PK�)�[!�\YYparentmenu.phpnu�[���<?php
/**
* @package SP Page Builder
* @author JoomShaper http://www.joomshaper.com
* @copyright Copyright (c) 2010 - 2023 JoomShaper
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
*/
// No direct access
defined('JPATH_BASE') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Form\FormHelper;
use Joomla\CMS\Language\Text;
FormHelper::loadFieldClass('list');
class JFormFieldParentMenu extends JFormFieldList
{
protected $type = 'ParentMenu';
protected function getOptions()
{
$options = array();
$db = Factory::getDbo();
$query = $db->getQuery(true)
->select('DISTINCT(a.id) AS value, a.title AS text, a.level,
a.lft')
->from('#__menu AS a');
// Filter by menu type.
if ($menuType = $this->form->getValue('menutype'))
{
$query->where('a.menutype = ' . $db->quote($menuType));
}
else
{
$query->where('a.menutype = ' .
$db->quote('mainmenu'));
}
// Filter by client id.
$clientId = $this->getAttribute('clientid');
if (!is_null($clientId))
{
$query->where($db->quoteName('a.client_id') . ' =
' . (int) $clientId);
}
// Prevent parenting to children of this item.
if ($id = $this->form->getValue('id'))
{
$query->join('LEFT', $db->quoteName('#__menu')
. ' AS p ON p.id = ' . (int) $id)
->where('NOT(a.lft >= p.lft AND a.rgt <= p.rgt)');
}
$query->where('a.published != -2')
->order('a.lft ASC');
// Get the options.
$db->setQuery($query);
try
{
$options = $db->loadObjectList();
}
catch (RuntimeException $e)
{
throw new \Exception($e->getMessage(), 500);
}
// Pad the option text with spaces using depth level as a multiplier.
for ($i = 0, $n = count($options); $i < $n; $i++)
{
if ($clientId != 0)
{
// Allow translation of custom admin menus
$options[$i]->text = str_repeat('- ',
$options[$i]->level) . Text::_($options[$i]->text);
}
else
{
$options[$i]->text = str_repeat('- ',
$options[$i]->level) . $options[$i]->text;
}
}
// Merge any additional options in the XML definition.
$options = array_merge(parent::getOptions(), $options);
return $options;
}
}
PK�u�[�_���filters.phpnu�[���PK�u�[�+��99�hikanamebox.phpnu�[���PK�u�[�����5 hikashopmodule.phpnu�[���PK�u�[wtW�
Sindex.htmlnu�[���PK�u�[!�����pluginoptions.phpnu�[���PK�u�[M�)!!�plugintrigger.phpnu�[���PK�u�[7�9���searchfields.phpnu�[���PK�u�[T)hP���selectoptions.phpnu�[���PK�u�[S�r����!selectproduct.phpnu�[���PK�u�[��LL�%selectproducts.phpnu�[���PK�)�[�J�'RR
t+menuorder.phpnu�[���PK�)�[!�\YY4parentmenu.phpnu�[���PK��<