From: <jgr...@us...> - 2003-04-18 21:02:05
|
Update of /cvsroot/popfile/engine/UI In directory sc8-pr-cvs1:/tmp/cvs-serv1421/UI Modified Files: HTML.pm Log Message: Create link for log file on Configuration page and enable downloading of log files Index: HTML.pm =================================================================== RCS file: /cvsroot/popfile/engine/UI/HTML.pm,v retrieving revision 1.135 retrieving revision 1.136 diff -C2 -d -r1.135 -r1.136 *** HTML.pm 18 Apr 2003 18:58:23 -0000 1.135 --- HTML.pm 18 Apr 2003 21:02:00 -0000 1.136 *************** *** 304,307 **** --- 304,312 ---- } + if ( $url =~ /(popfile.*\.log)/ ) { + $self->http_file_( $client, $1, 'text/plain' ); + return 1; + } + if ( $url =~ /\/(.+\.gif)/ ) { $self->http_file_( $client, $1, 'image/gif' ); *************** *** 926,930 **** $body .= ">$self->{language__}{Configuration_ToScreenFile}</option>\n"; $body .= "</select>\n<input type=\"submit\" class=\"submit\" name=\"submit_debug\" value=\"$self->{language__}{Apply}\" />\n"; ! $body .= "</form>\n</td>\n</tr>\n</table>\n"; http_ok($self, $client,$body,0); --- 931,941 ---- $body .= ">$self->{language__}{Configuration_ToScreenFile}</option>\n"; $body .= "</select>\n<input type=\"submit\" class=\"submit\" name=\"submit_debug\" value=\"$self->{language__}{Apply}\" />\n"; ! $body .= "</form>\n"; ! ! if ( $self->global_config_( 'debug' ) & 1 ) { ! $body .= "<p><a href=\"" . $self->logger()->debug_filename() . "\">$self->{language__}{Configuration_CurrentLogFile}</a>"; ! } ! ! $body .= "</td>\n</tr>\n</table>\n"; http_ok($self, $client,$body,0); |