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,76 @@
<?php
/* @package Joomla
* @copyright Copyright (C) Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* @extension Phoca Extension
* @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\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
<?php HTMLHelper::_('behavior.tooltip'); ?>
<form action="index.php" method="post" name="adminForm">
<div class="col60">
<fieldset class="adminform">
<legend><?php echo Text::_( 'Details' ); ?></legend>
<table class="admintable">
<?php
foreach ($this->t['items'] as $value) {
echo '<tr>';
echo '<td class="key">';
echo '<label for="'.$value->title.'" width="100" title="'.Text::_($value->title . ' DESC').'">';
echo Text::_($value->title);
echo '</label>';
echo '</td>';
echo '<td colspan="2">';
switch ($value->type) {
case 'textarea':
echo PhocaDownloadHelper::getTextareaSettings($value->id, $value->title, $value->value);
break;
case 'textareaeditor':
echo PhocaDownloadHelper::getTextareaEditorSettings($value->id, $value->title, $value->value);
break;
case 'select':
echo PhocaDownloadHelper::getSelectSettings($value->id, $value->title, $value->value, $value->values);
break;
case 'text':
default:
if ($value->title == 'absolute_path') {
echo '<div style="color:red;font-weight:bold">' . Text::_('Experts only!'). '</div>';
echo '<div>' . Text::_('Root Path') . ': ' . JPATH_ROOT . '</div>';
}
echo PhocaDownloadHelper::getTextSettings($value->id, $value->title, $value->value);
break;
}
echo '</td>';
echo '</tr>';
}
?>
</table>
</fieldset>
</div>
<div class="clearfix"></div>
<input type="hidden" name="option" value="com_phocadownload" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="controller" value="phocadownloadset" />
<?php echo HTMLHelper::_( 'form.token' ); ?>
</form>

View File

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

View File

@ -0,0 +1,48 @@
<?php
/*
* @package Joomla 1.5
* @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 Component
* @copyright Copyright (C) Jan Pavelka www.phoca.cz
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
*/
defined('_JEXEC') or die();
use Joomla\CMS\MVC\View\HtmlView;
use Joomla\CMS\Uri\Uri;
use Joomla\CMS\Factory;
use Joomla\CMS\Toolbar\ToolbarHelper;
use Joomla\CMS\Language\Text;
jimport( 'joomla.application.component.view' );
class PhocaDownloadCpViewPhocaDownloadset extends HtmlView
{
function display($tpl = null) {
$uri = Uri::getInstance();
$document = Factory::getDocument();
$db = Factory::getDBO();
// Get data from the model
$items = & $this->get( 'Data');
//$this->assignRef('items', $items);
$this->t['items'] = $items;
//$this->assignRef('request_url', $uri->toString());
parent::display($tpl);
$this->_setToolbar();
}
function _setToolbar() {
ToolbarHelper::title( Text::_( 'Phoca Download Settings' ), 'settings.png' );
ToolbarHelper::save();
ToolbarHelper::apply();
ToolbarHelper::cancel( 'cancel', 'Close' );
ToolbarHelper::help( 'screen.phocadownload', true );
}
}
?>