Spade
Mini Shell
| Directory:~$ /home/lmsyaran/public_html/joomla4/ |
| [Home] [System Details] [Kill Me] |
PK�"�[�q�I��gateways/nav.phpnu�[���<?php
/**
* This file is part of Joomla Estate Agency - Joomla! extension for real
estate agency
*
* @package Joomla.Administrator
* @subpackage com_jea
* @copyright Copyright (C) 2008 - 2020 PHILIP Sylvain. All rights
reserved.
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
/* @var $displayData array */
$action = $displayData['action'];
$view = $displayData['view'];
?>
<ul class="nav nav-pills">
<li<?php if ($view == 'console') echo '
class="active"' ?>>
<a href="<?php echo
JRoute::_('index.php?option=com_jea&view=gateways&layout='
. $action) ?>">
<span class="icon-play"></span> <?php echo
JText::_('COM_JEA_'. strtoupper($action))?></a>
</li>
<li<?php if ($view == 'gateways') echo '
class="active"' ?>>
<a href="<?php echo
JRoute::_('index.php?option=com_jea&view=gateways&filter[type]='
. $action) ?>">
<span class="icon-list"></span> <?php echo
JText::_('COM_JEA_GATEWAYS')?></a>
</li>
</ul>PK�"�[�y���gateways/consoles.phpnu�[���<?php
/**
* This file is part of Joomla Estate Agency - Joomla! extension for real
estate agency
*
* @package Joomla.Administrator
* @subpackage com_jea
* @copyright Copyright (C) 2008 - 2020 PHILIP Sylvain. All rights
reserved.
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
/* @var $displayData array */
$action = $displayData['action'];
echo JHtml::_('bootstrap.startTabSet',
'consoles-panel', array('active' =>
'console-ajax'));
echo JHtml::_('bootstrap.addTab', 'consoles-panel',
'console-ajax', JText::_('COM_JEA_'.
strtoupper($action) . '_AJAX'));
echo JLayoutHelper::render('jea.gateways.console.ajax',
$displayData);
echo JHtml::_('bootstrap.endTab');
echo JHtml::_('bootstrap.addTab', 'consoles-panel',
'console-cli', JText::_('COM_JEA_'. strtoupper($action)
. '_CLI'));
echo JLayoutHelper::render('jea.gateways.console.cli',
$displayData);
echo JHtml::_('bootstrap.endTab');
echo JHtml::_('bootstrap.endTabSet');
?>
PK�"�[x�Q Q gateways/console/cli.phpnu�[���<?php
/**
* This file is part of Joomla Estate Agency - Joomla! extension for real
estate agency
*
* @package Joomla.Administrator
* @subpackage com_jea
* @copyright Copyright (C) 2008 - 2020 PHILIP Sylvain. All rights
reserved.
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
/* @var $displayData array */
$action = $displayData['action'];
$script = <<<JS
jQuery(document).ready(function($) {
$('#php-interpreter').on('keyup', function(e) {
var text =
$('#cli-command').text().replace(/^[a-zA-Z0-9-_./]+/,
this.value);
$('#cli-command').text(text);
});
$( "#cli-form" ).submit(function(e) {
e.preventDefault();
$('#cli-console').empty();
$('#cli-launch').toggleClass('active');
var token =
$(this).find("input[type='hidden']").attr('name');
var data = {
php_interpreter: $('#php-interpreter').val(),
};
data[''+token] = 1;
$.post($(this).attr('action'), data).done(function(data) {
$('#cli-launch').toggleClass('active');
$("#cli-console").text(data);
});
});
});
JS;
$document = JFactory::getDocument();
$document->addScriptDeclaration($script);
?>
<form action="<?php echo
JRoute::_('index.php?option=com_jea&task=gateways.'. $action)
?>" class="form-horizontal" id="cli-form"
method="post" >
<div class="control-group">
<label for="php-interpreter" class="control-label"
><?php echo JText::_('COM_JEA_FIELD_PHP_INTERPRETER_LABEL')
?></label>
<div class="controls">
<input class="input-small" type="text"
name="php_interpreter" id="php-interpreter"
value="php" />
</div>
</div>
<p><?php echo JText::_('COM_JEA_FIELD_COMMAND_LABEL')
?></p>
<?php if ($action == 'export') :?>
<pre id="cli-command"><?php echo 'php ' .
JPATH_COMPONENT_ADMINISTRATOR . '/cli/gateways.php --export
--basedir="' . JPATH_ROOT . '" --baseurl="' .
JUri::root() . '"' ?></pre>
<?php else: ?>
<pre id="cli-command"><?php echo 'php ' .
JPATH_COMPONENT_ADMINISTRATOR . '/cli/gateways.php --import
--basedir="' . JPATH_ROOT . '"' ?></pre>
<?php endif ?>
<div>
<?php echo JHtml::_('form.token'); ?>
<button type="submit" id="cli-launch"
class="btn btn-success has-spinner">
<span class="spinner"><i class="jea-icon-spin
icon-refresh"></i></span>
<?php echo JText::_('COM_JEA_LAUNCH')?>
</button>
</div>
<pre id="cli-console"
class="console"></pre>
</form>
PK�"�[S2k��gateways/console/ajax.phpnu�[���<?php
/**
* This file is part of Joomla Estate Agency - Joomla! extension for real
estate agency
*
* @package Joomla.Administrator
* @subpackage com_jea
* @copyright Copyright (C) 2008 - 2020 PHILIP Sylvain. All rights
reserved.
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
/* @var $displayData array */
require_once JPATH_COMPONENT_ADMINISTRATOR .
'/gateways/dispatcher.php';
JHTML::script('media/com_jea/js/console.js');
JText::script('COM_JEA_GATEWAY_IMPORT_TIME_REMAINING', true);
JText::script('COM_JEA_GATEWAY_IMPORT_TIME_ELAPSED', true);
$action = $displayData['action'];
$dispatcher = GatewaysEventDispatcher::getInstance();
$dispatcher->loadGateways($action);
$dispatcher->trigger('initWebConsole');
$script = <<<JS
function GatewaysActionDispatcher() {
this.queue = []
this.register = function(action) {
this.queue.push(action)
}
this.nextAction = function()
{
if (this.queue.length > 0) {
var nextAction = this.queue.shift()
nextAction()
}
}
}
jQuery(document).ready(function($) {
var dispatcher = new GatewaysActionDispatcher();
$(this).on('gatewayActionDone', function(e) {
$('#console').append($('<br>'));
if (dispatcher.queue.length == 0) {
$('#ajax-launch').toggleClass('active');
} else {
dispatcher.nextAction();
}
});
$('#ajax-launch').on('click', function(e) {
$(this).toggleClass('active');
$('#console').empty();
$(document).trigger('registerGatewayAction',
[$('#console').console(), dispatcher]);
dispatcher.nextAction();
});
});
JS;
$document = JFactory::getDocument();
$document->addScriptDeclaration($script);
?>
<button id="ajax-launch" class="btn btn-success
has-spinner">
<span class="spinner"><i class="jea-icon-spin
icon-refresh"></i></span>
<?php echo JText::_('COM_JEA_'. strtoupper($action) .
'_LAUNCH')?>
</button>
<div id="console" class="console"></div>
PK�"�[��Gfields/gallery.phpnu�[���<?php
/**
* This file is part of Joomla Estate Agency - Joomla! extension for real
estate agency
*
* @package Joomla.Administrator
* @subpackage com_jea
* @copyright Copyright (C) 2008 - 2020 PHILIP Sylvain. All rights
reserved.
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
/* @var $displayData array */
$uploadNumber = (int) $displayData['uploadNumber'];
$images = $displayData['images'];
$name = $displayData['name'];
JHtml::_('behavior.modal');
JHtml::script('media/com_jea/js/admin/gallery.js');
?>
<p>
<?php for ($i = 0; $i < $uploadNumber; $i ++): ?>
<input type="file" name="newimages[]"
value="" size="30" class="fltnone" />
<br />
<?php endfor?>
</p>
<?php if (!extension_loaded('gd')): // Alert & return if
GD library for PHP is not enabled ?>
<div class="alert alert-warning">
<strong>WARNING: </strong>The <a
href="http://php.net/manual/en/book.image.php"
target="_blank">
GD library for PHP</a> was not found. Ensure to install
it.</div>
<?php return ?>
<?php endif ?>
<ul class="gallery">
<?php foreach ($images as $k => $image): ?>
<li class="item-<?php echo $k ?>">
<?php
if (isset($image->error)){
echo $image->error;
continue;
}
?>
<a href="<?php echo $image->url ?>"
title="Zoom" class="imgLink modal" rel="{handler:
'image'}">
<img src="<?php echo $image->thumbUrl ?>"
alt="<?php echo $image->name ?>" />
</a>
<div class="imgInfos">
<?php echo $image->name ?><br />
<?php echo JText::_('COM_JEA_WIDTH') ?> : <?php echo
$image->width ?> px<br />
<?php echo JText::_('COM_JEA_HEIGHT') ?> : <?php echo
$image->height ?> px<br />
</div>
<div class="imgTools">
<a class="img-move-up" title="<?php echo
JText::_('JLIB_HTML_MOVE_UP') ?>">
<?php echo
JHtml::image('media/com_jea/images/sort_asc.png', "Move
up")?>
</a>
<a class="img-move-down" title="<?php echo
JText::_('JLIB_HTML_MOVE_DOWN') ?>">
<?php echo
JHtml::image('media/com_jea/images/sort_desc.png', "Move
down")?>
</a>
<a class="delete-img" title="<?php echo
JText::_('JACTION_DELETE') ?>">
<?php echo
JHtml::image('media/com_jea/images/media_trash.png',
"Delete")?>
</a>
</div>
<div class="clearfix"></div>
<div class="control-group">
<div class="control-label">
<label for="<?php echo $name . $k ?>title">
<?php echo JText::_('JGLOBAL_TITLE') ?></label>
</div>
<div class="controls">
<input id="<?php echo $name. $k ?>title"
type="text"
name="<?php echo $name?>[<?php echo $k
?>][title]"
value="<?php echo $image->title ?>"
size="20"
/>
</div>
</div>
<div class="control-group">
<div class="control-label">
<label for="<?php echo $name . $k
?>desc"><?php echo JText::_('JGLOBAL_DESCRIPTION')
?></label>
</div>
<div class="controls">
<input id="<?php echo $name. $k ?>desc"
type="text"
name="<?php echo $name?>[<?php echo $k
?>][description]"
value="<?php echo $image->description ?>"
size="40"
/>
<input type="hidden" name="<?php echo
$name?>[<?php echo $k ?>][name]" value="<?php echo
$image->name ?>" />
</div>
</div>
</li>
<?php endforeach?>
</ul>
PK�"�[�q�I��gateways/nav.phpnu�[���PK�"�[�y���$gateways/consoles.phpnu�[���PK�"�[x�Q Q ^gateways/console/cli.phpnu�[���PK�"�[S2k���gateways/console/ajax.phpnu�[���PK�"�[��G�fields/gallery.phpnu�[���PK��&