This repository has been archived on 2022-12-28. You can view files and clone it, but cannot push or open issues or pull requests.
apiOld/calendar/holiday/api.php

15 lines
429 B
PHP
Raw Normal View History

2021-01-01 07:48:55 +00:00
<?php
header("Content-type:application/json;charset=utf-8");
$stream_opts = [
"ssl" => [
"verify_peer"=>false,
"verify_peer_name"=>false,
]
];
if($_GET['date'] == null){
2021-02-07 14:28:02 +00:00
header('HTTP/1.1 400 Bad Request');
header('status: 400 Bad Request');
echo '{"error":"400"}';
2021-01-01 07:48:55 +00:00
}else{
echo @file_get_contents("http://tool.bitefu.net/jiari/?d=".$_GET['date'],false, stream_context_create($stream_opts));
}