Файловый менеджер - Редактировать - /home/lmsyaran/public_html/administrator/components/com_moojla/views/languagetranslation/tmpl/default.php
Назад
<?php /*----------------------------------------------------------------------------------| www.vdm.io |----/ Lmskaran /-------------------------------------------------------------------------------------------------------/ @version 1.0.77 @build 6th April, 2022 @created 22nd July, 2020 @package Moojla @subpackage default.php @author Lmskaran <http://Lmskaran.com> @copyright Copyright (C) 2015. All Rights Reserved @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) .-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( \____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) /------------------------------------------------------------------------------------------------------*/ // No direct access to this file defined('_JEXEC') or die('Restricted access'); JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html'); JHtml::_('behavior.tooltip'); JHtml::_('behavior.formvalidation'); JHtml::_('formbehavior.chosen', 'select'); JHtml::_('behavior.keepalive'); ?> <?php if ($this->canDo->get('languagetranslation.access')): ?> <script type="text/javascript"> Joomla.submitbutton = function(task) { if (task === 'languagetranslation.back') { parent.history.back(); return false; } else { var form = document.getElementById('adminForm'); form.task.value = task; form.submit(); } } </script> <?php $urlId = (isset($this->item->id)) ? '&id='. (int) $this->item->id : ''; ?> <form action="<?php echo JRoute::_('index.php?option=com_moojla&view=languagetranslation' . $urlId); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data"> <!--[JCBGUI.custom_admin_view.default.2.$$$$]--> <?php JHtml::_('formbehavior.chosen', 'select'); JHtml::_('bootstrap.tooltip'); $form = JForm::getInstance("langform", JPATH_ADMINISTRATOR.'/components/com_moojla/models/forms/' . "languagetranslation.xml", array("control" => "myform")); $prefillData = array(); if ($_SERVER['REQUEST_METHOD'] === 'POST') { $app = JFactory::getApplication(); // $data = $app->input->post->get('myform', array(), "array"); $data = $app->input->getArray(); $myform = $data['myform']; if($myform['language'] != '') { $lang = $myform['language']; $isadmin = substr($lang, -1); $code = substr($lang, 0, -1); $fileurl = JURI::root(); $filepath = JPATH_ROOT; if($isadmin) { $filepath .= '/administrator/language/overrides/' . $code . '.override.ini'; if($myform['override'] != '') { file_put_contents($filepath, $myform['override']); } else if(file_exists($filepath)) { file_put_contents($filepath, $myform['override']); } } else { $filepath .= '/language/overrides/' . $code . '.override.ini'; if($myform['override'] != '') { file_put_contents($filepath, $myform['override']); } else if(file_exists($filepath)) { file_put_contents($filepath, $myform['override']); } } } } $form->bind($prefillData); ?> <?php //echo $this->loadTemplate('languagefilter'); ?> <?php echo $form->renderField('language'); ?> <?php echo $form->renderField('original_translation'); ?> <?php echo $form->renderField('override'); ?> <input type="submit" name="submitbtn" value="<?= JText::_('COM_MOOJLA_SAVE_CHANGES') ?>"> <!--[/JCBGUI$$$$]--> <input type="hidden" name="task" value="" /> <?php echo JHtml::_('form.token'); ?> </form> <?php else: ?> <h1><?php echo JText::_('COM_MOOJLA_NO_ACCESS_GRANTED'); ?></h1> <?php endif; ?>
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка