forked from axiom-team/astroport
mkdir("/tmp/loveland_entrance");
This commit is contained in:
parent
bcbb2ed11c
commit
60e7d9ec17
|
@ -14,12 +14,13 @@ if (strlen($_REQUEST['phone']) == 10 ) {
|
||||||
$naissance = $_REQUEST['naissance'];
|
$naissance = $_REQUEST['naissance'];
|
||||||
// HASH NUMBER
|
// HASH NUMBER
|
||||||
$HPHONE=hash('sha256', $PHONE);
|
$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');
|
$fp = fopen('/tmp/loveland_entrance/'.$HPHONE, 'w');
|
||||||
|
|
||||||
fwrite($fp, $PHONE.'|'.$PARRAIN.'|'.$naissance);
|
fwrite($fp, $PHONE.'|'.$PARRAIN.'|'.$naissance);
|
||||||
echo "$PHONE.'|'.$PARRAIN.'|'.$naissance"
|
echo "$PHONE.'|'.$PARRAIN.'|'.$naissance";
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -57,5 +57,8 @@ do
|
||||||
# ZenTag IPNS name publish
|
# ZenTag IPNS name publish
|
||||||
Tkey=$(ipfs key list | grep -F ${ipnskey}.key)
|
Tkey=$(ipfs key list | grep -F ${ipnskey}.key)
|
||||||
J=$(ipfs name publish -k ${Tkey} --quieter /ipfs/${I})
|
J=$(ipfs name publish -k ${Tkey} --quieter /ipfs/${I})
|
||||||
|
|
||||||
|
echo "http://127.0.0.1/ipns/$J"
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue