mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Shits
This commit is contained in:
15
main.php
Normal file
15
main.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/*$host = 'http://'.$_SERVER['HTTP_HOST'].'/+';
|
||||
$short = $_SERVER['QUERY_STRING'];*/
|
||||
$video = htmlspecialchars($_POST['v']);
|
||||
$name = htmlspecialchars($_POST['n']);
|
||||
|
||||
|
||||
$file = file_get_contents('videos.json');
|
||||
$data = json_decode($file);
|
||||
unset($file);
|
||||
if(isset($_GET['v'])){
|
||||
array_push($data, $video);
|
||||
file_put_contents('videos.json', json_encode($data));
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user