phone
This commit is contained in:
parent
37c52668a2
commit
8e27bddede
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue