2021-03-12 19:41:24 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
define('HOST', '127.0.0.1:8181');
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
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('SITENAME', '<span>Astrobunker</span>');
|
2021-03-12 20:18:00 +01:00
|
|
|
|
|
|
|
|
|
|
|
function changeEveryNSec ($n, $a) {
|
|
|
|
|
|
|
|
$nbElts = count($a);
|
|
|
|
|
|
|
|
$refresh = $n * $nbElts;
|
|
|
|
|
|
|
|
return $a[floor((time() % $refresh) / ($refresh / $nbElts))];
|
|
|
|
}
|
|
|
|
|
|
|
|
$taglines = [
|
2021-03-12 21:40:49 +01:00
|
|
|
'Votre caverne remplie des <strong>trésors</strong> que vous avez découverts sur le web',
|
|
|
|
'Votre <strong>forteresse</strong> de contenu imprenable',
|
|
|
|
'Votre <strong>palais</strong> informationnel'
|
2021-03-12 20:18:00 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
define('USP', changeEveryNSec(2, $taglines));
|