Make this site TIA compliant
This commit is contained in:
parent
c894a01143
commit
1ac47bfdee
|
@ -1,6 +1,8 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta name="tia-download-info" content="https://myholyvids.site.tesses.net/tia-download-site.php">
|
||||
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>My Holy Vids</title>
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta name="tia-download-info" content="https://myholyvids.site.tesses.net/tia-download-video.php?v=<?php echo urlencode($video); ?>">
|
||||
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Video <?php echo $videoHtml; ?></title>
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
header("Content-Type: application/json");
|
||||
$tia_content = [["tia_type"=>"creator","tia_data"=>["tia_title"=>"Mike Nolan's Holy Videos", "tia_id"=>"7f286552-118e-4496-bd4c-8876c9cc7b96","tia_description_type"=>"text","tia_description"=>"I am Mike Nolan And I am a computer programmer, who found Jesus.\nI am also the person who created TIA."]]];
|
||||
$videos = scandir('videos');
|
||||
$videos = array_diff($videos,array('.','..','README.txt','descriptions'));
|
||||
|
||||
foreach($videos as $video)
|
||||
{
|
||||
$path_parts = pathinfo($video);
|
||||
|
||||
$filename = $path_parts['filename'];
|
||||
|
||||
$myvideo= ["tia_type" => "video", "tia_data" => ["tia_title" => $filename ,"tia_id" => $filename, "tia_filename" => $filename.".mp4", "tia_download_url" => "https://myholyvids.site.tesses.net/videos/".rawurlencode($filename).".mp4", "tia_description_type" => "html", "tia_description" => file_get_contents("./videos/descriptions/".$filename.".html"), "tia_creator_id" => "7f286552-118e-4496-bd4c-8876c9cc7b96"]];
|
||||
|
||||
array_push($tia_content,$myvideo);
|
||||
|
||||
}
|
||||
$json_data = [
|
||||
"tia_site_name" => "My Holy Vids",
|
||||
"tia_site_root" => "https://myholyvids.site.tesses.net/",
|
||||
"tia_content" => $tia_content
|
||||
];
|
||||
|
||||
echo json_encode($json_data);
|
||||
|
||||
?>
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
header("Content-Type: application/json");
|
||||
$json_data = [
|
||||
"tia_site_name" => "My Holy Vids",
|
||||
"tia_site_root" => "https://myholyvids.site.tesses.net/",
|
||||
"tia_content"=>[
|
||||
["tia_type" => "video", "tia_data" => ["tia_title" => $_GET["v"] ,"tia_id" => $_GET["v"], "tia_filename" => $_GET["v"].".mp4", "tia_download_url" => "https://myholyvids.site.tesses.net/videos/".rawurlencode($_GET["v"]).".mp4", "tia_description_type" => "html", "tia_description" => file_get_contents("./videos/descriptions/".$_GET["v"].".html"), "tia_creator_id" => "7f286552-118e-4496-bd4c-8876c9cc7b96"]]
|
||||
]
|
||||
];
|
||||
echo json_encode($json_data);
|
||||
?>
|
Loading…
Reference in New Issue