What can be done by just receiving an EMAIL (PLAYER id). EXTEND AT YOUR NEED

This commit is contained in:
fred 2024-01-02 16:19:01 +01:00
parent 4f19e9a7f5
commit 16eb0f7b1a
1 changed files with 28 additions and 28 deletions

View File

@ -67,49 +67,49 @@ Content-Type: text/html; charset=UTF-8
############################################## ##############################################
# ATPASS : /?player=PLAYER&atpass=G1PUB&$VoeuName=ONELINE # ATPASS : /?player=PLAYER&atpass=G1PUB&$VoeuName=ONELINE
############################################## ##############################################
if [[ ${APPNAME} == "atpass" ]]; then #~ if [[ ${APPNAME} == "atpass" ]]; then
echo "CREATING @PASS" #~ echo "CREATING @PASS"
end=`date +%s` #~ end=`date +%s`
echo "(@PASS) creation time was "`expr $end - $start` seconds. #~ echo "(@PASS) creation time was "`expr $end - $start` seconds.
exit 0 #~ exit 0
fi #~ fi
############################################## ##############################################
# YOUTUBE : /?player=PLAYER&(youtube | pdf | image) =_URL_ # YOUTUBE : /?player=PLAYER&(youtube | pdf | image) =_URL_
############################################## ##############################################
if [[ ${APPNAME} == "youtube" || ${APPNAME} == "pdf" || ${APPNAME} == "image" ]]; then #~ if [[ ${APPNAME} == "youtube" || ${APPNAME} == "pdf" || ${APPNAME} == "image" ]]; then
APPNAME=$(echo ${APPNAME} | sed -r 's/\<./\U&/g' | sed 's/ //g') ## First letter Capital #~ APPNAME=$(echo ${APPNAME} | sed -r 's/\<./\U&/g' | sed 's/ //g') ## First letter Capital
[[ ! ${THIS} ]] && THIS="https://www.youtube.com/watch?v=BCl2-0HBJ2c" #~ [[ ! ${THIS} ]] && THIS="https://www.youtube.com/watch?v=BCl2-0HBJ2c"
echo ">>> COPY ${APPNAME} for ${PLAYER} from ${THIS}" #~ echo ">>> COPY ${APPNAME} for ${PLAYER} from ${THIS}"
G1PUB=$(cat ~/.zen/game/players/${PLAYER}/.g1pub) #~ G1PUB=$(cat ~/.zen/game/players/${PLAYER}/.g1pub)
[[ ! ${G1PUB} ]] && espeak "NOT MY PLAYER " && echo "${PLAYER} IS NOT MY PLAYER" && exit 1 #~ [[ ! ${G1PUB} ]] && espeak "NOT MY PLAYER " && echo "${PLAYER} IS NOT MY PLAYER" && exit 1
echo "================================================" #~ echo "================================================"
echo "${PLAYER} : ${myIPFS}/ipns/${ASTRONAUTENS}" #~ echo "${PLAYER} : ${myIPFS}/ipns/${ASTRONAUTENS}"
echo " = /ipfs/${TW}" #~ echo " = /ipfs/${TW}"
echo "================================================" #~ echo "================================================"
${MY_PATH}/../ajouter_media.sh "${THIS}" "${PLAYER}" "${APPNAME}" & #~ ${MY_PATH}/../ajouter_media.sh "${THIS}" "${PLAYER}" "${APPNAME}" &
echo "${HTTPCORS}" > ~/.zen/tmp/${MOATS}.${PLAYER}.http #~ echo "${HTTPCORS}" > ~/.zen/tmp/${MOATS}.${PLAYER}.http
echo "${myIPFS}/ipns/${ASTRONAUTENS}" >> ~/.zen/tmp/${MOATS}.${PLAYER}.http #~ echo "${myIPFS}/ipns/${ASTRONAUTENS}" >> ~/.zen/tmp/${MOATS}.${PLAYER}.http
( #~ (
cat ~/.zen/tmp/${MOATS}.${PLAYER}.http | nc -l -p ${PORT} -q 1 > /dev/null 2>&1 #~ cat ~/.zen/tmp/${MOATS}.${PLAYER}.http | nc -l -p ${PORT} -q 1 > /dev/null 2>&1
rm ~/.zen/tmp/${MOATS}.${PLAYER}.http #~ rm ~/.zen/tmp/${MOATS}.${PLAYER}.http
) & #~ ) &
# ### REFRESH CHANNEL COPY #~ # ### REFRESH CHANNEL COPY
end=`date +%s` #~ end=`date +%s`
echo "(TW) MOA Operation time was "`expr $end - $start` seconds. #~ echo "(TW) MOA Operation time was "`expr $end - $start` seconds.
exit 0 #~ exit 0
fi #~ fi
exit 1 exit 1