spaceapi.php
This commit is contained in:
parent
10e49df2fc
commit
b2a9df80c6
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
$quelltext = file_get_contents("http://www.chaostreff-dortmund.de/raumstatus.php?txt");
|
||||
?>
|
||||
{
|
||||
"api":"0.12",
|
||||
"space":"Chaostreff-Dortmund",
|
||||
"logo":"https://wiki.ctdo.de/lib/tpl/dokubook/images/ctdo.png",
|
||||
"icon":{
|
||||
"open":"http://www.chaostreff-dortmund.de/green.png",
|
||||
"closed":"http://www.chaostreff-dortmund.de/red.png"
|
||||
},
|
||||
"url":"https://www.chaostreff-dortmund.de/",
|
||||
"address":"Braunschweigerstr. 22, 44145 Dortmund, Germany",
|
||||
"contact":{
|
||||
"irc":"irc://irc.hackint.org/#ccc.do",
|
||||
"twitter":"@ctdo",
|
||||
"email":"presse@chaostreff-dortmund.de",
|
||||
"ml":"ccc@chaostreff-dortmund.de"
|
||||
},
|
||||
"lat":51.527664,
|
||||
"lon":7.465072,
|
||||
"open":<?php if($quelltext == "online\n") echo "true"; else echo "false";?>
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue