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