flash.moe/public/mpv.php

13 lines
306 B
PHP
Raw Normal View History

2020-10-03 16:22:14 +00:00
<!doctype html>
2020-10-30 20:44:56 +00:00
<?php
if(isset($_GET['source'])) {
highlight_file(__FILE__);
exit;
}
?>
2020-10-03 16:22:14 +00:00
<a id="mpv" href="mpv:<?=filter_input(INPUT_GET, "url", FILTER_SANITIZE_URL);?>">Open in MPV</a>
<script>
document.getElementById('mpv').click();
setTimeout(function() { window.close() }, 1);
</script>