51 lines
1.1 KiB
PHP
Executable file
51 lines
1.1 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_compatibility":["14"],
|
|
"space":"IT-Syndikat",
|
|
"logo":"https://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://it-syndikat.org/api/images/ITS_Open.png",
|
|
"closed":"https://it-syndikat.org/api/images/ITS_Closed.png"
|
|
}
|
|
},
|
|
"contact":{
|
|
"phone":"+43512563468",
|
|
"twitter":"@ItSyndikat",
|
|
"email":"wir@it-syndikat.org",
|
|
"ml":"its-public@lists.catbull.com"
|
|
},
|
|
"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;
|
|
|
|
?>
|