芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/cansahcab.gob.mx/plugins/twofactorauth/totp/tmpl/form.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; Factory::getDocument()->getWebAssetManager()->usePreset('qrcode'); $js = " (function(document) { document.addEventListener('DOMContentLoaded', function() { var totpQrCodeElement = document.getElementById('totp-qrcode'); // There's no QR Code element on the view profile page so ensure we don't get any errors if (totpQrCodeElement) { var qr = qrcode(0, 'H'); qr.addData('" . $url . "'); qr.make(); totpQrCodeElement.innerHTML = qr.createImgTag(4); } }); })(document); "; Factory::getDocument()->addScriptDeclaration($js); ?>
/