radiantassure/Framework/Moritio.php
2025-12-08 14:29:40 +00:00

39 lines
693 B
PHP
Executable File

<?php
function getMoritio_0()
{
return date('Y-m-d');
}
function getMoritio_2()
{
return "2025-12-31";
}
function getLicensed($codeSociete, $nomSociete)
{
$licensed = false;
$bonCodeSociete = false;
$bonnomSociete = false;
$tab_code_societe = array
(
"ebene",
"radiant",
);
$bonCodeSociete = in_array($codeSociete, $tab_code_societe);
$tab_nom_societe = array
(
"EBENE SOLUTIONS INFORMATIQUES",
"RADIANT INSURANCE COMPANY",
);
$bonnomSociete = in_array($nomSociete, $tab_nom_societe);
$licensed = ($bonCodeSociete && $bonnomSociete);
$_SESSION['licensed'] = $licensed;
return $licensed;
}
?>