芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/administrator.3/components/com_joomlaupdate/tmpl/update/default.php
* @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; use Joomla\CMS\Uri\Uri; /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->document->getWebAssetManager(); $wa->useScript('core') ->useScript('jquery') ->useScript('com_joomlaupdate.encryption') ->useScript('com_joomlaupdate.update') ->useScript('com_joomlaupdate.admin-update'); $password = Factory::getApplication()->getUserState('com_joomlaupdate.password', null); $filesize = Factory::getApplication()->getUserState('com_joomlaupdate.filesize', null); $ajaxUrl = Uri::base() . 'components/com_joomlaupdate/restore.php'; $returnUrl = 'index.php?option=com_joomlaupdate&task=update.finalise&' . Factory::getSession()->getFormToken() . '=1'; $this->document->addScriptOptions( 'joomlaupdate', [ 'password' => $password, 'totalsize' => $filesize, 'ajax_url' => $ajaxUrl, 'return_url' => $returnUrl, ] ); ?>