coooooool
This commit is contained in:
parent
98e4b62bb6
commit
f2facf526d
|
@ -30,7 +30,7 @@ TYPE=$WHAT
|
||||||
mkdir -p ~/.zen/tmp/${MOATS}/
|
mkdir -p ~/.zen/tmp/${MOATS}/
|
||||||
################################################################################
|
################################################################################
|
||||||
## REFRESH STATION & OPEN G1PalPay INTERFACE
|
## REFRESH STATION & OPEN G1PalPay INTERFACE
|
||||||
################################################################################
|
###############################################################################
|
||||||
if [[ ${QRCODE} == "station" ]]; then
|
if [[ ${QRCODE} == "station" ]]; then
|
||||||
|
|
||||||
# rm ~/.zen/tmp/ISTATION ## REMOVE IN PROD
|
# rm ~/.zen/tmp/ISTATION ## REMOVE IN PROD
|
||||||
|
@ -59,12 +59,32 @@ if [[ ${QRCODE} == "station" ]]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
## MODE G1VOEU : RETURN WISHNS - image carousel links -
|
||||||
|
################################################################################
|
||||||
|
if [[ ${QRCODE:0:2} == "G1" && ${AND} == "tw" ]]; then
|
||||||
|
APPNAME="G1Voeu"
|
||||||
|
VOEU=${QRCODE}
|
||||||
|
ASTROPATH=$(grep ${THIS} ~/.zen/game/players/*/.playerns | cut -d ':' -f 1 | rev | cut -d '/' -f 2- | rev 2>/dev/null)
|
||||||
|
## REDIRECT TO G1VOEU IPNS ADDRESS
|
||||||
|
LINK=$(cat $ASTROPATH/voeux/${QRCODE:2}/*/.link)
|
||||||
|
echo "#>>> DISPLAY WISHNS >>>> # $VOEU : $LINK"
|
||||||
|
sed "s~_TWLINK_~${LINK}~g" ~/.zen/Astroport.ONE/templates/index.302 > ~/.zen/tmp/${MOATS}/index.redirect
|
||||||
|
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}
|
||||||
|
) &
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
## QRCODE can be ASTRONAUTENS or G1PUB format
|
## QRCODE can be ASTRONAUTENS or G1PUB format
|
||||||
################################################################################
|
################################################################################
|
||||||
## ACCOUNT IPNS FORMAT : CHANGE .current
|
## ACCOUNT IPNS FORMAT : CHANGE .current
|
||||||
ASTROPATH=$(grep $QRCODE ~/.zen/game/players/*/.playerns | cut -d ':' -f 1 | rev | cut -d '/' -f 2- | rev 2>/dev/null)
|
ASTROPATH=$(grep $QRCODE ~/.zen/game/players/*/.playerns | cut -d ':' -f 1 | rev | cut -d '/' -f 2- | rev 2>/dev/null)
|
||||||
if [[ $ASTROPATH != "" && $APPNAME == "" ]]; then
|
if [[ $ASTROPATH != "" && $APPNAME == "" ]]; then
|
||||||
|
|
||||||
rm ~/.zen/game/players/.current
|
rm ~/.zen/game/players/.current
|
||||||
ln -s $ASTROPATH ~/.zen/game/players/.current
|
ln -s $ASTROPATH ~/.zen/game/players/.current
|
||||||
echo "LINKING $ASTROPATH to .current"
|
echo "LINKING $ASTROPATH to .current"
|
||||||
|
@ -78,6 +98,7 @@ if [[ $ASTROPATH != "" && $APPNAME == "" ]]; then
|
||||||
rm -Rf ~/.zen/tmp/${MOATS}
|
rm -Rf ~/.zen/tmp/${MOATS}
|
||||||
) &
|
) &
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
echo "NOT ON BOARD"
|
echo "NOT ON BOARD"
|
||||||
|
|
|
@ -50,7 +50,7 @@ header {
|
||||||
<h6>
|
<h6>
|
||||||
<p id="station"> ♥<span>BOX</span></p>
|
<p id="station"> ♥<span>BOX</span></p>
|
||||||
<div>
|
<div>
|
||||||
<button onclick="homeAstroportStation('/?qrcode=station', '', 7654)">Open Station</button>
|
<button onclick="homeAstroportStation('/?qrcode=station', '', 9654)">Open Station</button>
|
||||||
<div id="login"><button onclick="promptUser('login')">LOGIN</button><button onclick="promptUser('logout')">LOGOUT</button></div>
|
<div id="login"><button onclick="promptUser('login')">LOGIN</button><button onclick="promptUser('logout')">LOGOUT</button></div>
|
||||||
</div><div id='countdown'></div>
|
</div><div id='countdown'></div>
|
||||||
<div id="ainfo"></div><div id="debug"></div>
|
<div id="ainfo"></div><div id="debug"></div>
|
||||||
|
|
|
@ -54,7 +54,7 @@ if [[ ! -d $img_dir ]]; then
|
||||||
|| echo "_REPLACE_" > ~/.zen/tmp/carousel/${pub}.insert
|
|| echo "_REPLACE_" > ~/.zen/tmp/carousel/${pub}.insert
|
||||||
|
|
||||||
## Add Button for every wish : TODO
|
## Add Button for every wish : TODO
|
||||||
echo "<button onclick=\"homeAstroportStation('$myASTROPORT/?qrcode=G1CopierYoutube&tw=$ASTRONAUTENS', '', 7654)\">G1CopierYoutube</button>" > ~/.zen/tmp/carousel/${pub}.button
|
echo "<button onclick=\"homeAstroportStation('$myASTROPORT/?qrcode=G1CopierYoutube&tw=$ASTRONAUTENS', 'parent', 9000)\">G1CopierYoutube</button>" > ~/.zen/tmp/carousel/${pub}.button
|
||||||
##################
|
##################
|
||||||
|
|
||||||
done
|
done
|
||||||
|
@ -89,8 +89,8 @@ echo "<link rel=\"stylesheet\" href=\"/ipfs/QmX9QyopkTw9TdeC6yZpFzutfjNFWP36nzfP
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<h3> $myHOST :: ${#PLAYERONE[@]} <div id=\"countdown\"></div></h3>
|
<h3><div id=ainfo>$myHOST :: ${#PLAYERONE[@]} :: </div><div id=\"countdown\"></div></h3>
|
||||||
<div id=ainfo>AINFO</div>
|
|
||||||
<div class=\"container\">
|
<div class=\"container\">
|
||||||
|
|
||||||
<div id=\"myCarousel\" class=\"carousel slide\" data-ride=\"carousel\">
|
<div id=\"myCarousel\" class=\"carousel slide\" data-ride=\"carousel\">
|
||||||
|
@ -143,6 +143,7 @@ if [[ $i =~ \.(JPG|jpg|PNG|png|JPEG|jpeg|GIF|gif)$ ]]; then
|
||||||
else
|
else
|
||||||
echo " <div class=\"carousel-item\">
|
echo " <div class=\"carousel-item\">
|
||||||
$ZLINK
|
$ZLINK
|
||||||
|
<br>$BUTTON
|
||||||
</div>" >> $core_file
|
</div>" >> $core_file
|
||||||
fi
|
fi
|
||||||
num=$((num+1))
|
num=$((num+1))
|
||||||
|
|
|
@ -352,7 +352,7 @@ myHtml() {
|
||||||
-e "s~https://ipfs.copylaradio.com~${myIPFSGW}~g" \
|
-e "s~https://ipfs.copylaradio.com~${myIPFSGW}~g" \
|
||||||
-e "s~_IPFSNODEID_~${IPFSNODEID}~g" \
|
-e "s~_IPFSNODEID_~${IPFSNODEID}~g" \
|
||||||
-e "s~_HOSTNAME_~$(hostname)~g" \
|
-e "s~_HOSTNAME_~$(hostname)~g" \
|
||||||
-e "s~.000.~.$(printf '%03d' "$(seq 0 17 |shuf -n 1)").~g" \
|
-e "s~background.000.~background.$(printf '%03d' "$(seq 0 17 |shuf -n 1)").~g" \
|
||||||
~/.zen/Astroport.ONE/templates/register.html)
|
~/.zen/Astroport.ONE/templates/register.html)
|
||||||
[ -z "$isLAN" ] \
|
[ -z "$isLAN" ] \
|
||||||
|| myHtml=$($RUN echo "$myHtml" | sed \
|
|| myHtml=$($RUN echo "$myHtml" | sed \
|
||||||
|
|
Loading…
Reference in New Issue