Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Commit

Permalink
Vend 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew M. Wilcox authored and jonjensen committed Jan 2, 2009
1 parent 376d651 commit c0f028f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 50 deletions.
3 changes: 3 additions & 0 deletions Changes
@@ -1,3 +1,6 @@
Version 0.2.1
(cgi_environment): Fixed bug with PATH_INFO.

Version 0.2
svend.c cleaned up
configuration directives now get correct default values
Expand Down
37 changes: 0 additions & 37 deletions bug1.pl

This file was deleted.

10 changes: 3 additions & 7 deletions doc/vend.html
@@ -1,22 +1,19 @@
<html><head>
<title>Vend Documentation</title>
<title>Vend 0.2 Documentation</title>
<link rev="made" href="mailto:awilcox@world.std.com">
</head>

<body>
<h1>Vend Documentation</h1>
<h1>Vend 0.2 Documentation</h1>

Vend version 0.2 (alpha). This documentation is preliminary.<p>
Vend version 0.2.

Vend allows customers to select items to buy from catalog pages. The
program tracks which products they have selected and the quantity
desired. From the ordering page they may complete the ordering
process by entering their name and address, or return to browsing and
select more items.<p>

Vend 0.2 does not support secure transmission of credit card numbers.
Vendors should contact customers separately for payment.<p>

<ul>
<li><a href="#overview">Overview</a>
<li><a href="#download">Where to Download Vend</a>
Expand Down Expand Up @@ -100,7 +97,6 @@ <h2><a name="download">Where to Download Vend</a></h2>
Vend is available from:<p>

<a href="ftp://gray.maine.com/pub/awilcox/vend-0.2.tar.gz">ftp://gray.maine.com/pub/awilcox/vend-0.2.tar.gz</a><br>
<a href="ftp://ftp.biddeford.com/pub/awilcox/vend-0.2.tar.gz">ftp://ftp.biddeford.com/pub/awilcox/vend-0.2.tar.gz</a>

<h2><a name="perl">Perl version 5</a></h2>

Expand Down
2 changes: 1 addition & 1 deletion sample/pages/catalog.html
Expand Up @@ -15,7 +15,7 @@ <h1>Vend 0.2 Demo Catalog</h1>
entering their name and address, or return to browsing and select more
items.<p>

<em>Special Today!</em> Buy the [order bridge]Brookline Bridge[/order]
<em>Special Today!</em> Buy the [order bridge]Brooklyn Bridge[/order]
for only $[price bridge]!<p>

<h2>Demo Catalog Pages</h2>
Expand Down
9 changes: 4 additions & 5 deletions vend.pl
@@ -1,7 +1,7 @@
#!/usr/bin/perl
#
# Vend version 0.2 (alpha)
# Copyright 1995 by Andrew M. Wilcox <awilcox@world.std.com>
# Vend version 0.2.1
# Copyright 1995, 1996 by Andrew M. Wilcox <awilcox@maine.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -1335,8 +1335,7 @@ sub cgi_environment {
$CGI::request_method = $ENV{'REQUEST_METHOD'};
die "REQUEST_METHOD is not defined" unless defined $CGI::request_method;

$CGI::path_info = $ENV{'PATH_INFO'};
die "PATH_INFO is not defined" unless defined $CGI::path_info;
$CGI::path_info = $ENV{'PATH_INFO'} || '';

$host = $ENV{'REMOTE_HOST'};
$host = $ENV{'REMOTE_ADDR'} unless (defined $host && $host ne '');
Expand Down Expand Up @@ -1400,7 +1399,7 @@ sub parse_options {
}

sub version {
print "Vend version 0.2 Copyright 1995 Andrew M. Wilcox\n";
print "Vend version 0.2.1 Copyright 1995, 1996 Andrew M. Wilcox\n";
}

sub usage {
Expand Down

0 comments on commit c0f028f

Please sign in to comment.