diff --git a/www/LOVELand/ajaxform.js b/www/LOVELand/ajaxform.js index 92731ee..e81f5cf 100644 --- a/www/LOVELand/ajaxform.js +++ b/www/LOVELand/ajaxform.js @@ -13,7 +13,7 @@ jQuery(document).ready(function () { var naissance = jQuery("#naissance"); var data = ''; // ajax call to ajax.php - jQuery.getJSON("zen_loveland_entrance.php", { + jQuery.getJSON("g1sms/sms_loveland.php", { phone: phone.val(), parrain: parrain.val(), naissance: naissance.val() }, function (data) { $("#phoneresultat").html("

Votre inscription en prise en compte...

"); diff --git a/www/LOVELand/boursorama.php b/www/LOVELand/boursorama.php deleted file mode 100644 index 6ed4525..0000000 --- a/www/LOVELand/boursorama.php +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - Une banque en ligne sans revenu. ouvrir un compte en ligne sur Boursorama. - - - - - - - - - - diff --git a/www/LOVELand/g1billet/code_sms.php b/www/LOVELand/g1sms/code_sms.php similarity index 100% rename from www/LOVELand/g1billet/code_sms.php rename to www/LOVELand/g1sms/code_sms.php diff --git a/www/LOVELand/zen_loveland_entrance.php b/www/LOVELand/g1sms/sms_loveland.php similarity index 100% rename from www/LOVELand/zen_loveland_entrance.php rename to www/LOVELand/g1sms/sms_loveland.php diff --git a/www/LOVELand/g1billet/test.php b/www/LOVELand/g1sms/test.php similarity index 100% rename from www/LOVELand/g1billet/test.php rename to www/LOVELand/g1sms/test.php diff --git a/www/LOVELand/g1billet/zen_sms.php b/www/LOVELand/g1sms/zen_sms.php similarity index 89% rename from www/LOVELand/g1billet/zen_sms.php rename to www/LOVELand/g1sms/zen_sms.php index 194d5cf..635e664 100644 --- a/www/LOVELand/g1billet/zen_sms.php +++ b/www/LOVELand/g1sms/zen_sms.php @@ -3,7 +3,7 @@ header("Access-Control-Allow-Origin: *"); if (strlen($_REQUEST['num']) == 10 ) { $newNumber = preg_replace('/^0?/', '+33', $_REQUEST['num']); $data = '"'.$newNumber.'" "'.$_REQUEST['val'].'"'.PHP_EOL; - $fp = fopen('/tmp/sms.commands', 'a'); + $fp = fopen('/tmp/sms.commands', 'w'); fwrite($fp, $data); sleep(1); echo exec('cat /tmp/sms.commmand.result'); diff --git a/www/LOVELand/index (copie).html b/www/LOVELand/index (copie).html deleted file mode 100644 index 456b342..0000000 --- a/www/LOVELand/index (copie).html +++ /dev/null @@ -1,284 +0,0 @@ - - - - - - - - - - - Ouvrir un compte! Banque en ligne sans revenu & Crypto-monnaie prometteuse 2018 [ Made In Zion / Banque Libre Ḡ1 ] - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
-
-

Ouvrir un compte en monnaie libre

-

Gagnez 1 Ḡ1 !
La crypto monnaie prometteuse 2018

-
-
-
-
-
- -
-
- -
-
-
-
-
-
-
-
-

Recevez 1 Ḡ1 tout de suite
Puis 10 Ḡ1 / jour (si vous réussissez à devenir membre)

-
-
-
-
-
- - -
-
-
-

«La Meilleure des crypto-monnaies»
Vos avantages!

-
-
-
-
-
- -
-

Moyens de paiement

-

Effectuez des paiements par SMS.

-
-
-
-
-
- -
-

Revenu Universel

-

Devenez membre et co-créez la Ḡ1.

-
-
-
-
-
- -
-

Place de Marché

-

Comme sur «Le Bon Coin». Vendez ou achetez Librement en Ḡ1.

-
-
-
-
-
- -
-

Toile de Confiance

-

Pour devenir membre 5 certifications d'autres membres sont nécessaires.

-
-
-
-
-
- - -
-
-
- -
-
-

Comment faire fructifier son argent rapidement ?

-

Perpétuelle question posée par l'argent fabriqué par les Banques. - Depuis des lustres, nous utilisons leur monnaie, et alimentons sans le savoir un - système injuste construit sur la Dette! - Aujourd'hui, investir dans une monnaie virtuelle semble permettre de faire fructifier son argent. - Pourtant, il n'existe aucune garantie que vous fassiez le moindre bénéfice.

-

Une solution Bitcoin alternative & une crypto monnaie rentable, ça existe ?!

-
-
-
-
-
-

Où placer son argent pour qu'il rapporte?

-

Cette question, légitime, n'a plus aucun sens dans un système - d'échange en Monnaie Libre. - En effet, au lieu de réclamer l'argent à votre banquier qui vous demandera de la rembourser à la sueur de votre front, - la nouvelle crypto monnaie Ḡ1 comporte une innovation majeure !
- Elle est co-produite par ses membres afin que tous partagent à parts égales la valeur ajoutée que la société produit.

-

Changer les Règles du Jeu pour permettre à Tous d'être Victorieux !

-
-
-
-
-
-

Une Banque Libre & Simple à utiliser au quotidien

-

Une Banque, c'est un Portefeuille qui contient votre Argent. - Son Rôle, c'est de vous garantir la Liberté de réaliser vos Rêves. - En 2018, soyez précurseur, devenez acteur de la plus prometteuse des crypto monnaies!

-

Envoyez "NOUV" par SMS au +336XXXXXXXX (*) & Ouvrez votre portefeuille en Ḡ1!

-
-
-
-
- - -
-
-

Avec LibreBankSMS, contrôlez votre Portefeuille Ḡ1 par SMS

-
-
-
- -
Depuis votre téléphone, ouvrez un compte Ḡ1 sur LibreBankSMS.
-

"Envoyez NOUV par SMS au +336XXXXXXXX (*)"

-
-
-
-
- -
Payez avec un simple SMS les biens et services que vous échangez.
-

"Envoyez PAYER 1234 06YYYYYYYY 12.5 Votre commentaire au +336XXXXXXXX (*)"

-
-
-
-
- -
Recréons Notre Banque Tous ensemble !
-

"Que vous soyez étudiant, commerçant, artisan ou chômeur, devenez membre de la Monnaie Libre"

-
-
-
-
-
- - -
-
-
-
-
-

Êtes-vous prêt pour la Rê-évolution bancaire ?
Recevez notre brochure...

-
-
-
-
-
- -
-
- -
-
-
-
-
-
-
-
- -
-
-
-
-
- - - - - - - - - - diff --git a/www/LOVELand/indexb.php b/www/LOVELand/indexb.php deleted file mode 100644 index 293ae75..0000000 --- a/www/LOVELand/indexb.php +++ /dev/null @@ -1,302 +0,0 @@ - - - - - - - - - - - Ouvrir un compte! Banque en ligne sans revenu & Crypto-monnaie prometteuse 2018 [ Made In Zion / Banque Libre Ḡ1 ] - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
-
-

Une Banque en Ligne
& Un Revenu Universel

-

Ouvrir un compte en ligne, 1 Ḡ1 offert !
La crypto monnaie prometteuse de 2018

-
-
-
-
-
- -
-
- -
-
-
-
-
-
-
-
-

Recevez 80 € + 110 Ḡ1 tout de suite
Gagnez ensuite jusqu'à 300 € + 300 Ḡ1 / mois

-
-
-
-
-
- - -
-
-
-

«La Meilleure solution de Banque en Ligne»
Vos avantages!

-
-
-
-
-
- -
-

Moyens de paiement

-

Une Carte bancaire & Un Portefeuille Ḡ1 GRATUITS.

-
-
-
-
-
- -
-

Revenu Universel

-

Devenez membre, créez la crypto-monnaie Ḡ1 sur votre compte.

-
-
-
-
-
- -
-

Place de Marché

-

Aussi simple que «Le Bon Coin». Vendez et achetez Librement en Ḡ1.

-
-
-
-
-
- -
-

Toile de Confiance

-

Devenez membre! Acteur de la «Meilleure Banque en France».

-
-
-
-
3 étapes pour en profiter...

-
-
- - -
-
-
-
-
-

ETAPE 1

-

Ouvrir compte Crypto monnaie

-

- Ouvrir votre compte en ligne Crypto Monnaie en quelques secondes! Sans aucun revenu, nous créons votre portefeuille dans la nouvelle crypto monnaie Libre à partir de votre numéro de téléphone mobile. -
-  
GAGNEZ immédiatement votre premier Ḡ1, la crypto monnaie prometteuse en 2018 ! -
Profitez de la place de marché ḠChange. -

-

Faire fructifier son argent? Ḡ1, Une solution alternative au Bitcoin.

-
Etape suivante...

-
-
- - - -
-
-
-

ETAPE 2

-

Ouvrir compte Boursorama 

-

Ouvrir un compte sur Boursorama (même sans revenu, 300€ suffisent). -
C'est la banque en ligne la moins chère depuis 10 ans, pour le vérifier ;) -
GAGNEZ 80 € + 110 Ḡ1 dès l'ouverture de votre compte grâce au parrainage des autres membres. -

-

Un petit investissement qui rapporte !

-
Etape suivante...

-
-
-
-
-
-

ETAPE 3

-

Devenir membre et parrainer ses proches

-

Rencontrez-nous lors des Événements & Apéros Libres! -
Devenez co-créateur de Ḡ1 avec nous. Rejoignez la Toile de confiance, faites certifier votre compte par 5 autres membres. -

-

Comment faire fructifier son argent rapidement ? Par le Revenu Universel...

-
Carte des membres

-
-
-
-
- - -
-
-

Contrôlez votre Portefeuille Ḡ1 par SMS / Web

-
-
-
- -
Avec votre téléphone mobile, ouvrez votre premier portefeuille. 1 Ḡ1 OFFERTE.
-

Recevez votre CODE d'accès par SMS

-
-
-
-
- -
Envoyez des SMS pour régler vos achats en Ḡ1.
-

"Envoyez PAYER 1234 06DESTINATAIRE 12.5 Commentaire de la transaction au +336XXXXXXXX (*)"

-
-
-
-
- -
Gérez vos portefeuilles Ḡ1 par Internet!
-

Depuis n'importe quel navigateur Web, Faites-nous un virement

-
-
-
-
-
- - -
-
-
-
-
-

Êtes-vous prêt pour la Rê-évolution bancaire ?
Recevez notre brochure...

-
-
-
-
-
- -
-
- -
-
-
-
-
-
-
-
- -
-
-
-
-
- - - - - - - - - - diff --git a/www/g1sms.conf b/www/g1sms.conf index 956de3c..b5cf205 100644 --- a/www/g1sms.conf +++ b/www/g1sms.conf @@ -1,10 +1,10 @@ server { - listen _PORT_; - listen [::]:_PORT_; + listen 10099; + listen [::]:10099; - root /var/www/loveland/_APPLI_; + root /var/www/loveland/g1sms; - server_name _MY_NODE_NAME_ localhost 127.0.0.1; + server_name localhost 127.0.0.1; index index.php index.html; diff --git a/zen/ipfs_SWARM_refresh.sh b/zen/ipfs_SWARM_refresh.sh index 1e945b0..cb60b52 100755 --- a/zen/ipfs_SWARM_refresh.sh +++ b/zen/ipfs_SWARM_refresh.sh @@ -38,7 +38,7 @@ _|_| | __) __)\/\//--\| \| | | \|_| | \|___)| | echo "I am $IPFSNODEID" ## CHANNELS SWARM INDEX COPY PROCEDURE -## SIGNAL ~/.zen/g1sms_wallets TODO +## SIGNAL ~/.zen/g1sms/ TODO echo "PUBLISHING MY OWN /home/$YOU/.zen/ipfs/ to SWARM" [[ ! -d /home/$YOU/.zen/ipfs ]] && echo "ERROR : /home/$YOU/.zen/ipfs/ NOT FOUND" && exit 1 @@ -56,7 +56,7 @@ do # FULL REFRESH (allow deletion, for DEV period) # TODO: COMMENT TO LOWER DISK USAGE [[ "$id" == "" ]] && echo "WARNING! ID empty for $peer " && continue - echo "Refreshing /home/$YOU/.zen/ipfs_swarm/.$id ($count)" + echo " ($count) Refreshing /home/$YOU/.zen/ipfs_swarm/.$id" rm -Rf /home/$YOU/.zen/ipfs_swarm/.$id $MY_PATH/tools/timeout.sh -t 30 ipfs get --output=/home/$YOU/.zen/ipfs_swarm/ /ipns/$id diff --git a/zen/ipfs_TASK_do.sh b/zen/ipfs_TASK_do.sh index 12ddc18..7a7f580 100755 --- a/zen/ipfs_TASK_do.sh +++ b/zen/ipfs_TASK_do.sh @@ -16,62 +16,50 @@ YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail IPFSNODEID=$(ipfs id -f='\n') NANODATE=$(date -u +%s%N) +# SEARCH FOR NEW TASK OTHER NODE "todo.timestamp" +echo "REWRITING AND CHECK NEDDED" +exit 1 + if [[ -d /home/$YOU/.zen/ipfs_swarm/.$IPFSNODEID/TASK ]]; then ############################################################################" for task in $( ls /home/$YOU/.zen/ipfs_swarm/.$IPFSNODEID/TASK/todo.*); # "done.$NANODATE" FILES do FTASK=$( echo $task | cut -d '/' -f 8 ) # todo.$NANODATE - TNANO=$( echo $FTASK | cut -d '.' -f 1 ) # $NANODATE - echo " .$IPFSNODEID FOUND TASK : $FTASK " + TNANO=$( echo $FTASK | cut -d '.' -f 2 ) # $NANODATE + echo "FOUND TASK FOR ME ($IPFSNODEID) : $FTASK " # MAKE LOCAL .$IPFSNODEID directory mkdir -p /home/$YOU/.zen/ipfs/.$IPFSNODEID/TASK/ # TODO: CHECK BETTER NOT DONE YET and $NANODATE > $TNANO (=> detect NODES writing in the future!!) if [[ ! -f /home/$YOU/.zen/ipfs/.$IPFSNODEID/TASK/done.$TNANO ]]; then # NOT DONE YET: NEW TASK! tdiff=$(bc -l <<< "$NANODATE - $TNANO") if [[ $tdiff -gt 0 ]]; then - # GET BACK MY NODE G1 Wallet authfile from my LOCAL ./wallets - echo "${GPGPASS}" | gpg -q -d --output "./NODEG1Wallet.authfile" --yes --pinentry-mode loopback --symmetric --passphrase-fd 0 "./wallets/.$IPFSNODEID/$IPFSNODEID.authfile.GPGPASS.gpg" - # DECRYPT and CAT move_g1cents VALUE - ./shell/natools.py decrypt -k "./NODEG1Wallet.authfile" -i "$task" -o "/tmp/move_g1cents.$TDEST" - ZENVAL=$(cat "/tmp/move_g1cents.$TDEST") - log "__SUB:ipfs_swarm_wallets_refresh: tdiff=$tdiff .$IPFSNODEID G1 = ./NODEG1Wallet.authfile :decrypt: Found $ZENVAL Zen to ADD" - rm -f "./NODEG1Wallet.authfile" - if [[ $ZENVAL -gt 0 ]]; then - curvalue=$(cat ./wallets/$TDEST/$TDEST.g1cents) - newvalue=$(bc -l <<< "$curvalue + $ZENVAL") - echo $newvalue > ./wallets/$TDEST/$TDEST.g1cents - echo "OK.$tdiff" > ./wallets/.$IPFSNODEID/TASK/done.$TNANO - log "__SUB:ipfs_swarm_wallets_refresh: .$IPFSNODEID($FTASK) DONE! OPERATION: ($curvalue + $ZENVAL) = $newvalue Zen <=> ./wallets/$TDEST/$TDEST.g1cents:: OK" - # REFRESH ./wallets and PUBLISH - I=$(ipfs_node_wallets_add) - else - echo "KO.$tdiff" > ./wallets/.$IPFSNODEID/TASK/done.$TNANO - log "__SUB:ipfs_swarm_wallets_refresh: .$IPFSNODEID($FTASK) ERROR! BAD: ($curvalue + $ZENVAL) = $newvalue Zen <=> ./wallets/$TDEST/$TDEST.g1cents :: KO" - I=$(ipfs_node_wallets_add) - sms_SEND "$ADMINPHONE" "ADMIN! TASK ERROR: .$IPFSNODEID($FTASK) ERROR! BAD: ($curvalue + $ZENVAL) = $newvalue Zen <=> ./wallets/$TDEST/$TDEST.g1cents :: KO" - fi + # todo.NANODATE is from past: OK. DO IT + echo "DOING it...." + chmod +x /home/$YOU/.zen/ipfs_swarm/.$IPFSNODEID/TASK/todo.$TNANO + cat /home/$YOU/.zen/ipfs_swarm/.$IPFSNODEID/TASK/todo.$TNANO + echo "WRITE todo RESULT in done.$TNANO" else # TODO: Bad NODE in the Future task !!! Make better BAD Node detection = Swarm Banish? - echo "KO.$tdiff" > ./wallets/.$IPFSNODEID/TASK/done.$TNANO - log "__SUB:ipfs_swarm_wallets_refresh: .$IPFSNODEID($FTASK) ERROR! DATE PROBLEM: $NANODATE < $TNANO :: KO" - I=$(ipfs_node_wallets_add) - sms_SEND "$ADMINPHONE" "ADMIN! .$IPFSNODEID($FTASK) ERROR! DATE PROBLEM: $NANODATE < $TNANO :: KO" + echo "KO.$tdiff" > /home/$YOU/.zen/ipfs/.$IPFSNODEID/TASK/done.$TNANO + echo " .$IPFSNODEID($FTASK) ERROR! DATE PROBLEM: $NANODATE < $TNANO :: KO" + fi fi done - log "__SUB:ipfs_swarm_wallets_refresh: REMOVE OLD TASK MARKED AS DONE" - for scan in ./wallets_swarm/.Qm*/TASK/done.*; do - lscan=$(echo $scan | sed s/_swarm//g ) - lid=$(echo $scan | cut -d '/' -f 3 | cut -d '.' -f 2 ) - lnano=$(echo $scan | cut -d '/' -f 5 | cut -d '.' -f 2 ) + echo "REMOVE OLD TASK MARKED AS DONE" + for scan in /home/$YOU/.zen/ipfs_swarm/.Qm*/TASK/done.*; do + lscan=$(echo $scan | sed s/_swarm//g ) ## Remove _swarm + lid=$(echo $scan | cut -d '/' -f 6 | cut -d '.' -f 2 ) ## Get matching IPFSNODEID + lnano=$(echo $scan | cut -d '/' -f 8 | cut -d '.' -f 2 ) ## Get done timestamp + if [[ "$lid" != "$IPFSNODEID" ]]; then - log "__SUB:ipfs_swarm_wallets_refresh: CLEANING done OLD TASK ${lscan} SENT to $lid ($lnano.bin)" - rm -f ./wallets/.$lid/TASK/$lnano.* - I=$(ipfs_node_wallets_add) + echo "CLEANING done OLD TASK ${lscan} SENT to $lid ($lnano.bin)" + rm -f ./wallets/.$lid/TASK/todo.$lnano + fi done else - log "__SUB:ipfs_swarm_wallets_refresh: .$IPFSNODEID :: NO TASK ! " + echo ".$IPFSNODEID :: NO TASK ! " ############################################################################" fi diff --git a/zen/sms_AUTH_command.sh b/zen/sms_AUTH_command.sh index ec7d226..f7157ab 100755 --- a/zen/sms_AUTH_command.sh +++ b/zen/sms_AUTH_command.sh @@ -4,14 +4,26 @@ # Version: 0.1 # License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/) ######################################################################## -# RECEIVE COMMAND FROM ./www/LOVELand/g1billet/zen_sms.php +# RECEIVE COMMAND FROM ./www/LOVELand/g1sms/zen_sms.php # READ "Number" "Value" from FIFO /tmp/sms.commands # CALL g1sms/sms_AUTH.sh $line -################################################################################# +######################################################################## +# THIS script must be run in cron_MINUTE.sh +######################################################################## MY_PATH="`dirname \"$0\"`" # relative MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized +######################################################################## +YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1) || er+=" ipfs daemon not running" +IPFSNODEID=$(ipfs id -f='\n') || er+=" ipfs id problem" +WHOAMI=$(sbotc whoami | jq -r .id) || er+=" sbotc whoami problem" +[[ "$YOU" == "" || "$IPFSNODEID" == "" || "$WHOAMI" == "" ]] && echo "ERROR : $er " +######################################################################## + +# PERMANENT LOOKUP # tail -fn 1 /tmp/sms.commands | while read -r line + +# PERIODIC LOOKUP for line in $(cat /tmp/sms.commands) do if [[ $line != "" ]]; then