Subversion Repositories wimsdev

Rev

Rev 14876 | Rev 14924 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
14868 guerimand 1
test=!defof allowed_optional_module in wimshome/log/wims.conf
2
!if class/tchat notitemof $test
3
  notallowed=1
4
  !exit
5
!endif
14777 guerimand 6
 
14903 guerimand 7
!! ------ configuration variable (maybe some of them should be parametrizable in a conf file ?)
8
!! -- number of char in a msg
9
msg_limit=400
10
!! -- number of char displayed
11
msg_numberlimit=10
12
!! -- number of msg in each record file (after change file with .old$num extension) this limit have to be superior of msg_numberlimit (display problem if not)
13
msg_recordlimit=100
14
!! -- max number of living in the class
15
msg_maxliving=10
16
!! -- max char fotr title living
17
title_limit=50
18
!! -- minimal time to refresh page
19
msg_min_timing=5
20
 
21
!read wimshome/log/classes/$wims_class/tchat/.def
22
!default tchat_open=no
23
!bound tchat_refreshtiming between $msg_min_timing and 1000 default $msg_min_timing
24
 
25
 
14777 guerimand 26
!if $wims_class!=$empty
27
  !sh mkdir -p $wims_home/log/classes/$wims_class/tchat;
28
  statuttchat=open
29
!else
30
  statuttchat=closed
31
  !exit
32
!endif
33
 
14876 guerimand 34
!if $ulist=$empty
14777 guerimand 35
  !! --- check for list of user
36
  nbuser=!recordcnt wimshome/log/classes/$wims_class/.userlist
14861 guerimand 37
  !reset ulist,nlist
14777 guerimand 38
  !for i=1 to $nbuser
39
    u_=!record $i of wimshome/log/classes/$wims_class/.userlist
40
    !distribute item $u_ into l_,f_,n_
41
    ulist=!append item $n_ to $ulist
14861 guerimand 42
    nlist=!append item $f_ $l_ to $nlist
14777 guerimand 43
  !next i
44
!endif
45