-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathads.php
25 lines (18 loc) · 837 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
<?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];
$ztime=time();
//fill ad to show
$ad="<B>Sample Ad</B><BR>Edit ads in ads.php. Also edit vs_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