astrXbian/www/boris/conf.php

52 lines
1.3 KiB
PHP

<?php
if (!ini_get('display_errors')) {
ini_set('display_errors', '1');
}
define('STATION_NAME', exec('cat ../../../ipfs/.12D*/_xbian.zuid'));
define('HOST', 'astroport');
define('THEME', 'astroport');
define('SITENAME', 'Astroport "' . STATION_NAME . '"');
exec("/bin/bash -c './get_xzuid.sh'", $xzuid);
define('XZUID', $xzuid[0]);
exec("/bin/bash -c './get_ipfs_node_id.sh'", $output);
if (isset($output)) {
define('IPFS_NODE_ID', $output[0]);
}
define('IPFS_API_PORT', 5001);
define('IPFS_HOST', '127.0.0.1');
define('TAGLINE', 'Bienvenue <strong>chez vous</strong>');
/*
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
*/
define('YOUTUBE_THUMB', 'https://i.ytimg.com/vi/%s/mqdefault.jpg');
define ('MEDIAQR','https://'.$_SERVER['SERVER_NAME'].'/ipns/%s/QR.png');
// TODO : dynamic finding FRIENDS xzuid with "cat /home/$YOU/.zen/ipfs_swarm/.*/_xbian.zuid"
$stations = [
'virgo',
'onelove',
'Rea-3E',
'foot1060'
];