This commit is contained in:
fred 2023-03-16 14:52:50 +01:00
parent f2facf526d
commit 42c0513b91
3 changed files with 13 additions and 10 deletions

View File

@ -47,14 +47,15 @@ if [[ ${QRCODE} == "station" ]]; then
sed -i "s~http://127.0.0.1:8080~${myIPFS}~g" ~/.zen/tmp/${MOATS}/index.htm
WSTATION="/ipfs/$(ipfs add -q ~/.zen/tmp/${MOATS}/index.htm)"
echo "NEW WSTATION ${myIPFS}${WSTATION}"
echo $WSTATION > ~/.zen/tmp/WSTATION
end=`date +%s`
echo "NEW WSTATION ${myIPFS}${WSTATION} Execution time was "`expr $end - $start` seconds.
## SEND TO WSTATION PAGE
sed "s~_TWLINK_~${myIPFS}${WSTATION}/~g" ~/.zen/Astroport.ONE/templates/index.302 > ~/.zen/tmp/${MOATS}/index.redirect
echo "url='"${myIPFS}${WSTATION}"'" >> ~/.zen/tmp/${MOATS}/index.redirect
(
cat ~/.zen/tmp/${MOATS}/index.redirect | nc -l -p ${PORT} -q 1 > /dev/null 2>&1
echo "BLURP $PORT" && rm -Rf ~/.zen/tmp/${MOATS}
) &
exit 0
fi
@ -73,7 +74,7 @@ if [[ ${QRCODE:0:2} == "G1" && ${AND} == "tw" ]]; then
echo "url='"${LINK}"'" >> ~/.zen/tmp/${MOATS}/index.redirect
(
cat ~/.zen/tmp/${MOATS}/index.redirect | nc -l -p ${PORT} -q 1 > /dev/null 2>&1
rm -Rf ~/.zen/tmp/${MOATS}
echo "BLURP $PORT" && rm -Rf ~/.zen/tmp/${MOATS}
) &
exit 0
fi
@ -95,7 +96,7 @@ if [[ $ASTROPATH != "" && $APPNAME == "" ]]; then
echo "url='"${myG1BILLET}"?montant=0\&style=jeu'" >> ~/.zen/tmp/${MOATS}/index.redirect
(
cat ~/.zen/tmp/${MOATS}/index.redirect | nc -l -p ${PORT} -q 1 > /dev/null 2>&1
rm -Rf ~/.zen/tmp/${MOATS}
echo "BLURP $PORT" && rm -Rf ~/.zen/tmp/${MOATS}
) &
exit 0

View File

@ -128,8 +128,8 @@ if [[ $i =~ \.(JPG|jpg|PNG|png|JPEG|jpeg|GIF|gif)$ ]]; then
MORE="${i%.png}.insert"
echo "$MORE"
BUTTON="${i%.png}.button"
echo "$BUTTON"
CODEBOUTON="$(cat ${i%.png}.button)"
echo "$CODEBOUTON"
LINK="<img src=\"/ipfs/$ilink\" alt=\"$img_alt\" width=\"$img_width\" height=\"$img_height\">"
[[ -s $MORE ]] && ZLINK=$(cat $MORE | sed "s~_REPLACE_~$LINK~g") || ZLINK="$LINK"
@ -137,14 +137,16 @@ if [[ $i =~ \.(JPG|jpg|PNG|png|JPEG|jpeg|GIF|gif)$ ]]; then
if [ $num -eq 1 ]; then
echo " <div class=\"carousel-item active\">
$CODEBOUTON
<br>
$ZLINK
<br>$BUTTON
</div>" >> $core_file
else
echo " <div class=\"carousel-item\">
$CODEBOUTON
<br>
$ZLINK
<br>$BUTTON
</div>" >> $core_file
</div>" >> $core_file
fi
num=$((num+1))
fi

View File

@ -104,7 +104,7 @@
<body>
<a target=_blank href="https://astroport.copylaradio.com"><img style="width:50% height:50% position: absolute; top: 0; right: 0; border: 0;" src="/ipfs/QmX2K94hw9RBULFHS59uGHgB2HGco3Zp7wAfDjp1ak5aV9/l0g0.png" alt="Entrez par le Le Claude"></a>
<a href="javascript:history.go(-1)"><img style="width:40% height:40% position: absolute; top: 0; right: 0; border: 0;" src="/ipfs/QmX2K94hw9RBULFHS59uGHgB2HGco3Zp7wAfDjp1ak5aV9/l0g0.png" alt="Revenez dans Le Claude"></a>
<h1><a target=_blank href="http://astroport.localhost:1234">Astroport Ŋ1</a></h1>