mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Reorganized files and added script to convert old lists
This commit is contained in:
8
php/videos.php
Executable file
8
php/videos.php
Executable file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
$list = htmlspecialchars($_REQUEST['list']);
|
||||
if(!isset($_REQUEST['list']))$list="videos";
|
||||
$filename = "../lists/".$list.'.json';
|
||||
if(!file_exists($filename)){ $f=fopen($filename, "a+"); fwrite($f,"[]"); fclose($f);}
|
||||
$file = file_get_contents($filename);
|
||||
print($file);
|
||||
?>
|
||||
Reference in New Issue
Block a user