29if (!file_exists(
$dirname .
'/config.inc.php')) {
30 die(
"system not installed");
33require_once __DIR__ .
'/constant.php';
49@media (min-
width : 576px) {
60@media (min-
width : 768px) {
67@media (min-
width : 992px) {
73@media (min-
width : 1200px) {
82@media (min-
width: 576px) {
88@media (min-
width: 768px) {
94@media (min-
width: 992px) {
100@media (min-
width: 1200px) {
122 <img
id=
"logo_id" src=
"image/logo10000.png" >
125use Endroid\QrCode\Color\Color;
126use Endroid\QrCode\Encoding\Encoding;
127use Endroid\QrCode\ErrorCorrectionLevel;
128use Endroid\QrCode\QrCode;
129use Endroid\QrCode\Label\Label;
130use Endroid\QrCode\Logo\Logo;
131use Endroid\QrCode\RoundBlockSizeMode;
132use Endroid\QrCode\Writer\PngWriter;
133use Endroid\QrCode\Writer\ValidationException;
134use chillerlan\Authenticator\{
138use chillerlan\Authenticator\Authenticators\AuthenticatorInterface;
142 $uuid =
$http->get(
'otp');
145 $repository->exec_sql(
"delete from otp_send_secret where os_timestamp < now()-interval '12 hours'");
148 $id =
$repository->get_value(
"select os_id from otp_send_secret where os_request=$1",
152 echo
_(
"Expiré : vous devez redemander le renvoi de la clef");
173 encoding:
new Encoding(
'UTF-8'),
174 errorCorrectionLevel: ErrorCorrectionLevel::Medium,
177 roundBlockSizeMode: RoundBlockSizeMode::Margin,
178 foregroundColor:
new Color(0, 0, 0),
179 backgroundColor:
new Color(255, 255, 255)
183 echo
'<div style="margin:4rem">';
185 echo
'<h1>',
_(
"Scanner ceci avec votre application OTP"),
'</h1>';
189 <a href=
"https://play.google.com/store/apps/details?id=org.fedorahosted.freeotp" target=
"_blank">FreeOTP (libre)</a>
192 <a href=
"https://play.google.com/store/apps/details?id=com.beemdevelopment.aegis" target=
"_blank">AEgis Authenticator (libre)</a>
195 <a href=
"https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2" target=
"_blank">Google Authenticator</a>
200 echo
_(
"Scanner ce QRCode avec votre application OTP afin de l'ajouter");
202 if ( DEBUGNOALYSS > 1) { echo
"code attendu",
$authenticator->code();}
206 printf(
'<img src="data:image/png;base64,%s">', base64_encode(
$result->getString()));
208}
catch (Exception $exc) {
record_log($p_message)
Record an error message into the log file of the server or in the log folder of NOALYSS Record also t...
Data & function about connected users.
abstract of the table public.otp_send_secret
if($repository->count()==0) $otp_send
_("Scanner ceci avec votre application OTP")