changed api level to 1.3
This commit is contained in:
parent
1e8d615877
commit
446eac5a8e
1 changed files with 22 additions and 17 deletions
|
@ -1,33 +1,38 @@
|
||||||
<?php
|
<?php
|
||||||
header('Content-type: application/json');
|
header('Content-type: application/json');
|
||||||
$str=file_get_contents('status.txt');
|
$str=file_get_contents('status.txt');
|
||||||
$arr=explode(',',$str);
|
$arr=explode(',',$str);
|
||||||
$open=$arr[0];
|
$open=$arr[0];
|
||||||
$date=$arr[1]; //lastchange: upadate via file see explode/implode
|
$date=$arr[1]; //lastchange: upadate via file see explode/implode
|
||||||
echo <<< eot
|
echo <<< eot
|
||||||
{
|
{
|
||||||
"api":"0.12",
|
"api":"0.13",
|
||||||
"space":"IT-Syndikat",
|
"space":"IT-Syndikat",
|
||||||
|
"logo":"http://it-syndikat.org/api/images/its_l.png",
|
||||||
"url":"http://it-syndikat.org",
|
"url":"http://it-syndikat.org",
|
||||||
"icon":{
|
"location":{
|
||||||
"open":"http://it-syndikat.org/images/ITS_Open.png",
|
"address":"Tschamlerstrasse 3, 6020 Innsbruck, Austria",
|
||||||
"closed":"http://it-syndikat.org/images/ITS_Closed.png"
|
"lat":47.2578,
|
||||||
|
"lon":11.3961
|
||||||
|
},
|
||||||
|
"state":{
|
||||||
|
"open":$open,
|
||||||
|
"lastchange":$date,
|
||||||
|
"icon":{
|
||||||
|
"open":"http://it-syndikat.org/api/images/ITS_Open.png",
|
||||||
|
"closed":"http://it-syndikat.org/api/images/ITS_Closed.png"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"address":"Tschamlerstrasse 3, 6020 Innsbruck, Austria",
|
|
||||||
"contact":{
|
"contact":{
|
||||||
"phone":"+43512563468",
|
"phone":"+43512563468",
|
||||||
"twitter":"@ItSyndikat",
|
"twitter":"@ItSyndikat",
|
||||||
"email":"wir@it-syndikat.org",
|
"email":"wir@it-syndikat.org",
|
||||||
"ml":"its-public@lists.catbull.com"
|
"ml":"its-public@lists.catbull.com"
|
||||||
},
|
},
|
||||||
"open":$open,
|
"issue_report_channels":["email"],
|
||||||
"lastchange":$date,
|
"ext_ccc": "chaostreff"
|
||||||
"logo":"http://it-syndikat.org/images/its_l.png",
|
|
||||||
"lat":47.2578,
|
|
||||||
"lon":11.3961
|
|
||||||
}
|
}
|
||||||
|
|
||||||
eot;
|
eot;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
Reference in a new issue