-
Notifications
You must be signed in to change notification settings - Fork 29
/
hooks.mtl
15 lines (11 loc) · 939 Bytes
/
hooks.mtl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//--------------------------------------------------------------------------------------------------
// Hooks
//--------------------------------------------------------------------------------------------------
fun hookRfid tag=
httprequest "POST" (strcatlist "http://"::config_get_server_url::"/hooks/rfid.php"::nil) (strcatlist "tag="::(webmac tag)::nil) nil HTTP_NORMAL;;
fun hookEars left right=
httprequest "POST" (strcatlist "http://"::config_get_server_url::"/hooks/ears.php"::nil) (strcatlist "left="::(itoa left)::"&right="::(itoa right)::nil) nil HTTP_NORMAL;;
fun hookClick timestamp=
httprequest "POST" (strcatlist "http://"::config_get_server_url::"/hooks/click.php"::nil) (strcatlist "time="::(itoa timestamp)::nil) nil HTTP_NORMAL;;
fun hookDblClick timestamp=
httprequest "POST" (strcatlist "http://"::config_get_server_url::"/hooks/dblclick.php"::nil) (strcatlist "time="::(itoa timestamp)::nil) nil HTTP_NORMAL;;