You can Send ॐ★ॐ to friends on your G1Station

This commit is contained in:
fred 2023-04-23 02:00:34 +02:00
parent 776f36259e
commit 3abe9eb39a
4 changed files with 24 additions and 11 deletions

View File

@ -197,6 +197,12 @@ if [[ ${QRCODE:0:5} == "~~~~~" ]]; then
fi
if [[ $APPNAME == "friend" ]]; then
## Send ॐ★ॐ
${MY_PATH}/../tools/jaklis/jaklis.py -k ~/.zen/tmp/${MOATS}/secret.key stars -p ${VAL} -n ${WHAT} >> ~/.zen/tmp/${MOATS}/disco
fi
if [[ $APPNAME == "login" ]]; then
PLAYER=${WHAT}

View File

@ -399,8 +399,8 @@ echo "" > ~/.zen/tmp/.ipfsgw.bad.twt # TODO move in 20h12.sh
if [[ $APPNAME == "friend" ]]; then
## CHECK IF ASKING FRIEND TW EXISTS
ipfs --timeout 60s ls /ipns/${ASTRONAUTENS}
[ $? != 0 ] && echo "BAD VISITOR" && exit 0
#~ ipfs --timeout 60s ls /ipns/${ASTRONAUTENS}
#~ [ $? != 0 ] && echo "BAD VISITOR" && exit 0
g1friend=${WHAT}
stars=${VAL:-1} // Default 1
@ -455,13 +455,13 @@ echo "" > ~/.zen/tmp/.ipfsgw.bad.twt # TODO move in 20h12.sh
REPLACE=${myIPFS}/ipns/${ASTRONAUTENS}
## SET COOKIE
USALT=$(echo "$SALT" | jq -Rr @uri)
UPEPPER=$(echo "$PEPPER" | jq -Rr @uri)
echo "/?salt=${USALT}&pepper=${UPEPPER} IS LOGIN - OPEN TW -"
sed "s~_TWLINK_~${REPLACE}~g" ~/.zen/Astroport.ONE/templates/index.302 > ~/.zen/tmp/coucou/${MOATS}.index.redirect
sed -i "s~_USALT_~${USALT}~g" ~/.zen/tmp/coucou/${MOATS}.index.redirect
sed -i "s~_UPEPPER_~${UPEPPER}~g" ~/.zen/tmp/coucou/${MOATS}.index.redirect
## SET COOKIE
#~ sed -i "s~_USALT_~${USALT}~g" ~/.zen/tmp/coucou/${MOATS}.index.redirect
#~ sed -i "s~_UPEPPER_~${UPEPPER}~g" ~/.zen/tmp/coucou/${MOATS}.index.redirect
echo "url='"${REPLACE}"'" >> ~/.zen/tmp/coucou/${MOATS}.index.redirect
(
cat ~/.zen/tmp/coucou/${MOATS}.index.redirect | nc -l -p ${PORT} -q 1 > /dev/null 2>&1

View File

@ -50,9 +50,7 @@ header {
</head>
<body>
<header>
<div>
<button onclick="homeAstroportStation('/?qrcode=station', '', 21654)">Open Station</button>
</div>
<div id="login"><button onclick="promptUser('login')">LOGIN</button><button onclick="promptUser('logout')">LOGOUT</button></div>
<h6>
<p id="station"><span>BOX <div id='countdown'></div></span></p>
@ -65,8 +63,12 @@ header {
<main>
<center>
<b>--- Welkom - Mirë se vini - Willkommen - Welkomma - Welcome - Marhaban - Bari galoust - Xos gelmissiniz - Welkum - Ongi etorri- Swagata - Ansuf yiswen - ščyra zaprašajem - Kyo tzo pa eit - Ani kié - Dobro došli - Dagemer mat - Dobre doshŭl - Benvinguts - Ulihebisdi - Huān yíng - Karibu - Eoso eoseyo - Benvenuti - Bel bonjou - Bienvini - Dobrodošli - Velkommen - Bienvenido - Bonvenon - Tere tulemast - Gabitê - Vælkomin - Tervetuloa - Welkom - Wìllkòmme - Binvignut - Fàilte - Benvido - Croeso - Planvenguda - Mikouabô - Kalos irthate - -Eguahé porá - Baroukh habaim - ... ----</b><br>
<b>Welkom - Mirë se vini - Willkommen - Welkomma - Welcome - Marhaban - Bari galoust - Xos gelmissiniz - Welkum - Ongi etorri- Swagata - Ansuf yiswen - ščyra zaprašajem - Kyo tzo pa eit - ॐ★ॐ - Ani kié - Dobro došli - Dagemer mat - Dobre doshŭl - Benvinguts - Ulihebisdi - ௐ- Huān yíng - Karibu - Eoso eoseyo - Benvenuti - Bel bonjou - Bienvini - Dobrodošli - Velkommen - Bienvenido - Bonvenon - Tere tulemast - Gabitê - Vælkomin - Tervetuloa - Welkom - Wìllkòmme - Binvignut - Fàilte - Benvido - Croeso - Planvenguda - Mikouabô - Kalos irthate - Eguahé porá - Baroukh habaim - ﷽ </b><br>
<header>
<div>
<button onclick="homeAstroportStation('/?qrcode=station', '', 21654)">Open Station</button>
</div>
<form id="formlink" action = "http://127.0.0.1:1234" method = "GET" enctype="application/x-www-form-urlencoded">
<h1><span>Astroport</span> <a href="http://127.0.0.1:12345">Ŋ1</a></h1>
<div id="yellow">

View File

@ -129,7 +129,7 @@ a {
<div id="appname">
<input type="radio" id="r0" name="appname" value="login"> Login(TW)
<input type="radio" id="r1" name="appname" value="read"> Messagerie
<input type="radio" id="r1" name="appname" value="friend"> ★★★★★
<input type="radio" id="r2" name="appname" value="history"> Historique
<input type="radio" id="r3" name="appname" value="pay"> Virement
<input type="radio" id="r3" name="appname" value="balance" checked="checked"> Balance
@ -196,10 +196,15 @@ a {
// APPNAME : DATA COLLECT & ARRANGE
if ( appname == 'pay') {
var amount = prompt("Saisir MONTANT Ğ1:");
var amount = prompt("MONTANT (Ğ1) ?");
alert('PAY TO ' + g1pub + ' = ' + amount);
}
if ( appname == 'friend') {
var amount = prompt("Entre 1 et 5 (★) ?");
alert( amout + '★ > ' + g1pub );
}
if ( appname == 'login') {
var amount = prompt("Saisir EMAIL:");
}