ltsecurityinc安防产品在线商城代码

This commit is contained in:
2026-09-14 17:47:10 +08:00
parent 57d8444c15
commit 6a3c9c5bd8
14539 changed files with 1775310 additions and 0 deletions
@@ -0,0 +1,32 @@
<?php
/**
* Plumrocket Inc.
*
* NOTICE OF LICENSE
*
* This source file is subject to the End-user License Agreement
* that is available through the world-wide-web at this URL:
* http://wiki.plumrocket.net/wiki/EULA
* If you are unable to obtain it through the world-wide-web, please
* send an email to support@plumrocket.com so we can send you a copy immediately.
*
* @package Plumrocket_GeoIPLookup
* @copyright Copyright (c) 2018 Plumrocket Inc. (http://www.plumrocket.com)
* @license http://wiki.plumrocket.net/wiki/EULA End-user License Agreement
*/
?>
<?php /** @var \Plumrocket\GeoIPLookup\Block\Adminhtml\System\Config\Data\Buttons\AbstractBlock $block */ ?>
<div class="pp-buttons-container">
<button id="<?= $block->escapeHtmlAttr($block->getHtmlId()) ?>"
onclick="<?= /* @noEscape */ $block->getOnclick($block->getHtmlId()) ?>">
<span>
<span>
<span>
<?= $block->escapeHtml($block->getButtonLabel()) ?>
</span>
</span>
</span>
</button>
</div>
@@ -0,0 +1,44 @@
<?php
/**
* @package Plumrocket_GeoIPLookup
* @copyright Copyright (c) 2024 Plumrocket Inc. (https://plumrocket.com)
* @license https://plumrocket.com/license/ End-user License Agreement
*/
use Plumrocket\GeoIPLookup\Model\System\Config\Source\Installmethods;
?>
<script type='text/javascript'>
require([
'jquery',
'mage/translate'
], function ($, $t) {
const setComment = function (installMethod) {
const commentField = $(installMethod).parent().find('.method_comment');
if (! commentField.length) {
return;
}
const fieldId = $(installMethod).attr('id') || '';
const dbName = fieldId.includes('iptocountry') ? 'IpToCountry' : 'MaxMind';
switch (installMethod.value) {
case '<?= /* @noEscape */ Installmethods::AUTOMATIC ?>':
commentField.html($t("Automatically download the " + dbName + " IP geolocation database from Plumrocket servers. This database includes country, state, city, postal code, time zone, locale, latitude, and longitude. The installation may take around 5 minutes. Ensure you have 100 MB of free space on your web server for this method."));
break;
case '<?= /* @noEscape */ Installmethods::MANUAL ?>':
commentField.html($t('Manually upload your own copy of the ' + dbName + ' IP geolocation database to your web server. This database includes country, state, city, postal code, time zone, locale, latitude, and longitude. The installation may take around 5 minutes. Ensure you have 100 MB of free space on your web server for this method. For manual installation instructions, please <a href=https://plumrocket.com/docs/magento-geoip-lookup/v1/devguide/databases-manual-installation#maxmind-geoip-database" target="_blank">click here</a>.'));
break;
}
};
const installMethods = $('.install-method');
installMethods.each(function () {
setComment(this);
});
installMethods.on('change', function (event) {
setComment(event.target);
});
});
</script>