primo commit

This commit is contained in:
2024-12-17 17:34:10 +01:00
commit e650f8df99
16435 changed files with 2451012 additions and 0 deletions

View File

@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>

View File

@ -0,0 +1,37 @@
<?php
/*
* @package Joomla
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
*
* @component Phoca Gallery
* @copyright Copyright (C) Jan Pavelka www.phoca.cz
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
*/
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\Language\Text;
$currentFolder = '';
if (isset($this->t['state']->folder) && $this->t['state']->folder != '') {
$currentFolder = $this->t['state']->folder;
}
echo '<div class="ph-item-list-box ph-item-list-box-admin">';
echo $this->loadTemplate('up');
if (count($this->t['folders']) > 0) {
for ($i=0,$n=count($this->t['folders']); $i<$n; $i++) {
$this->setFolder($i);
echo $this->loadTemplate('folder');
}
} else {
echo '<div class="ph-item-list-box-head">'.Text::_( 'COM_PHOCAGALLERY_THERE_IS_NO_FOLDER' ).'</div>';
}
echo '</div>';
echo '<div style="clear:both"></div>';
echo PhocaGalleryFileUpload::renderCreateFolder($this->t['session']->getName(), $this->t['session']->getId(), $currentFolder, 'phocagalleryf', 'field='.$this->field);
?>

View File

@ -0,0 +1,25 @@
<?php
/*
* @package Joomla
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
*
* @component Phoca Gallery
* @copyright Copyright (C) Jan Pavelka www.phoca.cz
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
*/
use Joomla\CMS\Language\Text;
defined('_JEXEC') or die('Restricted access'); ?>
<div class="ph-item-box">
<div class="ph-item-image"><a title="<?php echo $this->_tmp_folder->name ?>" href="index.php?option=com_phocagallery&amp;view=phocagalleryf&amp;tmpl=component&amp;folder=<?php echo $this->_tmp_folder->path_with_name_relative_no; ?>&amp;field=<?php echo $this->field; ?>"><span class="ph-cp-item"><i class="phi duotone phi-fs-l phi-fc-brd icon-folder-close"></i></span></a></div>
<div class="ph-item-name"><a title="<?php echo $this->_tmp_folder->name ?>" href="index.php?option=com_phocagallery&amp;view=phocagalleryf&amp;tmpl=component&amp;folder=<?php echo $this->_tmp_folder->path_with_name_relative_no; ?>&amp;field=<?php echo $this->field; ?>"><span><?php echo PhocagalleryText::WordDelete($this->_tmp_folder->name, 15); ?></span></a></div>
<div class="ph-item-action-box">
<a href="#" onclick="if (window.parent) window.parent.<?php echo $this->fce; ?>('<?php echo $this->_tmp_folder->path_with_name_relative_no; ?>');" title="<?php echo Text::_('COM_PHOCAGALLERY_INSERT_FOLDER') ?>"><span class="ph-cp-item"><i class="phi duotone phi-fs-m phi-fc-gd icon-download"></i></span></a></div>
</div>

View File

@ -0,0 +1,19 @@
<?php
/*
* @package Joomla
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
*
* @component Phoca Gallery
* @copyright Copyright (C) Jan Pavelka www.phoca.cz
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
*/
defined('_JEXEC') or die('Restricted access'); ?>
<div class="ph-item-box">
<div class="ph-item-image"><a href="index.php?option=com_phocagallery&amp;view=phocagalleryf&amp;tmpl=component&amp;folder=<?php echo PhocaGalleryText::filterValue($this->t['state']->parent, 'folderpath'); ?>&amp;field=<?php echo htmlspecialchars($this->field); ?>" ><span class="ph-cp-item"><i class="phi duotone phi-fs-l phi-fc-bl icon-arrow-up"></i></span></a></div>
<div class="ph-item-name"><a href="index.php?option=com_phocagallery&amp;view=phocagalleryf&amp;tmpl=component&amp;folder=<?php echo PhocaGalleryText::filterValue($this->t['state']->parent, 'folderpath'); ?>&amp;field=<?php echo htmlspecialchars($this->field); ?>" >..</a></div>
<div class="ph-item-action-box"></div>
</div>

View File

@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>

View File

@ -0,0 +1,64 @@
<?php
/*
* @package Joomla.Framework
* @copyright Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*
* @component Phoca Component
* @copyright Copyright (C) Jan Pavelka www.phoca.cz
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License version 2 or later;
*/
defined('_JEXEC') or die();
use Joomla\CMS\MVC\View\HtmlView;
use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\Factory;
use Joomla\CMS\Object\CMSObject;
jimport( 'joomla.application.component.view');
class PhocaGalleryCpViewPhocagalleryF extends HtmlView
{
protected $field;
protected $fce;
protected $t;
protected $r;
public function display($tpl = null) {
$params = ComponentHelper::getParams( 'com_phocagallery' );
$app = Factory::getApplication();
$app->allowCache(false);
$this->t = PhocaGalleryUtils::setVars('f');
$this->r = new PhocaGalleryRenderAdminview();
$document = Factory::getDocument();
$path = PhocaGalleryPath::getPath();
$this->field = Factory::getApplication()->input->get('field');
$this->fce = 'phocaSelectFolder_'.$this->field;
/*$this->assignRef('session', JFactory::getSession());
$this->assign('path_orig_rel', $path->image_rel);
$this->assignRef('folders', $this->get('folders'));
$this->assignRef('state', $this->get('state'));*/
$this->t['session'] = Factory::getSession();
$this->t['path_orig_rel'] = $path->image_rel;
$this->t['folders'] = $this->get('folders');
$this->t['state'] = $this->get('state');
parent::display($tpl);
}
protected function setFolder($index = 0) {
if (isset($this->t['folders'][$index])) {
$this->_tmp_folder = $this->t['folders'][$index];
} else {
$this->_tmp_folder = new CMSObject;
}
}
}
?>