This commit is contained in:
qo-op 2020-05-13 13:07:45 +02:00
parent 37c52668a2
commit 8e27bddede
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,8 @@
<?php
header("Access-Control-Allow-Origin: *");
if (strlen($_REQUEST['num']) == 10 ) {
if (strlen($_REQUEST['phone']) == 10 ) {
// Replace leading 0 with +33
$newNumber = preg_replace('/^0?/', '+33', $_REQUEST['num']);
$newNumber = preg_replace('/^0?/', '+33', $_REQUEST['phone']);
// HASH NUMBER
$HASH=hash('sha256', $newNumber);
// CREATE FILE for POST TREATMENT with sms_ASTROPORT.sh