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

54 lines
1.3 KiB
PHP
Executable file

<?php
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":"0.13",
"api_compatibility":["14"],
"space":"IT-Syndikat",
"logo":"https://spaceapi.it-syndikat.org/api/images/its_l.png",
"url":"https://it-syndikat.org",
"location":{
"address":"Tschamlerstrasse 3, 6020 Innsbruck, Austria",
"lat":47.2578,
"lon":11.3961
},
"state":{
"open":$open,
"lastchange":$date,
"icon":{
"open":"https://spaceapi.it-syndikat.org/api/images/ITS_Open.png",
"closed":"https://spaceapi.it-syndikat.org/api/images/ITS_Closed.png"
}
},
"contact":{
"phone":"+43 512 563468",
"mastodon":"@itsyndikat@chaos.social",
"twitter":"@ItSyndikat",
"email":"wir@it-syndikat.org",
"matrix":"#lobby:it-syndik.at"
},
"issue_report_channels":["email"],
"membership_plans":[
{
"name": "Normal membership",
"value": 20,
"currency": "EUR",
"billing_interval": "monthly"
},
{
"name": "Student membership",
"value": 10,
"currency": "EUR",
"billing_interval": "monthly"
}
],
"ext_ccc": "chaostreff"
}
eot;
?>