Code: Select all
bind time - "*" save:lusers
bind raw - "250" lusers0
bind raw - "251" lusers1
bind raw - "255" lusers5
bind raw - "265" lusers65
bind raw - "266" lusers66
set lusersfile "/var/www/portal/lusers.html"
set lusers0 ""; set lusers1 ""; set lusers5 ""; set lusers65 ""; set lusers66 "";
proc lusers0 {from cmd text} {
global lusers0
set lusers0 "$text"
}
proc lusers1 {from cmd text} {
global lusers1
set lusers1 "$text"
}
proc lusers5 {from cmd text} {
global lusers5
set lusers65 "$text"
}
proc lusers65 {from cmd text} {
global lusers65
set lusers65 "$text"
}
proc lusers66 {from cmd text} {
global lusers66
set lusers65 "$text"
}
proc save:lusers {min hour day mon year} {
putserv "LUSERS"
global lusersfile lusers0 lusers1 lusers5 lusers65 lusers66
set lusers [open $lusersfile w]
puts $lusers "$lusers0 <br> $lusers1 <br> $lusers5 <br> $lusers65 <br> $lusers66"
close $lusers
}
If anyone have some idea why dont work