Rev 16503 | 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 |
||
15697 | bpr | 3 | wims_prefix=$wims_prefix user |
20 | reyssat | 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 |
13410 | bpr | 21 | !set idle_time=!defof idle_time in wimshome/log/wims.conf |
22 | !default idle_time=!defof DF_idle_time in wimshome/public_html/bases/sys/defaults.conf |
||
20 | reyssat | 23 | |
24 | authprep_realuser= |
||
25 | !if $class_superclass!=$empty |
||
12555 | bpr | 26 | class_supertype=!defof class_type in wimshome/log/classes/$class_superclass/.def |
27 | authprep_realuser=$wims_realuser |
||
28 | !if $wims_user!=$empty and $wims_user!=supervisor and $authprep_user=supervisor |
||
29 | authprep_realuser=$wims_user |
||
30 | !endif |
||
31 | !if $authprep_realuser != $authprep_user |
||
32 | !readdef wimshome/log/classes/$class_superclass/.users/$authprep_realuser |
||
33 | !endif |
||
20 | reyssat | 34 | !endif |
17285 | guerimand | 35 | !if $wims_realuser=SUPERVISOR |
36 | tmp=!getdef site_manager\ |
||
37 | firstname_manager\ |
||
38 | lastname_manager in wimshome/log/wims.conf |
||
39 | !distribute line $tmp into user_email,user_firstname,user_lastname |
||
40 | authprep_realuser=SUPERVISOR |
||
41 | !default user_firstname=server |
||
42 | !default user_lastname=administrator |
||
43 | !endif |
||
6733 | bpr | 44 | !default class_theme_icon=$wims_theme_icon |
45 | !default class_theme=$wims_theme |
||
20 | reyssat | 46 | !default class_supertype=0 |
47 | !default authprep_realuser=$wims_user |
||
5338 | bpr | 48 | !default authprep_realuser=$authprep_user |
20 | reyssat | 49 | |
10053 | bpr | 50 | !set wims_name_sequence=!defof sequence_Title in wimshome/log/classes/$authprep_class/seq/.def |
51 | |||
16040 | guerimand | 52 | !! ----------- manage of lastconnect |
16503 | guerimand | 53 | !if $authprep_user!=anonymous or $authprep_class>9999 |
54 | !if $authprep_user!=supervisor |
||
55 | target=wimshome/log/classes/$authprep_class/.users/$authprep_user |
||
56 | !else |
||
57 | target=wimshome/log/classes/$authprep_class/supervisor |
||
58 | !endif |
||
59 | last=!getdef user_lastconnect in $target |
||
60 | !setdef !set user_lastconnect=$wims_now in $target |
||
16040 | guerimand | 61 | !endif |
62 | !!--------------------------- |
||
17285 | guerimand | 63 | !default class_Supervisor=supervisor |
16040 | guerimand | 64 | |
20 | reyssat | 65 | classdef=wims_class=$authprep_class\ |
66 | wims_user=$authprep_user\ |
||
67 | wims_realuser=$authprep_realuser\ |
||
5103 | bpr | 68 | wims_external_auth=$user_external_auth\ |
20 | reyssat | 69 | wims_firstname=$user_firstname\ |
70 | wims_lastname=$user_lastname\ |
||
71 | wims_email=$user_email\ |
||
72 | wims_superclass=$class_superclass\ |
||
73 | wims_supertype=$class_supertype\ |
||
74 | wims_typename=$class_typename\ |
||
75 | wims_participate=$user_participate\ |
||
76 | wims_supervise=$user_supervise\ |
||
77 | wims_classname=$class_description\ |
||
78 | wims_institutionname=$class_institution\ |
||
10565 | bpr | 79 | wims_class_location=$class_location\ |
20 | reyssat | 80 | wims_supervisor=$class_supervisor\ |
81 | wims_supervisormail=$class_email\ |
||
82 | wims_otherclass=$wims_otherclass\ |
||
83 | wims_classlock=$class_lock\ |
||
84 | wims_class_exolog=$class_exolog\ |
||
85 | wims_class_examlog=$class_examlog\ |
||
603 | bpr | 86 | wims_class_examshow=$class_examshow\ |
1404 | bpr | 87 | wims_class_ent=$class_ent\ |
2756 | bpr | 88 | wims_class_external_auth=$class_external_auth\ |
89 | wims_class_mixed_external_auth=$class_mixed_external_auth\ |
||
20 | reyssat | 90 | wims_accessright=$accessright\ |
4884 | guerimand | 91 | wims_exotitleform=$class_exotitleform\ |
5352 | guerimand | 92 | wims_supconnectshowed=$class_supconnectshowed\ |
20 | reyssat | 93 | wims_caller=$wims_caller\ |
94 | wims_sup_secure=$sup_secure\ |
||
95 | wims_useropts=$user_opts\ |
||
96 | wims_bgcolor=$class_bgcolor\ |
||
97 | wims_bgimg=$class_bgimg\ |
||
98 | wims_css=$class_css\ |
||
99 | wims_theme=$class_theme\ |
||
3408 | bpr | 100 | wims_class_bgcolor=$class_bgcolor\ |
1404 | bpr | 101 | wims_theme_icon=$class_theme_icon\ |
20 | reyssat | 102 | wims_class_refcolor=$class_refcolor\ |
2524 | bpr | 103 | wims_class_ref_menucolor=$class_ref_menucolor\ |
3064 | bpr | 104 | wims_class_ref_button_color=$class_ref_button_color\ |
105 | wims_class_ref_button_bgcolor=$class_ref_button_bgcolor\ |
||
106 | wims_class_ref_button_help_color=$class_ref_button_help_color\ |
||
107 | wims_class_ref_button_help_bgcolor=$class_ref_button_help_bgcolor\ |
||
633 | bpr | 108 | wims_robotcheck=manual\ |
5069 | bpr | 109 | wims_authidp=$class_authidp\ |
5015 | bpr | 110 | wims_idp_auth=$(class_idp_auth)\ |
111 | wims_cas_auth=$(class_cas_auth)\ |
||
112 | wims_ldap_auth=$(class_ldap_auth)\ |
||
633 | bpr | 113 | wims_ldap_port=$(class_ldap_port)\ |
114 | wims_ldap_version=$(class_ldap_version)\ |
||
115 | wims_ldap_base=$(class_ldap_base)\ |
||
116 | wims_ldap_branch=$(class_ldap_branch)\ |
||
117 | wims_ldap_uid=$(class_ldap_uid)\ |
||
5024 | bpr | 118 | wims_ldap_login=$(class_ldap_login)\ |
119 | wims_ldap_email=$(class_ldap_email)\ |
||
120 | wims_ldap_photourl=$(class_ldap_photourl)\ |
||
9692 | bpr | 121 | wims_ldap_regnum=$(class_ldap_regnum)\ |
10053 | bpr | 122 | wims_examscore_withoutip=$(class_examscore_withoutip)\ |
11633 | bpr | 123 | wims_name_sequence=$(wims_name_sequence)\ |
13410 | bpr | 124 | wims_class_level=$(class_level)\ |
16040 | guerimand | 125 | wims_idletime=$idle_time\ |
17285 | guerimand | 126 | wims_user_lastconnect=$last\ |
127 | wims_class_Supervisor=$class_Supervisor |
||
20 | reyssat | 128 | |
53 | guerimand | 129 | !if $authprep_user=supervisor |
12555 | bpr | 130 | !for k in qnum,qcmlevel,scoredelay,qcmpresent,presentsol,check,expow,sepow,precw |
131 | !if $(user_$k)!=$empty |
||
132 | classdef=$classdef\ |
||
53 | guerimand | 133 | wims_oefdefault_$k=$(user_$k) |
12555 | bpr | 134 | !endif |
135 | !next k |
||
3095 | guerimand | 136 | !else |
12555 | bpr | 137 | classdef=$classdef\ |
3095 | guerimand | 138 | wims_showlivret=$class_showlivret |
53 | guerimand | 139 | !endif |