lainchan/player.php

23 lines
871 B
PHP
Raw Normal View History

<?php
$params = '?v=' . urlencode($_GET['v']) . '&t=' . urlencode($_GET['t']);
$loop = ($_GET['loop'] != "0");
?><!DOCTYPE html>
2013-11-09 04:11:22 -05:00
<html>
<head>
<meta charset="utf-8">
<title><?php echo htmlspecialchars($_GET['t']); ?></title>
<link rel="stylesheet" href="playerstyle.css">
<script src="settings.js"></script>
2013-11-09 04:11:22 -05:00
<script src="playersettings.js"></script>
</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>
<video controls<?php if ($loop) echo ' loop'; ?> src="<?php echo htmlspecialchars($_GET['v']); ?>">
2013-11-09 04:11:22 -05:00
Your browser does not support HTML5 video.
</video>
</body>
</html>