mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Shits
This commit is contained in:
80
index.php
80
index.php
@@ -1,49 +1,33 @@
|
||||
<?php
|
||||
/*$host = 'http://'.$_SERVER['HTTP_HOST'].'/+';
|
||||
$short = $_SERVER['QUERY_STRING'];*/
|
||||
$video = $_GET['v'];
|
||||
$name = $_GET['n'];
|
||||
|
||||
$list = file_get_contents('video.json');
|
||||
if(isset($video)){
|
||||
file_put_contents("video.json", $video);
|
||||
}
|
||||
?>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Zöff</title>
|
||||
<link rel="stylesheet" type="text/css" href="static/style.css" title="Default" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="top vcent centered">
|
||||
<div id="change" class="small">
|
||||
<div class="big">Zöff</div>
|
||||
Zöff
|
||||
<form name="ufo" action="" class="daform" id="base" method="get" onsubmit="return submitform();">
|
||||
<input id="longurl" name="v" type="text" class="innbox" />
|
||||
</form>
|
||||
</div>
|
||||
<script type="text/javascript" src="static/swfobject.js"></script>
|
||||
<div id="ytapiplayer">
|
||||
You need Flash player 8+ and JavaScript enabled to view this video.
|
||||
</div>
|
||||
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var response = $.ajax({type: "GET", url: "/r/video.json", async: false }).responseText;
|
||||
var params = { allowScriptAccess: "always", controls:0, autoplay:1};
|
||||
var atts = { id: "myytplayer" };
|
||||
swfobject.embedSWF("http://www.youtube.com/v/"+response+
|
||||
"?enablejsapi=1&playerapiid=ytplayer&version=3&controls=1&iv_load_policy=3&autohide=1", //&autoplay=1
|
||||
"ytapiplayer", "825", "462", "8", null, null, params, atts);
|
||||
|
||||
</script>
|
||||
<br>
|
||||
<?php print_r($list); ?>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
<?php require("main.php"); ?>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Zöff</title>
|
||||
<link rel="stylesheet" type="text/css" href="static/style.css" title="Default" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="top vcent centered">
|
||||
<div id="change" class="small">
|
||||
<div class="big noselect">Zöff</div>
|
||||
Zöff
|
||||
<form name="ufo" action="" class="daform" id="base" method="get" onsubmit="return submitform();">
|
||||
<input id="longurl" name="v" type="text" class="innbox" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div id="ytapiplayer">
|
||||
You need Flash player 8+ and JavaScript enabled to view this video :(
|
||||
</div>
|
||||
<br>
|
||||
<?php print_r($data); ?>
|
||||
</div>
|
||||
<script type="text/javascript" src="static/swfobject.js"></script>
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script type="text/javascript" scr="main.js"></script>
|
||||
<script>
|
||||
$(document).ready(function(){ })
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user