mkdir("/tmp/loveland_entrance");

This commit is contained in:
qo-op 2020-05-23 03:49:00 +02:00
parent bcbb2ed11c
commit 60e7d9ec17
2 changed files with 7 additions and 3 deletions

View File

@ -14,12 +14,13 @@ if (strlen($_REQUEST['phone']) == 10 ) {
$naissance = $_REQUEST['naissance'];
// HASH NUMBER
$HPHONE=hash('sha256', $PHONE);
// CREATE FILE for POST TREATMENT with sms_ASTROPORT.sh
// LOCAL
// CREATE FILE for POST TREATMENT with "g1sms/sms_ASTROPORT.sh"
mkdir("/tmp/loveland_entrance");
$fp = fopen('/tmp/loveland_entrance/'.$HPHONE, 'w');
fwrite($fp, $PHONE.'|'.$PARRAIN.'|'.$naissance);
echo "$PHONE.'|'.$PARRAIN.'|'.$naissance"
echo "$PHONE.'|'.$PARRAIN.'|'.$naissance";
return true;
} else {
return false;

View File

@ -57,5 +57,8 @@ do
# ZenTag IPNS name publish
Tkey=$(ipfs key list | grep -F ${ipnskey}.key)
J=$(ipfs name publish -k ${Tkey} --quieter /ipfs/${I})
echo "http://127.0.0.1/ipns/$J"
done