flash.moe/public/mpv.php
2020-10-30 20:44:56 +00:00

12 lines
306 B
PHP

<!doctype html>
<?php
if(isset($_GET['source'])) {
highlight_file(__FILE__);
exit;
}
?>
<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>