lainchan/player.php

29 lines
1.1 KiB
PHP
Raw Normal View History

<?php
2014-03-19 19:04:23 -04:00
/* This file is dedicated to the public domain; you may do as you wish with it. */
$v = @(string)$_GET['v'];
$t = @(string)$_GET['t'];
$loop = @(boolean)$_GET['loop'];
2014-08-09 06:01:43 -04:00
$params = '?v=' . urlencode($v) . '&amp;t=' . urlencode($t);
?><!DOCTYPE html>
2013-11-09 04:11:22 -05:00
<html>
<head>
<meta charset="utf-8">
2014-08-09 06:01:43 -04:00
<title><?php echo htmlspecialchars($t); ?></title>
2014-04-06 15:32:23 -04:00
<link rel="stylesheet" href="stylesheets/webm/playerstyle.css">
<script src="js/webm-settings.js"></script>
<script src="js/webm/playersettings.js"></script>
2013-11-09 04:11:22 -05:00
</head>
<body>
<div id="playerheader">
<a id="loop0" href="<?php echo $params; ?>&amp;loop=0"<?php if (!$loop) echo ' style="font-weight: bold"'; ?>>[play once]</a>
<a id="loop1" href="<?php echo $params; ?>&amp;loop=1"<?php if ($loop) echo ' style="font-weight: bold"'; ?>>[loop]</a>
</div>
<div id="playercontent">
2014-08-09 06:01:43 -04:00
<video controls<?php if ($loop) echo ' loop'; ?> src="<?php echo htmlspecialchars($v); ?>">
Your browser does not support HTML5 video. <a href="<?php echo htmlspecialchars($v); ?>">[Download]</a>
</video>
</div>
2013-11-09 04:11:22 -05:00
</body>
</html>