prestation/Framework/Moritio.php
2026-02-17 10:14:39 +00:00

65 lines
1.1 KiB
PHP
Executable File

<?php
function getMoritio_0()
{
return date('Y-m-d');
}
function getMoritio_2()
{
return "2026-03-31";
}
function getLicensed($codeSociete, $nomSociete)
{
$licensed = false;
$bonCodeSociete = false;
$bonnomSociete = false;
$tab_code_societe = array
(
"ebene",
"ebenetest",
"sastest",
"generaliacm",
"envoyx",
"ebenedemo",
"fideliasn",
"icr",
"ric",
"assinco",
"nsia",
"facility",
);
$bonCodeSociete = in_array($codeSociete, $tab_code_societe);
$tab_nom_societe = array
(
"EBENE SOLUTIONS INFORMATIQUES",
"EBENE TESTS",
"SAAS TEST",
"GENERALIA ASSURANCES",
"ENVOYX",
"GESTIONNAIRE DEMO",
"FIDELIA RISK SOLUTION",
"ICR",
"CNPS",
"ICR / CNPS",
"ROYAL INSURANCE COMPANY",
"ASSINCO SA",
"NSIA",
"GROUPE NSIA",
"NSIA PARTICIPATIONS",
"FACILITY SERVICES",
"GROUP FACILITY",
"MUTUELLE SANTE SOCIALE",
);
$bonnomSociete = in_array($nomSociete, $tab_nom_societe);
$licensed = ($bonCodeSociete && $bonnomSociete);
$_SESSION['licensed'] = $licensed;
return $licensed;
}
?>