Add spammaster.org api check

This commit is contained in:
2024-03-08 12:37:03 +01:00
parent 00c63da237
commit 7856305dae
6 changed files with 99 additions and 727 deletions

View File

@@ -1,5 +0,0 @@
.ru
qq.com
.vn
ericjonesmyemail@gmail.com
katytrilly9@gmail.com

View File

@@ -27,7 +27,6 @@
{l s='Customer service - Contact us' d='Modules.Contactform.Shop'}
{/block}
<section class="login-form">
<form action="{$urls.pages.contact|escape:'htmlall':'UTF-8'}" method="post" {if $contact.allow_file_upload}enctype="multipart/form-data"{/if}>

View File

@@ -22,30 +22,26 @@
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<section class="contact-form">
<header class="page-header page-header--cms">
<h1 class="text-center">{l s='Contact us' d='Shop.Theme.Global'}</h1>
</header>
<section class="contact-form">
<form class="js-customer-form needs-validation" action="{$urls.pages.contact}" method="post" {if $contact.allow_file_upload}enctype="multipart/form-data"{/if} novalidate autocomplete="false">
{if $notifications}
<div class="notifications-container alert {if $notifications.nw_error}alert-danger{else}alert-success{/if}">
<ul>
{foreach $notifications.messages as $notif}
<li>{$notif}</li>
{if isset($smarty.session.bannedctc) and $smarty.session.bannedctc == "banned"}
<li>{l s='This email address was banned' d='Shop.Forms.Labels'}</li>
<!--<li>{*$smarty.session.ipo|strip_tags*}</li>-->
{/if}
{/foreach}
</ul>
</div>
{elseif isset($smarty.session.bannedctc) and $smarty.session.bannedctc == "banned"}
<div class="notifications-container alert text-center text-danger">
<ul>
<li>{l s='This email address was banned' d='Shop.Forms.Labels'}</li>
</ul>
</div>
{/if}
{if !$notifications || $notifications.nw_error}
{if !$notifications || !$notifications.nw_error}
<section class="form-fields">
<h1 class="text-center">{l s='Contact us' d='Shop.Theme.Global'}</h1>
<div class="form-group">
<label for="id_contact">{l s='Subject' d='Shop.Forms.Labels'}</label>
@@ -120,9 +116,8 @@
</style>
<input type="text" name="url" value=""/>
<input type="hidden" name="token" value="{$token}" />
<div class="text-right mb-md-3">
<input class="btn btn-primary" type="submit" name="submitMessage" value="{l s='Send' d='Shop.Theme.Actions'}">
</div>
<input class="btn btn-primary" type="submit" name="submitMessage" value="{l s='Send' d='Shop.Theme.Actions'}"
{if isset($smarty.session.bannedctc) and $smarty.session.bannedctc == "banned"}disabled="disabled"{/if}>
</section>
{/if}