astrXbian/www/boris/youtube_watch.php

44 lines
924 B
PHP
Raw Normal View History

2021-03-15 17:16:52 +01:00
<?php
require_once('functions.php');
require_once('conf.php');
2021-08-30 10:09:24 +02:00
$videoURL = htmlentities($_GET['uri']);
2021-03-15 17:16:52 +01:00
$videoName = htmlentities(urldecode($_GET['name']));
$videoMIME = htmlentities($_GET['mime']);
?><!DOCTYPE html>
<html>
<head>
<title><?php echo $videoName; ?> - Astroport "<?php echo STATION_NAME; ?></title>
<link rel="stylesheet" href="styles/<?php echo THEME; ?>/style.css" type="text/css" />
<link rel="icon" type="image/png" href="./styles/<?php echo THEME; ?>/logo.png" />
2021-03-15 17:16:52 +01:00
</head>
<body>
<header>
<h6>
<a href="youtube.php">Astroport "<span><?php echo STATION_NAME; ?></span>"</a>
2021-03-15 17:16:52 +01:00
</h6>
</header>
<main>
<?php
echo '
<article>
<video autoplay="autoplay" controls>
<source src="'. $videoURL .'" type="'. $videoMIME .'">
<a href="'. $videoURL . '">' . $videoName . '</a>
</video>
<h1 class="video-title">
' . $videoName . '
</h1>
</article>';
?>
</main>
</body>
</html>