Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
20 reyssat 1
!distribute items $wims_read_parm into authprep_class,authprep_user
2
!if user notwordof $wims_prefix
3
 wims_prefix=$wims_prefix user
4
!endif
5
 
6
overflow=!record 0 of wimshome/log/cquota/lim.class
7
!if $authprep_class iswordof $overflow
12555 bpr 8
  !usererror overload
20 reyssat 9
!endif
10
 
11
!read adm/class/otherclass classes,$authprep_class,$authprep_user
12
 
13
accessright=!record 0 of wimshome/log/classes/$authprep_class/accessright
14
accessright=!items2words $accessright
15
accessright=!singlespace $accessright
16
!default class_lock=0
17
 
18
!if $class_type iswordof 2 4
12555 bpr 19
  !default class_superclass=$authprep_class
20 reyssat 20
!endif
21
 
22
authprep_realuser=
23
!if $class_superclass!=$empty
12555 bpr 24
  class_supertype=!defof class_type in wimshome/log/classes/$class_superclass/.def
25
  authprep_realuser=$wims_realuser
26
  !if $wims_user!=$empty and $wims_user!=supervisor and $authprep_user=supervisor
27
    authprep_realuser=$wims_user
28
  !endif
29
  !if $authprep_realuser != $authprep_user
30
    !readdef wimshome/log/classes/$class_superclass/.users/$authprep_realuser
31
  !endif
20 reyssat 32
!endif
6733 bpr 33
!default class_theme_icon=$wims_theme_icon
34
!default class_theme=$wims_theme
20 reyssat 35
!default class_supertype=0
36
!default authprep_realuser=$wims_user
5338 bpr 37
!default authprep_realuser=$authprep_user
20 reyssat 38
 
10053 bpr 39
!set wims_name_sequence=!defof sequence_Title in wimshome/log/classes/$authprep_class/seq/.def
40
 
20 reyssat 41
classdef=wims_class=$authprep_class\
42
wims_user=$authprep_user\
43
wims_realuser=$authprep_realuser\
5103 bpr 44
wims_external_auth=$user_external_auth\
20 reyssat 45
wims_firstname=$user_firstname\
46
wims_lastname=$user_lastname\
47
wims_email=$user_email\
48
wims_superclass=$class_superclass\
49
wims_supertype=$class_supertype\
50
wims_typename=$class_typename\
51
wims_participate=$user_participate\
52
wims_supervise=$user_supervise\
53
wims_classname=$class_description\
54
wims_institutionname=$class_institution\
10565 bpr 55
wims_class_location=$class_location\
20 reyssat 56
wims_supervisor=$class_supervisor\
57
wims_supervisormail=$class_email\
58
wims_otherclass=$wims_otherclass\
59
wims_classlock=$class_lock\
60
wims_class_exolog=$class_exolog\
61
wims_class_examlog=$class_examlog\
603 bpr 62
wims_class_examshow=$class_examshow\
1404 bpr 63
wims_class_ent=$class_ent\
2756 bpr 64
wims_class_external_auth=$class_external_auth\
65
wims_class_mixed_external_auth=$class_mixed_external_auth\
20 reyssat 66
wims_accessright=$accessright\
4884 guerimand 67
wims_exotitleform=$class_exotitleform\
5352 guerimand 68
wims_supconnectshowed=$class_supconnectshowed\
20 reyssat 69
wims_caller=$wims_caller\
70
wims_sup_secure=$sup_secure\
71
wims_useropts=$user_opts\
72
wims_bgcolor=$class_bgcolor\
73
wims_bgimg=$class_bgimg\
74
wims_css=$class_css\
75
wims_theme=$class_theme\
3408 bpr 76
wims_class_bgcolor=$class_bgcolor\
1404 bpr 77
wims_theme_icon=$class_theme_icon\
20 reyssat 78
wims_class_refcolor=$class_refcolor\
2524 bpr 79
wims_class_ref_menucolor=$class_ref_menucolor\
3064 bpr 80
wims_class_ref_button_color=$class_ref_button_color\
81
wims_class_ref_button_bgcolor=$class_ref_button_bgcolor\
82
wims_class_ref_button_help_color=$class_ref_button_help_color\
83
wims_class_ref_button_help_bgcolor=$class_ref_button_help_bgcolor\
633 bpr 84
wims_robotcheck=manual\
5069 bpr 85
wims_authidp=$class_authidp\
5015 bpr 86
wims_idp_auth=$(class_idp_auth)\
87
wims_cas_auth=$(class_cas_auth)\
88
wims_ldap_auth=$(class_ldap_auth)\
633 bpr 89
wims_ldap_port=$(class_ldap_port)\
90
wims_ldap_version=$(class_ldap_version)\
91
wims_ldap_base=$(class_ldap_base)\
92
wims_ldap_branch=$(class_ldap_branch)\
93
wims_ldap_uid=$(class_ldap_uid)\
5024 bpr 94
wims_ldap_login=$(class_ldap_login)\
95
wims_ldap_email=$(class_ldap_email)\
96
wims_ldap_photourl=$(class_ldap_photourl)\
9692 bpr 97
wims_ldap_regnum=$(class_ldap_regnum)\
10053 bpr 98
wims_examscore_withoutip=$(class_examscore_withoutip)\
11633 bpr 99
wims_name_sequence=$(wims_name_sequence)\
100
wims_class_level=$(class_level)
20 reyssat 101
 
53 guerimand 102
!if $authprep_user=supervisor
12555 bpr 103
  !for k in qnum,qcmlevel,scoredelay,qcmpresent,presentsol,check,expow,sepow,precw
104
    !if $(user_$k)!=$empty
105
      classdef=$classdef\
53 guerimand 106
wims_oefdefault_$k=$(user_$k)
12555 bpr 107
    !endif
108
  !next k
3095 guerimand 109
!else
12555 bpr 110
  classdef=$classdef\
3095 guerimand 111
wims_showlivret=$class_showlivret
53 guerimand 112
!endif