Rev 14344 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
10410 | bpr | 1 | !!define also in class/initclass |
2 | !set auth_method_list=ldap,cas,php |
||
3 | !if $class_cas_auth=$empty |
||
4 | !set m_init_parm=!replace internal & by $ $ in $module_init_parm |
||
5 | !set class_cas_auth=!getopt class_auth in $m_init_parm |
||
6 | !endif |
||
10920 | bpr | 7 | !default auth_method=$(wims_authidp[1;]) |
8 | |||
10415 | bpr | 9 | !set module_config=adm/class/config |
10416 | bpr | 10 | !set module_special=adm/modtool adm/quicktool adm/latex2wims |
10417 | bpr | 11 | !set isexample=!charcnt $wims_class |
12 | !if $isexample=4 |
||
13 | !set isexample=yes |
||
17796 | bpr | 14 | !if anonymous isin $wims_user |
10417 | bpr | 15 | !goto pref |
16 | !endif |
||
17 | !endif |
||
10416 | bpr | 18 | |
19 | !if $module notwordof $module_special |
||
10419 | bpr | 20 | !if $wims_user!=$empty |
21 | !if ($wims_user!=supervisor \ |
||
22 | or ($wims_class isitemof $wims_supervise and $module=$module_config)) |
||
12652 | bpr | 23 | !read themes/_procs/userprop.proc wims_user_links |
10426 | bpr | 24 | !endif |
10419 | bpr | 25 | !if ($auth_method notitemof $auth_method_list and $wims_user!=supervisor) \ |
10415 | bpr | 26 | or ($module=$module_config and $wims_user=supervisor \ |
27 | and ($wims_class isitemof $wims_supervise or $wims_class=$wims_superclass\ |
||
28 | or $wims_superclass=$empty )) |
||
10426 | bpr | 29 | !set wims_user_links=!append line passwd,1,module=adm/class/passwd&job=user\ |
10410 | bpr | 30 | to $wims_user_links |
10419 | bpr | 31 | !endif |
32 | !endif |
||
10428 | obado | 33 | |
10417 | bpr | 34 | :pref |
10410 | bpr | 35 | !! "Display prefs" |
36 | !set wims_user_links=!append line pref,1,module=adm/light&phtml=useropts.phtml.$lang\ |
||
14344 | guerimand | 37 | cgu,1,module=adm/light&phtml=cgu.phtml\ |
10410 | bpr | 38 | to $wims_user_links |
14344 | guerimand | 39 | |
10410 | bpr | 40 | !endif |
41 | !if $module iswordof adm/modtool |
||
42 | !set wims_user_links=account,1,module=adm/modtool&cmd=reply&jobreq=prop |
||
43 | !endif |
||
10417 | bpr | 44 | |
45 | :end |
||
10410 | bpr | 46 | !set wims_user_links_cnt=!linecnt $wims_user_links |
47 | |||
10427 | bpr | 48 | !! FIXME wims_realuser or $wims_user |
10670 | bpr | 49 | !if $wims_superclass!=$wims_class and $wims_realuser=supervisor and $wims_user=supervisor |
50 | !set wims_which_user=!getdef user_firstname user_lastname in wimshome/log/classes/$wims_superclass/supervisor |
||
51 | !endif |
||
52 | !if $wims_which_user issametext $empty |
||
53 | !set wims_which_user=$wims_firstname $wims_lastname |
||
54 | !endif |
||
55 | !if $wims_which_user issametext $empty |
||
10416 | bpr | 56 | !set wims_which_user=$wims_devfirstname $wims_devlastname |
57 | !endif |