coooooool
This commit is contained in:
parent
98e4b62bb6
commit
f2facf526d
|
@ -30,7 +30,7 @@ TYPE=$WHAT
|
|||
mkdir -p ~/.zen/tmp/${MOATS}/
|
||||
################################################################################
|
||||
## REFRESH STATION & OPEN G1PalPay INTERFACE
|
||||
################################################################################
|
||||
###############################################################################
|
||||
if [[ ${QRCODE} == "station" ]]; then
|
||||
|
||||
# rm ~/.zen/tmp/ISTATION ## REMOVE IN PROD
|
||||
|
@ -60,11 +60,31 @@ if [[ ${QRCODE} == "station" ]]; then
|
|||
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
|
||||
################################################################################
|
||||
## 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)
|
||||
if [[ $ASTROPATH != "" && $APPNAME == "" ]]; then
|
||||
|
||||
rm ~/.zen/game/players/.current
|
||||
ln -s $ASTROPATH ~/.zen/game/players/.current
|
||||
echo "LINKING $ASTROPATH to .current"
|
||||
|
@ -78,6 +98,7 @@ if [[ $ASTROPATH != "" && $APPNAME == "" ]]; then
|
|||
rm -Rf ~/.zen/tmp/${MOATS}
|
||||
) &
|
||||
exit 0
|
||||
|
||||
else
|
||||
|
||||
echo "NOT ON BOARD"
|
||||
|
|
|
@ -50,7 +50,7 @@ header {
|
|||
<h6>
|
||||
<p id="station"> ♥<span>BOX</span></p>
|
||||
<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><div id='countdown'></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
|
||||
|
||||
## 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
|
||||
|
@ -89,8 +89,8 @@ echo "<link rel=\"stylesheet\" href=\"/ipfs/QmX9QyopkTw9TdeC6yZpFzutfjNFWP36nzfP
|
|||
}
|
||||
</style>
|
||||
|
||||
<h3> $myHOST :: ${#PLAYERONE[@]} <div id=\"countdown\"></div></h3>
|
||||
<div id=ainfo>AINFO</div>
|
||||
<h3><div id=ainfo>$myHOST :: ${#PLAYERONE[@]} :: </div><div id=\"countdown\"></div></h3>
|
||||
|
||||
<div class=\"container\">
|
||||
|
||||
<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
|
||||
echo " <div class=\"carousel-item\">
|
||||
$ZLINK
|
||||
<br>$BUTTON
|
||||
</div>" >> $core_file
|
||||
fi
|
||||
num=$((num+1))
|
||||
|
|
|
@ -352,7 +352,7 @@ myHtml() {
|
|||
-e "s~https://ipfs.copylaradio.com~${myIPFSGW}~g" \
|
||||
-e "s~_IPFSNODEID_~${IPFSNODEID}~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)
|
||||
[ -z "$isLAN" ] \
|
||||
|| myHtml=$($RUN echo "$myHtml" | sed \
|
||||
|
|
Loading…
Reference in New Issue