forked from savetheinternet/Tinyboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
player.php
28 lines (27 loc) · 1.07 KB
/
player.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/* 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'];
$params = '?v=' . urlencode($v) . '&t=' . urlencode($t);
?><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><?= htmlspecialchars($t); ?></title>
<link rel="stylesheet" href="stylesheets/webm/playerstyle.css">
<script src="js/webm-settings.js"></script>
<script src="js/webm/playersettings.js"></script>
</head>
<body>
<div id="playerheader">
<a id="loop0" href="<?= $params; ?>&loop=0"<?php if (!$loop) echo ' style="font-weight: bold"'; ?>>[play once]</a>
<a id="loop1" href="<?= $params; ?>&loop=1"<?php if ($loop) echo ' style="font-weight: bold"'; ?>>[loop]</a>
</div>
<div id="playercontent">
<video controls<?php if ($loop) echo ' loop'; ?> src="<?= htmlspecialchars($v); ?>">
Your browser does not support HTML5 video. <a href="<?= htmlspecialchars($v); ?>">[Download]</a>
</video>
</div>
</body>
</html>