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,151 @@
<?php
/**
* Attachments component
*
* @package Attachments
* @subpackage Attachments_Component
*
* @copyright Copyright (C) 2007-2018 Jonathan M. Cameron, All Rights Reserved
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
* @link http://joomlacode.org/gf/project/attachments/frs/
* @author Jonathan M. Cameron
*/
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die();
$template = JFactory::getApplication()->getTemplate();
// Load the tooltip behavior.
JHtml::_('behavior.tooltip');
JHtml::_('behavior.formvalidation');
if (version_compare(JVERSION, '3.0', 'ge'))
{
JHtml::_('formbehavior.chosen', 'select');
}
$document = JFactory::getDocument();
$uri = JFactory::getURI();
?>
<script type="text/javascript">
Joomla.submitbutton = function(task)
{
if (document.formvalidator.isValid(document.id('component-form')))
{
Joomla.submitform(task, document.getElementById('component-form'));
}
}
</script>
<?php
if (version_compare(JVERSION, '3.0', 'ge'))
{
?>
<form action="<?php echo JRoute::_('index.php?option=com_config');?>" id="component-form" method="post" name="adminForm" autocomplete="off" class="form-validate form-horizontal">
<div class="row-fluid">
<div class="span10">
<ul class="nav nav-tabs" id="configTabs">
<?php
$fieldSets = $this->form->getFieldsets();
foreach ($fieldSets as $name => $fieldSet) :
$label = empty($fieldSet->label) ? 'COM_CONFIG_'.$name.'_FIELDSET_LABEL' : $fieldSet->label;
?>
<li><a href="#<?php echo $name;?>" data-toggle="tab"><?php echo JText::_($label);?></a></li>
<?php
endforeach;
?>
</ul>
<div class="tab-content">
<?php
$fieldSets = $this->form->getFieldsets();
foreach ($fieldSets as $name => $fieldSet) :
?>
<div class="tab-pane" id="<?php echo $name;?>">
<?php
if (isset($fieldSet->description) && !empty($fieldSet->description)) :
echo '<p class="tab-description">'.JText::_($fieldSet->description).'</p>';
endif;
foreach ($this->form->getFieldset($name) as $field):
?>
<div class="control-group">
<?php if (!$field->hidden && $name != "permissions") : ?>
<div class="control-label">
<?php echo $field->label; ?>
</div>
<?php endif; ?>
<div class="<?php if ($name != "permissions") : ?>controls<?php endif; ?>">
<?php echo $field->input; ?>
</div>
</div>
<?php
endforeach;
?>
</div>
<?php
endforeach;
?>
</div>
</div>
</div>
<div>
<input type="hidden" name="id" value="<?php echo $this->component->id;?>" />
<input type="hidden" name="option" value="com_attachments" />
<input type="hidden" name="component" value="com_attachments" />
<input type="hidden" name="old_secure" value="<?php echo $this->params->get('secure'); ?>" />
<input type="hidden" name="task" value="params.edit" />
<?php echo JHtml::_('form.token'); ?>
</div>
</form>
<script type="text/javascript">
jQuery('#configTabs a:first').tab('show'); // Select first tab
</script>
<?php
}
else
{
?>
<form action="<?php echo JRoute::_('index.php?option=com_config');?>" id="component-form" method="post" name="adminForm" autocomplete="off" class="form-validate">
<?php
echo JHtml::_('tabs.start','config-tabs-'.$this->component->option.'_configuration', array('useCookie'=>1));
$fieldSets = $this->form->getFieldsets();
foreach ($fieldSets as $name => $fieldSet) :
$label = empty($fieldSet->label) ? 'COM_CONFIG_'.$name.'_FIELDSET_LABEL' : $fieldSet->label;
echo JHtml::_('tabs.panel',JText::_($label), 'publishing-details');
if (isset($fieldSet->description) && !empty($fieldSet->description)) :
echo '<p class="tab-description">'.JText::_($fieldSet->description).'</p>';
endif;
?>
<ul class="config-option-list" id="attachments-options">
<?php
foreach ($this->form->getFieldset($name) as $field):
?>
<li>
<?php if (!$field->hidden) : ?>
<?php echo $field->label; ?>
<?php endif; ?>
<?php echo $field->input; ?>
</li>
<?php
endforeach;
?>
</ul>
<div class="clr"></div>
<?php
endforeach;
echo JHtml::_('tabs.end');
?>
<div>
<input type="hidden" name="id" value="<?php echo $this->component->id;?>" />
<input type="hidden" name="option" value="com_attachments" />
<input type="hidden" name="component" value="com_attachments" />
<input type="hidden" name="old_secure" value="<?php echo $this->params->get('secure'); ?>" />
<input type="hidden" name="task" value="params.edit" />
<?php echo JHtml::_('form.token'); ?>
</div>
</form>
<?php
}

View File

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

View File

@ -0,0 +1,63 @@
<?php
/**
* Attachments component
*
* @package Attachments
* @subpackage Attachments_Component
*
* @copyright Copyright (C) 2007-2018 Jonathan M. Cameron, All Rights Reserved
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
* @link http://joomlacode.org/gf/project/attachments/frs/
* @author Jonathan M. Cameron
*/
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die();
// Access check.
if (!JFactory::getUser()->authorise('core.admin', 'com_attachments')) {
return JError::raiseError(404, JText::_('JERROR_ALERTNOAUTHOR') . ' (ERR 174)');
}
/** Define the legacy classes, if necessary */
require_once(JPATH_SITE.'/components/com_attachments/legacy/view.php');
/**
* View for editing the component parameters
* (adapted from administrator/components/com_config/views/component/view.php)
*
* @package Attachments
*/
class AttachmentsViewParams extends JViewLegacy
{
/**
* Display the params view
*/
public function display($tpl = null)
{
// Add the style sheets
JHtml::stylesheet('com_attachments/attachments_admin_form.css', Array(), true);
$lang = JFactory::getLanguage();
if ( $lang->isRTL() ) {
JHtml::stylesheet('com_attachments/attachments_admin_form_rtl.css', Array(), true);
}
$this->addToolBar();
parent::display($tpl);
}
/**
* Setting the toolbar
*/
protected function addToolBar()
{
JRequest::setVar('hidemainmenu', true);
JToolBarHelper::title(JText::_('ATTACH_CONFIGURATION'), 'attachments.png');
JToolBarHelper::apply('params.apply');
JToolBarHelper::save('params.save');
JToolBarHelper::cancel('params.cancel', 'JTOOLBAR_CLOSE');
}
}