diff options
| author | fukachan <fukachan> | 2001-11-11 23:33:59 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2001-11-11 23:33:59 +0000 |
| commit | d9a188cae87f737260d07e3c3c942c8295c6dec8 (patch) | |
| tree | be72689be45efd2080e22e1b10e476fd8a47f028 /fml/lib/FML/CGI | |
| parent | e98db4e30dd9e4f4bc5a6ec6b2af8f622aa7e244 (diff) | |
| download | fml8-d9a188cae87f737260d07e3c3c942c8295c6dec8.tar.gz fml8-d9a188cae87f737260d07e3c3c942c8295c6dec8.tar.bz2 fml8-d9a188cae87f737260d07e3c3c942c8295c6dec8.zip | |
move "function to get paramlist" to FML::Process::CGI::Param module
implement safe_pramlist\d+_\S+() via AUTOLOAD()
Diffstat (limited to 'fml/lib/FML/CGI')
| -rw-r--r-- | fml/lib/FML/CGI/ThreadTrack.pm | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/fml/lib/FML/CGI/ThreadTrack.pm b/fml/lib/FML/CGI/ThreadTrack.pm index 92ca9cbf..088f006f 100644 --- a/fml/lib/FML/CGI/ThreadTrack.pm +++ b/fml/lib/FML/CGI/ThreadTrack.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: ThreadTrack.pm,v 1.4 2001/11/11 11:12:27 fukachan Exp $ +# $FML: ThreadTrack.pm,v 1.5 2001/11/11 13:37:40 fukachan Exp $ # package FML::CGI::ThreadTrack; @@ -90,8 +90,6 @@ sub run_cgi my $thread = new Mail::ThreadTrack $ttargs; $thread->set_mode('html'); - # for (param()) { print "PARAM(debug): $_ => ", param($_), "<BR>\n";} - if ($action eq 'list') { $thread->summary(); } @@ -103,15 +101,12 @@ sub run_cgi elsif ($action eq 'change_status') { # fmlthread.cgi is for administorator, so you can change status. if ($myname eq 'fmlthread.cgi') { - my (@id); - for my $param (param()) { - my $req = param($param); - if ($req eq 'closed') { - if ($param =~ /^change_status\.(\S+)\/(\d+)$/) { - my $tid = $thread->_create_thread_id_strings($2); - print "closed $tid\n"; print br; - $thread->close($tid); - } + my $list = $curproc->safe_paramlist2_threadcgi_change_status(); + for my $param (@$list) { + my ($ml, $id, $value) = @$param; + if ($value eq 'closed') { + my $tid = $thread->_create_thread_id_strings($id); + $thread->close($tid); } } } |
