Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 30 lines (22 sloc) 0.564 kB
3b685bd @basti2342 initial commit
basti2342 authored
1 <?php
2 # API LOCATION
3 $API_LOCATION = "http://hickerspace.org/api/";
4
5 # API Key
6 $API_KEY = "";
7
8 # room status file
9 $ROOM_STATUS_FILE = "{WWW-DIRECTORY}/api/room/room_status.txt";
10
11 # timeout in minutes when to mark room closed (after last "open message")
12 $ROOM_TIMEOUT = 20;
13
14 # people limit for status "open"
15 $PEOPLE_LIMIT = 3;
16
17 # lower people limit for status "open" on fridays after 19.00
18 $PEOPLE_LIMIT_FR = 1;
19
20 # FUNCTIONS
21 function isHttps() {
22 return isset($_SERVER["HTTPS"]);
23 }
24
25 function isAuthd($apikey) {
26 global $API_KEY;
27 return ($apikey == $API_KEY);
28 }
29 ?>
Something went wrong with that request. Please try again.