-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathvc_status.php
28 lines (22 loc) · 863 Bytes
/
vc_status.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/*
This is called by flash application each &statusInterval=10000 millisecons (as configured in vc_login.php script).
Returns real total credits and used timer that are used as configured by &showTimer=1&showCredit=1 .
POST Variables:
u=Username
s=Session, usually same as username
r=Room
ct=session time (in milliseconds)
lt=last session time received from this script in (milliseconds)
cam,mic=0 none, 1 disabled, 2 enabled
*/
$room=$_POST[r];
$session=$_POST[s];
$username=$_POST[u];
$currentTime=$_POST[ct];
$lastTime=$_POST[lt];
$cam=$_POST['cam'];
$mic=$_POST['mic'];
$maximumSessionTime=0; //900000ms=15 minutes
$disconnect=""; //anything else than "" will disconnect with that message
?>timeTotal=<?=$maximumSessionTime?>&timeUsed=<?=$currentTime?>&lastTime=<?=$currentTime?>&disconnect=<?=$disconnect?>&loadstatus=1