forked from axiom-team/astrXbian
44 lines
924 B
PHP
44 lines
924 B
PHP
<?php
|
|
require_once('functions.php');
|
|
require_once('conf.php');
|
|
|
|
$videoURL = htmlentities($_GET['uri']);
|
|
$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" />
|
|
</head>
|
|
<body>
|
|
|
|
<header>
|
|
<h6>
|
|
<a href="youtube.php">Astroport "<span><?php echo STATION_NAME; ?></span>"</a>
|
|
</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>
|