mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-02-22 09:19:34 +00:00
Shits
This commit is contained in:
20
delete.php
Normal file
20
delete.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
if(isset($_POST['thisUrl']))
|
||||
|
||||
{
|
||||
|
||||
$string = $_POST['thisUrl'];
|
||||
|
||||
|
||||
|
||||
$file = file_get_contents('videos.json');
|
||||
|
||||
$data = json_decode($file);
|
||||
|
||||
unset($file);//prevent memory leaks for large json.
|
||||
|
||||
//insert data here
|
||||
|
||||
if($data[0] == $string)
|
||||
|
||||
Reference in New Issue
Block a user