diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/multipart/multipart.cgi.in | 22 | ||||
| -rw-r--r-- | scripts/w3mhelp.cgi.in | 4 | 
2 files changed, 17 insertions, 9 deletions
| diff --git a/scripts/multipart/multipart.cgi.in b/scripts/multipart/multipart.cgi.in index 9a01c25..8792c7d 100644 --- a/scripts/multipart/multipart.cgi.in +++ b/scripts/multipart/multipart.cgi.in @@ -155,11 +155,14 @@ while(! $end) {  	}  	$type = $header{"content-type"};  	$dispos = $header{"content-disposition"}; -       if ((! $type || $type =~ /^text\/plain/i) && -        (! $dispos || $dispos =~ /^inline/i)) { -		$plain = 1; -	} else { -		$plain = 0; +	$plain = 0; +	$image = 0; +	if (! $dispos || $dispos =~ /^inline/i) { +		if (! $type || $type =~ /^text\/plain/i) { +			$plain = 1; +		} elsif ($type =~ /^image\//i) { +			$image = 1; +		}  	}  	$body = '';  	while(<F>) { @@ -193,8 +196,13 @@ while(! $end) {  		print "<input type=hidden name=file value=\"$qfile\">\n";  		print "<input type=hidden name=boundary value=\"$qboundary\">\n";  		print "<input type=hidden name=count value=\"$count\">\n"; -		print "<input type=submit name=submit value=\"", -			&html_quote($name), "\">\n"; +		if ($image) { +			print "<input type=image name=submit src=\"$CGI?file=$qfile&boundary=$qboundary&count=$count\" alt=\"", +				&html_quote($name), "\">\n"; +		} else { +			print "<input type=submit name=submit value=\"", +				&html_quote($name), "\">\n"; +		}  		print "</form>\n"  	}  	if ($plain) { diff --git a/scripts/w3mhelp.cgi.in b/scripts/w3mhelp.cgi.in index 14e4836..5a7aa64 100644 --- a/scripts/w3mhelp.cgi.in +++ b/scripts/w3mhelp.cgi.in @@ -1,5 +1,5 @@  #!@PERL@ -# $Id: w3mhelp.cgi.in,v 1.10 2002/01/10 03:45:13 ukai Exp $ +# $Id: w3mhelp.cgi.in,v 1.11 2002/01/31 17:54:58 ukai Exp $  if ( $^O =~ /^(ms)?(dos|win(32|nt)?)/i ) {    $CYGPATH = 1; @@ -132,7 +132,7 @@ for $otherlang (@docdirs) {  &show_keymap("Buffer operation",  	     split(" ", "backBf selMn selBuf vwSrc svSrc svBuf -		editBf editScr reload rdrwSc")); +		editBf editScr reload rdrwSc dispI stopI"));  &show_keymap("Bookmark operation",  	     split(" ", "ldBmark adBmark")); | 
