From: <jgr...@us...> - 2003-03-05 21:37:02
|
Update of /cvsroot/popfile/engine/UI In directory sc8-pr-cvs1:/tmp/cvs-serv729/UI Modified Files: HTML.pm Log Message: Completed working of the security page Index: HTML.pm =================================================================== RCS file: /cvsroot/popfile/engine/UI/HTML.pm,v retrieving revision 1.106 retrieving revision 1.107 diff -C2 -d -r1.106 -r1.107 *** HTML.pm 5 Mar 2003 21:15:37 -0000 1.106 --- HTML.pm 5 Mar 2003 21:36:58 -0000 1.107 *************** *** 993,998 **** $self->config_( 'password', $self->{form__}{password} ) if ( defined($self->{form__}{password}) ); ! $self->config_( 'server', $self->{form__}{server} ) if ( defined($self->{form__}{server}) ); ! $self->config_( 'local', $self->{form__}{localpop}-1 ) if ( defined($self->{form__}{localpop}) ); $self->config_( 'local', $self->{form__}{localui}-1 ) if ( defined($self->{form__}{localui}) ); $self->config_( 'update_check', $self->{form__}{update_check}-1 ) if ( defined($self->{form__}{update_check}) ); --- 993,998 ---- $self->config_( 'password', $self->{form__}{password} ) if ( defined($self->{form__}{password}) ); ! $self->module_config_( 'pop3', 'secure_server', $self->{form__}{server} ) if ( defined($self->{form__}{server}) ); ! $self->module_config_( 'pop3', 'local', $self->{form__}{localpop}-1 ) if ( defined($self->{form__}{localpop}) ); $self->config_( 'local', $self->{form__}{localui}-1 ) if ( defined($self->{form__}{localui}) ); $self->config_( 'update_check', $self->{form__}{update_check}-1 ) if ( defined($self->{form__}{update_check}) ); *************** *** 1001,1005 **** if ( defined($self->{form__}{sport}) ) { if ( ( $self->{form__}{sport} >= 1 ) && ( $self->{form__}{sport} < 65536 ) ) { ! $self->config_( 'sport', $self->{form__}{sport} ); } else { $port_error = "<blockquote><div class=\"error01\">$self->{language__}{Security_Error1}</div></blockquote>"; --- 1001,1005 ---- if ( defined($self->{form__}{sport}) ) { if ( ( $self->{form__}{sport} >= 1 ) && ( $self->{form__}{sport} < 65536 ) ) { ! $self->module_config_( 'pop3', 'secure_port', $self->{form__}{sport} ); } else { $port_error = "<blockquote><div class=\"error01\">$self->{language__}{Security_Error1}</div></blockquote>"; *************** *** 1018,1022 **** $body .= "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" summary=\"\"><tr><td nowrap=\"nowrap\">\n"; ! if ( $self->config_( 'localpop' ) == 1 ) { $body .= "<form class=\"securitySwitch\" action=\"/security\">\n"; $body .= "<span class=\"securityWidgetStateOff\">$self->{language__}{Security_NoStealthMode}</span>\n"; --- 1018,1022 ---- $body .= "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" summary=\"\"><tr><td nowrap=\"nowrap\">\n"; ! if ( $self->module_config_( 'pop3', 'local' ) == 1 ) { $body .= "<form class=\"securitySwitch\" action=\"/security\">\n"; $body .= "<span class=\"securityWidgetStateOff\">$self->{language__}{Security_NoStealthMode}</span>\n"; *************** *** 1132,1147 **** $body .= "<form action=\"/security\">\n"; $body .= "<label class=\"securityLabel\" for=\"securitySecureServer\">$self->{language__}{Security_SecureServer}:</label><br />\n"; ! $body .= "<input type=\"text\" name=\"server\" id=\"securitySecureServer\" value=\"" . $self->config_( 'server' ) . "\" />\n"; $body .= "<input type=\"submit\" class=\"submit\" name=\"update_server\" value=\"$self->{language__}{Apply}\" />\n"; $body .= "<input type=\"hidden\" name=\"session\" value=\"$self->{session_key__}\" />\n</form>\n"; ! $body .= sprintf( $self->{language__}{Security_SecureServerUpdate}, $self->config_( 'server' ) ) if ( defined($self->{form__}{server}) ); # Secure Port widget $body .= "<form action=\"/security\">\n"; $body .= "<label class=\"securityLabel\" for=\"securitySecurePort\">$self->{language__}{Security_SecurePort}:</label><br />\n"; ! $body .= "<input type=\"text\" name=\"sport\" id=\"securitySecurePort\" value=\"" . $self->config_( 'sport' ) . "\" />\n"; $body .= "<input type=\"submit\" class=\"submit\" name=\"update_sport\" value=\"$self->{language__}{Apply}\" />\n"; $body .= "<input type=\"hidden\" name=\"session\" value=\"$self->{session_key__}\" />\n</form>\n$port_error"; ! $body .= sprintf( $self->{language__}{Security_SecurePortUpdate}, $self->config_( 'sport' ) ) if ( defined($self->{form__}{sport}) ); # end optional widgets placement --- 1132,1147 ---- $body .= "<form action=\"/security\">\n"; $body .= "<label class=\"securityLabel\" for=\"securitySecureServer\">$self->{language__}{Security_SecureServer}:</label><br />\n"; ! $body .= "<input type=\"text\" name=\"server\" id=\"securitySecureServer\" value=\"" . $self->module_config_( 'pop3', 'secure_server' ) . "\" />\n"; $body .= "<input type=\"submit\" class=\"submit\" name=\"update_server\" value=\"$self->{language__}{Apply}\" />\n"; $body .= "<input type=\"hidden\" name=\"session\" value=\"$self->{session_key__}\" />\n</form>\n"; ! $body .= sprintf( $self->{language__}{Security_SecureServerUpdate}, $self->module_config_( 'pop3', 'secure_server' ) ) if ( defined($self->{form__}{server}) ); # Secure Port widget $body .= "<form action=\"/security\">\n"; $body .= "<label class=\"securityLabel\" for=\"securitySecurePort\">$self->{language__}{Security_SecurePort}:</label><br />\n"; ! $body .= "<input type=\"text\" name=\"sport\" id=\"securitySecurePort\" value=\"" . $self->module_config_( 'pop3', 'secure_port' ) . "\" />\n"; $body .= "<input type=\"submit\" class=\"submit\" name=\"update_sport\" value=\"$self->{language__}{Apply}\" />\n"; $body .= "<input type=\"hidden\" name=\"session\" value=\"$self->{session_key__}\" />\n</form>\n$port_error"; ! $body .= sprintf( $self->{language__}{Security_SecurePortUpdate}, $self->module_config_( 'pop3', 'secure_port' ) ) if ( defined($self->{form__}{sport}) ); # end optional widgets placement |