-
Notifications
You must be signed in to change notification settings - Fork 24
/
ads.php
31 lines (22 loc) · 920 Bytes
/
ads.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
29
30
31
<?php
/* Sample local ads serving script ; Or use http://adinchat.com compatible ads server to setup http://adinchat.com/v/your-campaign-id
POST Variables:
u=Username
s=Session, usually same as username
r=Room
ct=session time (in milliseconds)
lt=last session time received (from web status script)
*/
$room=$_POST[r];
$session=$_POST[s];
$username=$_POST[u];
$currentTime=$_POST[ct];
$lastTime=$_POST[lt];
$cam=$_POST['cam'];
$mic=$_POST['mic'];
$webcam=0;
if ($cam==2) $webcam=1;
$ztime=time();
//fill ad to show
$ad="<B>Sample Ad</B><BR>Edit ads in ads.php. Also edit vc_login.php to setup adsInterval in milliseconds (0 to disable ad calls), adsTimeout to setup time in milliseconds until first ad is shown. Also see <a href=\"http://www.adinchat.com\" target=\"_blank\"><U><B>AD in Chat</B></U></a> compatible ad management server.";
?>x=1&ad=<?=urlencode($ad)?>&loadstatus=1