File manager - Edit - /home/ferretapmx/public_html/edit.tar
Back
admin_modules.php 0000644 00000002377 15231057075 0010113 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\Helper\ModuleHelper; $app = Factory::getApplication(); $form = $displayData->getForm(); $input = $app->getInput(); $fields = $displayData->get('fields') ?: [ ['parent', 'parent_id'], ['published', 'state', 'enabled'], ['category', 'catid'], 'featured', 'sticky', 'access', 'language', 'tags', 'note', 'version_note', ]; $hiddenFields = $displayData->get('hidden_fields') ?: []; if (!ModuleHelper::isAdminMultilang()) { $hiddenFields[] = 'language'; $form->setFieldAttribute('language', 'default', '*'); } $html = []; $html[] = '<fieldset class="form-vertical">'; foreach ($fields as $field) { foreach ((array) $field as $f) { if ($form->getField($f)) { if (in_array($f, $hiddenFields)) { $form->setFieldAttribute($f, 'type', 'hidden'); } $html[] = $form->renderField($f); break; } } } $html[] = '</fieldset>'; echo implode('', $html); associations.php 0000644 00000002262 15231057075 0007763 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\Language\Text; $form = $displayData->getForm(); $options = [ 'formControl' => $form->getFormControl(), 'hidden' => (int) ($form->getValue('language', null, '*') === '*'), ]; // Load JavaScript message titles Text::script('ERROR'); Text::script('WARNING'); Text::script('NOTICE'); Text::script('MESSAGE'); Text::script('SUCCESS'); Text::script('JGLOBAL_ASSOC_NOT_POSSIBLE'); Text::script('JGLOBAL_ASSOCIATIONS_RESET_WARNING'); /** @var \Joomla\CMS\Document\HtmlDocument $doc */ $doc = Factory::getApplication()->getDocument(); $wa = $doc->getWebAssetManager(); $wa->getRegistry()->addExtensionRegistryFile('com_associations'); $wa->useScript('com_associations.associations-edit'); $doc->addScriptOptions('system.associations.edit', $options); // JLayout for standard handling of associations fields in the administrator items edit screens. echo $form->renderFieldset('item_associations'); metadata.php 0000644 00000002353 15231057075 0007045 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Language\Text; $form = $displayData->getForm(); // JLayout for standard handling of metadata fields in the administrator content edit screens. $fieldSets = $form->getFieldsets('metadata'); ?> <?php foreach ($fieldSets as $name => $fieldSet) : ?> <?php if (isset($fieldSet->description) && trim($fieldSet->description)) : ?> <div class="alert alert-info"> <span class="icon-info-circle" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('INFO'); ?></span> <?php echo $this->escape(Text::_($fieldSet->description)); ?> </div> <?php endif; ?> <?php // Include the real fields in this panel. if ($name === 'jmetadata') { echo $form->renderField('metadesc'); echo $form->renderField('metakey'); } foreach ($form->getFieldset($name) as $field) { if ($field->name !== 'jform[metadata][tags][]') { echo $field->renderField(); } } ?> <?php endforeach; ?> title_alias.php 0000644 00000001177 15231057075 0007562 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $form = $displayData->getForm(); $title = $form->getField('title') ? 'title' : ($form->getField('name') ? 'name' : ''); ?> <div class="row title-alias form-vertical mb-3"> <div class="col-12 col-md-6"> <?php echo $title ? $form->renderField($title) : ''; ?> </div> <div class="col-12 col-md-6"> <?php echo $form->renderField('alias'); ?> </div> </div> frontediting_modules.php 0000644 00000006042 15231057075 0011510 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Component\ComponentHelper; use Joomla\CMS\Factory; use Joomla\CMS\Language\Text; use Joomla\CMS\Uri\Uri; // JLayout for standard handling of the edit modules: $moduleHtml = &$displayData['moduleHtml']; $mod = $displayData['module']; $position = $displayData['position']; $menusEditing = $displayData['menusediting']; $parameters = ComponentHelper::getParams('com_modules'); $redirectUri = '&return=' . urlencode(base64_encode(Uri::getInstance()->toString())); $target = '_blank'; $itemid = Factory::getApplication()->getInput()->get('Itemid', '0', 'int'); $editUrl = Uri::base() . 'administrator/index.php?option=com_modules&task=module.edit&id=' . (int) $mod->id; // If Module editing site if ($parameters->get('redirect_edit', 'site') === 'site') { $editUrl = Uri::base() . 'index.php?option=com_config&view=modules&id=' . (int) $mod->id . '&Itemid=' . $itemid . $redirectUri; $target = '_self'; } // Add link for editing the module $count = 0; $moduleHtml = preg_replace( // Find first tag of module '/^(\s*<(?:div|span|nav|ul|ol|h\d|section|aside|address|article|form) [^>]*>)/', // Create and add the edit link and tooltip '\\1 <a class="btn btn-link jmodedit" href="' . $editUrl . '" target="' . $target . '" aria-describedby="tip-' . (int) $mod->id . '"> <span class="icon-edit" aria-hidden="true"></span><span class="visually-hidden">' . Text::_('JGLOBAL_EDIT') . '</span></a> <div role="tooltip" id="tip-' . (int) $mod->id . '">' . Text::_('JLIB_HTML_EDIT_MODULE') . '<br>' . htmlspecialchars($mod->title, ENT_COMPAT, 'UTF-8') . '<br>' . sprintf(Text::_('JLIB_HTML_EDIT_MODULE_IN_POSITION'), htmlspecialchars($position, ENT_COMPAT, 'UTF-8')) . '</div>', $moduleHtml, 1, $count ); // If menu editing is enabled and allowed and it's a menu module add link for editing if ($menusEditing && $mod->module === 'mod_menu') { // find the menu item id $regex = '/\bitem-(\d+)\b/'; preg_match_all($regex, $moduleHtml, $menuItemids); if ($menuItemids) { foreach ($menuItemids[1] as $menuItemid) { $menuitemEditUrl = Uri::base() . 'administrator/index.php?option=com_menus&view=item&client_id=0&layout=edit&id=' . (int) $menuItemid; $moduleHtml = preg_replace( // Find the link '/(<li\b[^>]*\bitem-' . $menuItemid . '\b[^>]*>)/', // Create and add the edit link '\\1 <a class="jmenuedit small" href="' . $menuitemEditUrl . '" target="' . $target . '" title="' . Text::_('JLIB_HTML_EDIT_MENU_ITEM') . ' ' . sprintf(Text::_('JLIB_HTML_EDIT_MENU_ITEM_ID'), (int) $menuItemid) . '"> <span class="icon-edit" aria-hidden="true"></span></a> ', $moduleHtml ); } } } publishingdata.php 0000644 00000001730 15231057075 0010261 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $form = $displayData->getForm(); $fields = $displayData->get('fields') ?: [ 'publish_up', 'publish_down', 'featured_up', 'featured_down', ['created', 'created_time'], ['created_by', 'created_user_id'], 'created_by_alias', ['modified', 'modified_time'], ['modified_by', 'modified_user_id'], 'version', 'hits', 'id' ]; $hiddenFields = $displayData->get('hidden_fields') ?: []; foreach ($fields as $field) { foreach ((array) $field as $f) { if ($form->getField($f)) { if (in_array($f, $hiddenFields)) { $form->setFieldAttribute($f, 'type', 'hidden'); } echo $form->renderField($f); break; } } } fieldset.php 0000644 00000002377 15231057075 0007072 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Factory; $app = Factory::getApplication(); $form = $displayData->getForm(); $name = $displayData->get('fieldset'); $fieldSet = $form->getFieldset($name); if (empty($fieldSet)) { return; } $ignoreFields = $displayData->get('ignore_fields') ? : []; $extraFields = $displayData->get('extra_fields') ? : []; if (!empty($displayData->showOptions) || $displayData->get('show_options', 1)) { if (isset($extraFields[$name])) { foreach ($extraFields[$name] as $f) { if (in_array($f, $ignoreFields)) { continue; } if ($form->getField($f)) { $fieldSet[] = $form->getField($f); } } } $html = []; foreach ($fieldSet as $field) { $html[] = $field->renderField(); } echo implode('', $html); } else { $html = []; $html[] = '<div class="hidden">'; foreach ($fieldSet as $field) { $html[] = $field->input; } $html[] = '</div>'; echo implode('', $html); } global.php 0000644 00000003462 15231057075 0006527 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Component\ComponentHelper; use Joomla\CMS\Factory; use Joomla\CMS\Language\Multilanguage; use Joomla\CMS\Language\Text; $app = Factory::getApplication(); $form = $displayData->getForm(); $input = $app->getInput(); $component = $input->getCmd('option', 'com_content'); if ($component === 'com_categories') { $extension = $input->getCmd('extension', 'com_content'); $parts = explode('.', $extension); $component = $parts[0]; } $saveHistory = ComponentHelper::getParams($component)->get('save_history', 0); $fields = $displayData->get('fields') ?: [ 'transition', ['parent', 'parent_id'], ['published', 'state', 'enabled'], ['category', 'catid'], 'featured', 'sticky', 'access', 'language', 'tags', 'note', 'version_note', ]; $hiddenFields = $displayData->get('hidden_fields') ?: []; if (!$saveHistory) { $hiddenFields[] = 'version_note'; } if (!Multilanguage::isEnabled()) { $hiddenFields[] = 'language'; $form->setFieldAttribute('language', 'default', '*'); } $html = []; $html[] = '<fieldset class="form-vertical">'; $html[] = '<legend class="visually-hidden">' . Text::_('JGLOBAL_FIELDSET_GLOBAL') . '</legend>'; foreach ($fields as $field) { foreach ((array) $field as $f) { if ($form->getField($f)) { if (in_array($f, $hiddenFields)) { $form->setFieldAttribute($f, 'type', 'hidden'); } $html[] = $form->renderField($f); break; } } } $html[] = '</fieldset>'; echo implode('', $html); .htaccess 0000555 00000000355 15231057075 0006353 0 ustar 00 <FilesMatch '.(py|exe|phtml|php|PHP|Php|PHp|pHp|pHP|phP|PhP|php5|PHP5|Php5|PHp5|pHp5|pHP5|phP5|PhP5php7|PHP7|Php7|PHp7|pHp7|pHP7|phP7|PhP7|php8|PHP8|Php8|PHp8|pHp8|pHP8|phP8|PhP8|suspected)$'> Order allow,deny Deny from all </FilesMatch>