diff --git a/www/boris/check_entrance.sh b/www/boris/check_entrance.sh new file mode 100755 index 0000000..59ef5bd --- /dev/null +++ b/www/boris/check_entrance.sh @@ -0,0 +1,13 @@ +#!/bin/bash +######################################################################## +# Author: Astrocrew +# Version: 0.1 +# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/) +######################################################################## +G1KEY="$1" + +[[ $G1KEY == "" ]] && echo "PUB KEY MISSINF" && exit 1 +YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1) && [[ ! $YOU ]] && echo "ipfs NOT RUNNING. EXIT" && exit 1 + +## CHECK IF NODE HAS SEND A PAYMENT TO $G1KEY (TODO CHECK ALL BOOTSTRAPS) +~/.zen/astrXbian/zen/jaklis/jaklis.py history -p $G1KEY | grep $G1KEY diff --git a/www/boris/conf.php b/www/boris/conf.php index f8d591c..5242035 100644 --- a/www/boris/conf.php +++ b/www/boris/conf.php @@ -6,15 +6,16 @@ define('HOST', 'tube.copylaradio.com'); Youtube Thumbnails -maxresdefault Full resolution image matching the uploaded. This image will not always exist. -sddefault 640x480 -hqdefault 480x360 Large Preview -mqdefault 320x180 Large Preview -default 120x 90 Large Preview -0 480x360 Large Preview -1 120x 90 First small thumbnail -2 120x 90 Second small thumbnail -3 120x 90 Third small thumbnail +maxresdefault Full resolution image matching the uploaded. This image will not always exist. +sddefault 640x480 +hqdefault 480x360 Large Preview +mqdefault 320x180 Large Preview +default 120x 90 Large Preview +0 480x360 Large Preview +1 120x 90 First small thumbnail +2 120x 90 Second small thumbnail +3 120x 90 Third small thumbnail */ define('YOUTUBE_THUMB', 'https://i.ytimg.com/vi/%s/mqdefault.jpg'); +define ('MEDIAQR','https://'.HOST.'/ipns/%s/QR.png'); diff --git a/www/boris/film.php b/www/boris/film.php new file mode 100644 index 0000000..2e52171 --- /dev/null +++ b/www/boris/film.php @@ -0,0 +1,85 @@ + $mimeType, + 'url' => $videoURL, + 'eco' => $videoEco, + 'uri' => $videoURI, + 'mediakeyipns' => $h, + 'name' => $videoName, + 'youtubeID' => $youtubeID + ]; + } + +} + + +?> + + + Astro CLUB + + + + + + +
+

+ Astroport × Video CLUB +

+
+ +
+'; + +foreach ($videosList as $video) { + + echo '
  • '; + +// $href = 'youtube_watch.php?uri='. $video['uri'] . '&name='. urlencode($video['name']) .'&mime='. $video['mime']; + + echo ' + + + '. $video['name'] . ' + + +

    + + ' . $video['name'] . ' + +

    '; + + echo '
  • '; +} + +echo ''; +?> +
    + + + +