Rev 18030 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
14499 | guerimand | 1 | !read tabletheme |
16275 | guerimand | 2 | |
16496 | guerimand | 3 | DEBUG_MODULE=!defof DEBUG_MODULE in wimshome/public_html/bases/sys/define.conf |
14499 | guerimand | 4 | !if $data=$empty |
16275 | guerimand | 5 | !! -------test for an old exologfile (in the class) |
16386 | guerimand | 6 | !if $logtype=exam |
7 | test=!fileexists wimshome/log/classes/$wims_class/examlog/$checkuser/$checksession/$logcheck |
||
16275 | guerimand | 8 | !if $test=yes |
16386 | guerimand | 9 | exologfile=log/classes/$wims_class/examlog/$checkuser/$checksession/$logcheck |
10 | !endif |
||
11 | !else |
||
12 | !if $logcheck!=$empty |
||
13 | test=!fileexists wimshome/log/classes/$wims_class/exolog/$checkuser/$logcheck |
||
14 | !if $test=yes |
||
15 | exologfile=log/classes/$wims_class/exolog/$checkuser/$logcheck |
||
16 | !endif |
||
17 | !endif |
||
18 | !endif |
||
19 | !if $exologfile!=$empty |
||
20 | dt1=!getdef w_author\ |
||
14513 | guerimand | 21 | w_email\ |
22 | w_module\ |
||
23 | w_wims_seed\ |
||
16275 | guerimand | 24 | w_deffile in wimshome/$exologfile |
25 | vardata=!sh cat $wims_home/$exologfile; |
||
16386 | guerimand | 26 | !else |
27 | !! ------- if not use the actual exologfile |
||
16275 | guerimand | 28 | parent=!replace internal $wims_subsession by $empty in $wims_session |
29 | dt1=!getdef w_author\ |
||
30 | w_email\ |
||
31 | w_module\ |
||
32 | w_wims_seed\ |
||
16270 | guerimand | 33 | w_deffile\ |
34 | w_worksheet\ |
||
35 | w_wims_exo in wimshome/sessions/$parent/var |
||
16701 | guerimand | 36 | !if $(dt1[3;])=adm/class/exam |
37 | !! detect supervisor call sendbug from an exercice in an exam |
||
38 | parent=$(parent)_new |
||
39 | dt1=!getdef w_author\ |
||
40 | w_email\ |
||
41 | w_module\ |
||
42 | w_wims_seed\ |
||
43 | w_deffile\ |
||
44 | w_worksheet\ |
||
45 | w_wims_exo in wimshome/sessions/$parent/var |
||
46 | |||
47 | !endif |
||
16275 | guerimand | 48 | !if $(dt1[6;])!=$empty and $(dt1[7;])!=$empty |
49 | test=!fileexists wimshome/sessions/$parent/exolog.$(dt1[6;]).$(dt1[7;]) |
||
50 | !else |
||
51 | test=no |
||
52 | !endif |
||
53 | !if $test=yes |
||
54 | exologfile=sessions/$parent/exolog.$(dt1[6;]).$(dt1[7;]) |
||
55 | !else |
||
56 | exologfile=sessions/$parent/exolog |
||
57 | !endif |
||
58 | vardata=!sh sed 's#$parent#BUGSESSION#gi' $wims_home/$exologfile; |
||
16270 | guerimand | 59 | !endif |
14513 | guerimand | 60 | modulefile=!nospace wimshome/public_html/modules/$(dt1[3;])/INDEX |
61 | dt2=!getdef category\ |
||
62 | author\ |
||
63 | address\ |
||
64 | maintainer_address\ |
||
65 | version in $modulefile |
||
16496 | guerimand | 66 | t_email2=!replace internal xiao@unice.fr by $DEBUG_MODULE in $(dt2[3;]) |
14518 | guerimand | 67 | |
14513 | guerimand | 68 | data=module=$(dt1[3;])\ |
69 | module_author=$(dt2[2;])\ |
||
70 | module_version=$(dt2[5;])\ |
||
14518 | guerimand | 71 | module_mail=$t_email2\ |
14513 | guerimand | 72 | module_maintainer_mail=$(dt2[4;]) |
18030 | bpr | 73 | local_email=$t_email2,$(dt2[4;]) |
17858 | bpr | 74 | tmp=!nospace $(dt2[1;]) |
75 | !if oef isitemof $tmp |
||
76 | t_email1=!replace internal xiao@unice.fr by $DEBUG_MODULE in $(dt1[2;]) |
||
77 | tmp=!replace internal def/ by $empty in $(dt1[5;]) |
||
78 | tmp=!replace internal .def by $empty in $tmp |
||
79 | data=$data\ |
||
14513 | guerimand | 80 | \ |
81 | OEF_exo=$tmp\ |
||
82 | OEF_author=$(dt1[1;])\ |
||
14518 | guerimand | 83 | OEF_email=$t_email1 |
17648 | bpr | 84 | local_email=!append item $t_email1 to $local_email |
17858 | bpr | 85 | !endif |
14504 | bpr | 86 | data=$data\ |
14513 | guerimand | 87 | \ |
14499 | guerimand | 88 | Server=$httpd_HTTP_HOST\ |
14513 | guerimand | 89 | Server_version=$wims_version\ |
90 | Server_seed=$(dt1[4;])\ |
||
91 | Server_time=$wims_now\ |
||
14499 | guerimand | 92 | \ |
14513 | guerimand | 93 | Sender=$wims_firstname $wims_lastname\ |
94 | Sender_mail=$wims_email |
||
14499 | guerimand | 95 | |
96 | !endif |
||
17648 | bpr | 97 | listaddr=$wims_email,$local_email,$DEBUG_MODULE |
98 | listaddr=!nonempty item $listaddr |
||
99 | listaddr=!listuniq $listaddr |
||
14499 | guerimand | 100 | !if $save!=$empty |
14508 | obado | 101 | !if $source!=$empty |
17330 | bpr | 102 | !set tmp=!replace internal module= by in $(data[1;]) |
103 | !set tmp=!replace internal . by , in $tmp |
||
14508 | obado | 104 | source=!char 1 to 1000 of $source |
105 | listaddr=!items2words $listaddr |
||
16277 | guerimand | 106 | vardata=!replace internal $\ |
18094 | reyssat | 107 | $ by <br>$\ |
108 | $ in $vardata |
||
16273 | guerimand | 109 | !mailto $listaddr\ |
15513 | bpr | 110 | $wims_email\ |
17330 | bpr | 111 | [WIMS] $name_titlemail $(tmp[1])\ |
15488 | obado | 112 | <h2>$name_mailcomment</h2>\ |
14508 | obado | 113 | <p>$source</p>\ |
15488 | obado | 114 | <h2>$name_mailinfogene</h2>\ |
16270 | guerimand | 115 | <pre>$data</pre>\ |
116 | \ |
||
117 | var file\ |
||
118 | $vardata |
||
17330 | bpr | 119 | !reset tmp |
14508 | obado | 120 | success=confirm |
121 | !else |
||
122 | error=no_comment |
||
123 | !endif |
||
14499 | guerimand | 124 | !endif |
125 | |||
126 | !reset save |