This repository has been archived on 2024-02-16. You can view files and clone it, but cannot push or open issues or pull requests.
ITSynOpen/server/status.php

38 lines
893 B
PHP
Raw Normal View History

<?php
2016-10-23 20:24:03 +02:00
header('Content-type: application/json');
$str=file_get_contents('status.txt');
$arr=explode(',',$str);
$open=$arr[0];
$date=$arr[1]; //lastchange: upadate via file see explode/implode
echo <<< eot
{
"api_compatibility":["14"],
"space":"IT-Syndikat",
2022-03-29 23:08:50 +02:00
"logo":"https://it-syndikat.org/api/images/its_l.png",
"url":"https://it-syndikat.org",
2016-10-23 20:24:03 +02:00
"location":{
"address":"Tschamlerstrasse 3, 6020 Innsbruck, Austria",
"lat":47.2578,
"lon":11.3961
},
"state":{
"open":$open,
"lastchange":$date,
"icon":{
2022-03-29 23:08:50 +02:00
"open":"https://it-syndikat.org/api/images/ITS_Open.png",
"closed":"https://it-syndikat.org/api/images/ITS_Closed.png"
2016-10-23 20:24:03 +02:00
}
},
"contact":{
"phone":"+43512563468",
"twitter":"@ItSyndikat",
"email":"wir@it-syndikat.org",
"ml":"its-public@lists.catbull.com"
},
2016-10-23 20:24:03 +02:00
"ext_ccc": "chaostreff"
}
eot;
?>