-
Notifications
You must be signed in to change notification settings - Fork 0
/
imagestatus.gif.html
59 lines (45 loc) · 1.33 KB
/
imagestatus.gif.html
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<<
# imagestatus.gif does a goto to this page /#
function sendcommand(command) locals temp,path,t,x,tr do
securitycode=encrypt(domainname,"livetalk")
x=netsockopen(0,"localhost",portnumber,100)
if x[1,1]<>'TRUE' then x=netsockclose(0) return 'ERROR Connecting to AIM RELAY server' /return /if
x=netsockwrite(0,securitycode+" "+command+cr+lf)
if x[1,1]<>'TRUE' then x=netsockclose(0) return 'ERROR Writing command to AIM RELAY server' /return /if
x=""
temp=""
while x<>"CLOSE" do
x=netsockread(0,500)
if x="CLOSE" then else temp=temp+x+lf /if
/while
x=netsockclose(0)
if left(command,7)="BRIDGES" then
temp=replaceall(temp,'"','')
if right(temp,1)=lf then temp=left(temp,length(temp)-1) /if
temp=ci_deltexttovar(temp,lf,",")
/if
return temp /return
/function
function DLLci_deltexttovar(text,rw,cl) locals a,b,c,x do
text=split(text,rw)
a='ERROR'
for name=text rowname=b do
b=listtorow(b,cl)
for name=x value=1 to cols(b) do
b[x,1]=replaceall(b[x,1],'{COMMA}',',')
b[x,1]=replaceall(b[x,1],'{PIPE}','|')
/for
if a='ERROR' then a=b else a=append(a,b) /if
/for
return a /return
/function
ready=sendcommand("READY")
if ready>0 and isinteger(ready) then
b='images/livehelp.gif'
elif ready=0 then
b='images/livehelpoff.gif'
else
b='images/livehelpna.gif'
/if
y=filepush(b,"image/gif")
>>