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