Initial commit

This commit is contained in:
2019-11-20 07:44:43 +01:00
commit 5bf49c4a81
41188 changed files with 5459177 additions and 0 deletions

View File

@@ -0,0 +1,95 @@
{*
* 2017 Agence Bondaty and Co
*
* @author Agence Bondaty and Co <support@bondaty-and-co.fr>
* @copyright 2017 Agence Bondaty and Co
* @license single
* Agence Bondaty and Co
*}
<!-- START Module Checkage -->
{if $checkage->all_restriction == '1' OR $id_restriction == '1' OR $page_restriction == '1'}
{if !$checkOK OR $checkOK == '0' }
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#checkageModal').modal('toggle');
$("#TB4").on("focus click", function(){
$.post('{$url|escape:'htmlall':'UTF-8'}modules/checkage/check-checkage.php', {
checkOK: '1',
day: $('.TB1').val(),
month: $('.TB2').val(),
year: $('.TB3').val(),
token: '{$token|escape:'htmlall':'UTF-8'}'
},
function(data){
location.reload();
});
});
});
function Autotab(box, longueur, texte){
if (texte.length > longueur-1){
document.getElementById('TB'+box).focus();
}
};
</script>
<div class="modal fade" id="checkageModal" tabindex="-1" role="content" aria-hidden="true" data-keyboard="false" data-backdrop="static">
<div class="modal-dialog">
<div class="modal-content">
<div id="checkageContent" style="max-height:calc(100vh - 30px);min-height:calc(100vh - auto);overflow-y: auto;">
<table style="text-align:center;width:100%;">
{if $checkage->show_logo == '1'}
<tr>
<td style="text-align:center;">
<div id="checkageLogo" style="text-align:center;">
<img class="logo img-responsive" src="{$shop.logo|escape:'htmlall':'UTF-8'}" alt="{$shop.name|escape:'htmlall':'UTF-8'}"/>
</div>
</td>
</tr>
{/if}
{if $checkage->checkage_message}
<tr>
<td>
{$checkage->checkage_message|escape:'htmlall':'UTF-8' nofilter}
</td>
</tr>
{/if}
<tr>
<td style="text-align:center;">
<div class="infoCheckage">
{l s='The minimum age to continue is' mod='checkage'} {$checkage->age_restriction|escape:'htmlall':'UTF-8'} {l s='years' mod='checkage'}<br />{l s='Please enter your date of birth' mod='checkage'}
<div style="text-align:center;" class="popupCheckage">
{if $checkage->format_date == '1'}
<input class="dic TB1" maxlength="2" type="text" size="2" id="TB1" name="day" placeholder="{l s='DD' mod='checkage'}" onkeyup="Autotab(2, this.size, this.value)" onFocus="this.value=''">
<input class="dic TB2" maxlength="2" type="text" size="2" id="TB2" name="month" placeholder="{l s='MM' mod='checkage'}" onkeyup="Autotab(3, this.size, this.value)" onFocus="this.value=''">
<input class="dic TB3" maxlength="4" type="text" size="4" id="TB3" name="year" placeholder="{l s='YYYY' mod='checkage'}" onkeyup="Autotab(4, this.size, this.value)" onFocus="this.value=''">
{elseif $checkage->format_date == '2'}
<input class="dic TB2" maxlength="2" type="text" size="2" id="TB1" name="month" placeholder="{l s='MM' mod='checkage'}" onkeyup="Autotab(2, this.size, this.value)" onFocus="this.value=''">
<input class="dic TB1" maxlength="2" type="text" size="2" id="TB2" name="day" placeholder="{l s='DD' mod='checkage'}" onkeyup="Autotab(3, this.size, this.value)" onFocus="this.value=''">
<input class="dic TB3" maxlength="4" type="text" size="4" id="TB3" name="year" placeholder="{l s='YYYY' mod='checkage'}" onkeyup="Autotab(4, this.size, this.value)" onFocus="this.value=''">
{elseif $checkage->format_date == '3'}
<input class="dic TB3" maxlength="4" type="text" size="4" id="TB1" name="year" placeholder="{l s='YYYY' mod='checkage'}" onkeyup="Autotab(2, this.size, this.value)" onFocus="this.value=''">
<input class="dic TB2" maxlength="2" type="text" size="2" id="TB2" name="month" placeholder="{l s='MM' mod='checkage'}" onkeyup="Autotab(3, this.size, this.value)" onFocus="this.value=''">
<input class="dic TB1" maxlength="2" type="text" size="2" id="TB3" name="day" placeholder="{l s='DD' mod='checkage'}" onkeyup="Autotab(4, this.size, this.value)" onFocus="this.value=''">
{/if}
<button id="TB4" class="dic2">OK</button>
</div>
</td>
</tr>
{if $id_restriction == '1' OR $page_restriction == '1'}
<tr>
<td>
<div style="text-align:center;">
<a href="{$url|escape:'htmlall':'UTF-8'}">{l s='or Return to Home page' mod='checkage'}</a>
</div>
</td>
</tr>
{/if}
</table>
</div>
</div>
</div>
</div>
{/if}
{/if}
<!-- END Module Checkage -->

View File

@@ -0,0 +1,19 @@
<?php
/**
* 2017 Agence Bondaty and Co
*
* @author Agence Bondaty and Co <support@bondaty-and-co.fr>
* @copyright 2017 Agence Bondaty and Co
* @license single
* Agence Bondaty and Co
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;