Subversion Repositories wimsdev

Rev

Rev 15636 | 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
 
15636 guerimand 21
!! ---------- test if site manager open configfilsize
22
test=!defof optionalmod_parameter in wimshome/log/wims.conf
23
!if tchat_nofile isitemof $test
24
  conf_nofile=yes
25
  tchat_configfilesize=0
26
!else
27
  !reset conf_nofile
28
  !bound tchat_configfilesize between 0 and 4 default 0
29
!endif
30
 
14777 guerimand 31
!if $wims_class!=$empty
32
  !sh mkdir -p $wims_home/log/classes/$wims_class/tchat;
33
  statuttchat=open
34
!else
35
  statuttchat=closed
36
  !exit
37
!endif
38
 
14876 guerimand 39
!if $ulist=$empty
14777 guerimand 40
  !! --- check for list of user
41
  nbuser=!recordcnt wimshome/log/classes/$wims_class/.userlist
14861 guerimand 42
  !reset ulist,nlist
14777 guerimand 43
  !for i=1 to $nbuser
44
    u_=!record $i of wimshome/log/classes/$wims_class/.userlist
45
    !distribute item $u_ into l_,f_,n_
46
    ulist=!append item $n_ to $ulist
14861 guerimand 47
    nlist=!append item $f_ $l_ to $nlist
14777 guerimand 48
  !next i
49
!endif
50