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

Commit

Permalink
MiniVend 3.00-beta6
Browse files Browse the repository at this point in the history
  • Loading branch information
perusionmike authored and jonjensen committed Jan 2, 2009
1 parent 5bfd135 commit aa5ef87
Show file tree
Hide file tree
Showing 40 changed files with 582 additions and 474 deletions.
2 changes: 1 addition & 1 deletion bin/dump
Expand Up @@ -2,7 +2,7 @@
#
# MiniVend session dumper
#
# $Id: dump,v 1.4 1997/05/05 20:17:16 mike Exp mike $
# $Id: dump,v 1.4 1997/05/05 20:17:16 mike Exp $
#
# This program is largely based on Vend 0.2
# Copyright 1995 by Andrew M. Wilcox <awilcox@world.std.com>
Expand Down
2 changes: 1 addition & 1 deletion bin/update
Expand Up @@ -2,7 +2,7 @@
#
# update - MiniVend database updater
#
# $Id: update,v 1.1 1997/05/05 20:17:16 mike Exp mike $
# $Id: update,v 1.1 1997/05/05 20:17:16 mike Exp $
#
# This program is largely based on Vend 0.2
# Copyright 1995 by Andrew M. Wilcox <awilcox@world.std.com>
Expand Down
28 changes: 13 additions & 15 deletions doc/intro.html
@@ -1,6 +1,6 @@
<HTML>
<HEAD><TITLE>Welcome to Minivend 2.03</TITLE></HEAD>
<BASE HREF="http://www.iac.net/~mikeh/">
<BASE HREF="http://www.minivend.com/minivend/">
<BODY BGCOLOR=WHITE>
<H1>MiniVend</H1>

Expand All @@ -14,11 +14,11 @@ <H1>MiniVend</H1>
-- you can <A HREF="download.html">download</A> it via FTP.
<P>
There is now a
<A HREF="http://www.iac.net/~mikeh/faq/index.html">frequently-asked
<A HREF="http://www.minivend.com/minivend/faq/index.html">frequently-asked
question (FAQ) list</A> for MiniVend.
<P>
If you want to see what can be done with MiniVend, see some of the
<A HREF="http://www.iac.net/~mikeh/sites.html">sites that use it</A>.
<A HREF="http://www.minivend.com/minivend/sites.html">sites that use it</A>.

<H2>MiniVend 2.02 Features</H2>
<UL>
Expand Down Expand Up @@ -78,21 +78,19 @@ <H3>Easy Administration</H3>
<LI> Works well with <I>all</I> browsers
</UL>
<P>
Andrew Wilcox wrote <I>Vend,</I>
the copylefted shopping cart software. MiniVend was originally based
on Vend V0.2, but has been greatly enhanced, adding powerful relational database
functions, support for
<A HREF="http://home.netscape.com/assist/net_sites/frames.html">
frames</a>, powerful searching, remote administration, super<I>fast</I> server
mode, conditional HTML, user-customizable help and displays, and much more.
This version of MiniVend includes an automatic configuration and installation
utility, and continues to be free under the GNU copyleft.
Andrew Wilcox wrote <I>Vend,</I> the copylefted shopping cart
software. MiniVend was originally based on Vend V0.2, but has been
greatly enhanced, adding powerful relational database functions, support
for frames, powerful searching, remote administration, super<I>fast</I>
server mode, conditional HTML, user-customizable help and displays, and
much more. This version of MiniVend includes an automatic configuration
and installation utility, and continues to be free under the GNU copyleft.
<P>
To learn more about <STRONG>MiniVend</STRONG>, see the
<A HREF="http://www.iac.net/~mikeh/minivend.html">
<A HREF="http://www.minivend.com/minivend/minivend.html">
HTML documentation</A>,
visit the <A HREF="http://www.iac.net/~mikeh/mvend.html">offical <I>MiniVend</I>
visit the <A HREF="http://www.minivend.com/minivend/">offical <I>MiniVend</I>
site</A>, or
<A HREF="http://www.iac.net/~mikeh/download.html">download</A> it.
<A HREF="http://www.minivend.com/minivend/download.html">download</A> it.
<P>
</BODY>
134 changes: 123 additions & 11 deletions doc/minivend.html
@@ -1,4 +1,4 @@
<!-- $Id$ -->
<!-- $Id: minivend.html,v 1.4 1997/05/25 06:10:54 mike Exp mike $ -->
<HTML><HEAD>
<CENTER><TITLE>minivend</TITLE>
</HEAD>
Expand Down Expand Up @@ -1033,6 +1033,9 @@ <H2>
"color".
type The action to be taken. The default is 'select', which
builds an HTML select form entry for the attribute.
Also recognized are 'multiple', which builds a multiple
select box, and 'list', which simply lists the possible
values.
field The database field name to be used to build the
entry (usually a select form field). Defaults to
a field named the same as the attribute.
Expand Down Expand Up @@ -1867,6 +1870,39 @@ <H2>
<p>
<DT><STRONG>

<A NAME="minivend_tag_1">
[tag scan/options]encased text[/tag]</A>

</STRONG>
<DD>
Builds a one-click search based on the enclosed text.
Properly translates whitespace and non-word characters to
be parseable by MiniVend. You can add the normal scan options,
just the se=searchtext parameter will be affected. These two
sequences evaluate the same:
<p>
<XMP>
[tag scan/sf=category]Renaissance[/tag]
[page scan/sf=category/se=Renaissance]Renaissance[/page]

</XMP>
<p>Where it is useful is in adding long strings that would otherwise
be difficult to encode, like
<p>
<XMP>
[tag scan/sf=author/os=yes]John F. Kennedy[/tag]

</XMP>
<p>instead of:
<p>
<XMP>
[page scan/sf=author/se=John.20F..20Kennedy]John F. Kennedy[/tag]


</XMP>
<p>
<DT><STRONG>

<A NAME="minivend_time_0">
time</A>

Expand Down Expand Up @@ -3327,7 +3363,7 @@ <H2>
You can ensure that a form will be submitted securely (to the base
URL in the SecureURL directive, that is) by specifying your form
input to be ACTION=``[process-target frame secure]''. If you are not
using frames, just specify the special frame ``_self''.
using frames, just specify the special frame ``_self'' or ``none''.
<p>To submit a form to the regular non-secure server, just omit the
<EM>secure</EM> modifier.
<p>
Expand All @@ -3343,8 +3379,8 @@ <H2>
<XMP>
<FORM METHOD=POST ACTION="[process-order]">
<input type=checkbox name="mv_order_item" value="M3243"> Item M3243
<input type=checkbox name="mv_order_item" value="M3243"> Item M3244
<input type=checkbox name="mv_order_item" value="M3243"> Item M3245
<input type=checkbox name="mv_order_item" value="M3244"> Item M3244
<input type=checkbox name="mv_order_item" value="M3245"> Item M3245
<input type=hidden name="mv_doit" value="refresh">
<input type=submit name="mv_junk" value="Order Checked Items">
</FORM>
Expand Down Expand Up @@ -3431,15 +3467,15 @@ <H2>
form based on the input from the first form:
<p>
<XMP>
<FORM METHOD=POST ACTION="[process-target _self]">
<FORM METHOD=POST ACTION="[process-target]">
<INPUT TYPE=HIDDEN name="mv_doit" value="refresh">
<INPUT TYPE=HIDDEN name="mv_orderpage" value="update_proj">
Sales Order Number <INPUT TYPE=TEXT SIZE=8
NAME="update_code"
VALUE="[value update_code]">
<INPUT TYPE=SUBMIT name="mv_submit" Value="Select">
</FORM>
<FORM METHOD=POST ACTION="[process-target _self]">
<FORM METHOD=POST ACTION="[process-target]">
<INPUT TYPE=HIDDEN NAME="mv_data_table" VALUE="product">
<INPUT TYPE=HIDDEN NAME="mv_data_key" VALUE="code">
<INPUT TYPE=HIDDEN NAME="mv_data_function" VALUE="update">
Expand Down Expand Up @@ -4087,9 +4123,7 @@ <H2>

<A HREF="minivend.html#minivend_mv_matchlimit_0">mv_matchlimit</A>
are found, the search paging mechanism will be
employed if the proper
<A HREF="minivend.html#minivend_more_list_0">[more_list]</A>
is present. Can be
employed if the proper <EM>[more_list]</EM> is present. Can be
implemented as a scrolling list (INPUT TYPE=SELECT) or radiobox
(INPUT TYPE=RADIO) field.
<p>
Expand Down Expand Up @@ -4566,7 +4600,7 @@ <H2>
<DT><STRONG>

<A NAME="minivend_more_list_0">
[more_list]</A>
[more_list next_img* prev_img* page_img*]</A>

</STRONG>
<DD>
Expand All @@ -4579,6 +4613,28 @@ <H2>
stripped.
<p>Use in conjunction with the [more] element to place pointers to
additional pages of matches.
<p>If the optional arguments <EM>next_img</EM>, <EM>prev_img</EM>, and/or <EM>page_img</EM>
are present, they represent image files that will be inserted instead
of the standard 'Next', 'Previous', and page number. If <EM>prev_img</EM>
is <STRONG>none</STRONG>, then no previous link will be output. If <EM>page_img</EM> is
<STRONG>none</STRONG>, then no links to pages of matches will be output. These are
URLs, are substituted for with
<A HREF="minivend.html#minivend_imagedir_0">ImageDir</A>
, and will be encased in
IMG tags.
<p>In addition, if <EM>page_img</EM> is used, it will be passed an argument of
the digit that is to be represented. This would allow an image generator
program to be used, generating page numbers on the fly.
<p>As an example, if you use [more-list next.gif prev.gif page_num.cgi], the
following will be the anchors:
<p>
<XMP>
Previous <IMG BORDER=0 SRC="prev.gif">
Page 1 <IMG BORDER=0 SRC="/cgi-bin/page_num.cgi?1">
Page 2 <IMG BORDER=0 SRC="/cgi-bin/page_num.cgi?2">
Next <IMG BORDER=0 SRC="next.gif">

</XMP>
<p>
<DT><STRONG>

Expand Down Expand Up @@ -4659,6 +4715,32 @@ <H2>
.
<p>
<H2>
<A NAME="minivend_updating_0">
Updating session variables after a search</A>
</H2>
You may notice that if you set a scratch variable or reference a
variable set in a search routine on the results page, the change does
not stay in the user session.
<p>To change this, set the
<A HREF="minivend.html#minivend_scratch_0">scratch</A>
variable <EM>mv_put_session</EM> on the page
in question:
<p>
<XMP>
[set mv_put_session]Yes[/set]

</XMP>
<p>This setting is persistent, so it is recommended that you
do it once at the beginning of the user session if you wish it to be the
default. If you don't want it to be the default, reset it to the
empty value (or zero) on another page:
<p>
<XMP>
[set mv_put_session][/set]

</XMP>
<p>
<H2>
<A NAME="minivend_using_0">
Using a Search Cache</A>
</H2>
Expand Down Expand Up @@ -6350,6 +6432,12 @@ <H2>
<STRONG>Continue Shopping</STRONG> is selected the output will will go to the page
<EM>browse.html</EM> with the page routed to the top level frame for the
current browser window.
<p>If you are setting a target with the <EM>[process_target target]</EM> tag, you
will either have to make that target <EM>none</EM> or set the
<A HREF="minivend.html#minivend_scratch_0">scratch</A>
variable
<EM>mv_ignore_frame</EM> on the page at time of display. Either will prevent
conflicting window targets from being sent.
<p>
<H2>
<A NAME="minivend_body_1">
Expand Down Expand Up @@ -6866,6 +6954,26 @@ <H2>
<p>
<DT><STRONG>

<A NAME="minivend_safesignals_0">
SafeSignals</A>

</STRONG>
<DD>
If your operating system does not have a re-entrant C library that
can guarantee that signal race conditions will not occur, then
set this to NO.
<p>BSDI and FreeBSD libraries are NOT safe, and SafeSignals will
automatically be disabled for those operating systems.
<p>In general, if MiniVend ever just ``hangs'', particularly if you
can see a perl.core file, disable this directive.
<p>
<XMP>
SafeSignals No

</XMP>
<p>
<DT><STRONG>

<A NAME="minivend_safeuntrap_0">
SafeUntrap</A>

Expand Down Expand Up @@ -7236,6 +7344,8 @@ <H2>
nomatch Search strings that fail to match
page Pages that are accessed
nopage Pages that are not found
basket Items placed in shopping carts
cache Pages/searches added to cache

</XMP>
<p>Enter as a space or comma-separated list, i.e.
Expand All @@ -7244,6 +7354,8 @@ <H2>
CollectData matched,nomatch,page

</XMP>
<p>Orders are typically logged to other files via AsciiTrack, AsciiBackend,
or the [tag log ...]data[/tag] construct.
<p>
<DT><STRONG>

Expand Down Expand Up @@ -9217,7 +9329,7 @@ <H2>
</XMP>
<p>
<H2>
<A NAME="minivend_updating_0">
<A NAME="minivend_updating_1">
Updating Individual Records</A>
</H2>
If you have a very large DBM database that takes a long time to build,
Expand Down
4 changes: 2 additions & 2 deletions sample/html/tags.html → doc/tags.html
@@ -1,8 +1,8 @@
<!-- $Id$ -->
<!-- $Id: tags.html,v 1.1 1997/05/25 06:10:54 mike Exp mike $ -->
<HTML><HEAD>
<CENTER><TITLE>tags</TITLE>
</HEAD>
<BODY></CENTER><p><hr>
<BODY BGCOLOR=WHITE></CENTER><p><hr>

<H1>
<A NAME="tags_minivend_0">
Expand Down
4 changes: 2 additions & 2 deletions doc/toc.html
Expand Up @@ -25,7 +25,7 @@ <H1>Table of Contents</H1>
</UL><LI><A HREF="minivend.html#minivend_forms_0">FORMS AND MINIVEND</A>
<UL><LI><A HREF="minivend.html#minivend_special_0">Special Form Fields</A><LI><A HREF="minivend.html#minivend_form_0">Form Actions</A><LI><A HREF="minivend.html#minivend_one_click_0">One-click Multiple Variables</A><LI><A HREF="minivend.html#minivend_checks_0">Checks and Selections</A><LI><A HREF="minivend.html#minivend_setting_2">Setting Form Security</A><LI><A HREF="minivend.html#minivend_stacking_0">Stacking Variables on the Form</A><LI><A HREF="minivend.html#minivend_setting_3">Setting mSQL tables with a form</A>
</UL><LI><A HREF="minivend.html#minivend_the_1">THE SEARCH ENGINE</A>
<UL><LI><A HREF="minivend.html#minivend_the_2">The Search Form</A><LI><A HREF="minivend.html#minivend_glimpse_0">Glimpse</A><LI><A HREF="minivend.html#minivend_fast_0">Fast Binary Search</A><LI><A HREF="minivend.html#minivend_range_0">Range Searching</A><LI><A HREF="minivend.html#minivend_one_click_1">One-click searches</A><LI><A HREF="minivend.html#minivend_search_1">Search Profiles</A><LI><A HREF="minivend.html#minivend_search_2">Search Reference</A><LI><A HREF="minivend.html#minivend_the_3">The Results Page</A><LI><A HREF="minivend.html#minivend_using_0">Using a Search Cache</A>
<UL><LI><A HREF="minivend.html#minivend_the_2">The Search Form</A><LI><A HREF="minivend.html#minivend_glimpse_0">Glimpse</A><LI><A HREF="minivend.html#minivend_fast_0">Fast Binary Search</A><LI><A HREF="minivend.html#minivend_range_0">Range Searching</A><LI><A HREF="minivend.html#minivend_one_click_1">One-click searches</A><LI><A HREF="minivend.html#minivend_search_1">Search Profiles</A><LI><A HREF="minivend.html#minivend_search_2">Search Reference</A><LI><A HREF="minivend.html#minivend_the_3">The Results Page</A><LI><A HREF="minivend.html#minivend_updating_0">Updating session variables after a search</A><LI><A HREF="minivend.html#minivend_using_0">Using a Search Cache</A>
</UL><LI><A HREF="minivend.html#minivend_the_4">THE ORDER PROCESS</A>
<UL><LI><A HREF="minivend.html#minivend_item_0">Item Lists</A><LI><A HREF="minivend.html#minivend_multiple_0">Multiple Shopping Carts</A><LI><A HREF="minivend.html#minivend_advanced_0">Advanced Multi-level Order Pages</A><LI><A HREF="minivend.html#minivend_simple_0">Simple Order Report File</A><LI><A HREF="minivend.html#minivend_fully_configurable_0">Fully-configurable Order Reports</A><LI><A HREF="minivend.html#minivend_order_3">Order Receipts</A><LI><A HREF="minivend.html#minivend_the_5">The Order Counter</A><LI><A HREF="minivend.html#minivend_customer_0">Customer Input Fields</A><LI><A HREF="minivend.html#minivend_product_0">Product Pricing</A><LI><A HREF="minivend.html#minivend_item_1">Item Attributes</A><LI><A HREF="minivend.html#minivend_product_1">Product Discounts</A><LI><A HREF="minivend.html#minivend_sales_0">Sales Tax</A>
</UL><LI><A HREF="minivend.html#minivend_shipping_1">SHIPPING</A>
Expand All @@ -39,7 +39,7 @@ <H1>Table of Contents</H1>
</UL><LI><A HREF="minivend.html#minivend_static_1">Static Page Building</A><LI><A HREF="minivend.html#minivend_minivend_2">MINIVEND CONFIGURATION FILES</A>
<UL><LI><A HREF="minivend.html#minivend_server_0">Server Configuration File</A><LI><A HREF="minivend.html#minivend_catalog_3">Catalog Configuration File</A><LI><A HREF="minivend.html#minivend_required_2">Required Configuration Directives</A><LI><A HREF="minivend.html#minivend_optional_0">Optional Configuration Directives</A>
</UL><LI><A HREF="minivend.html#minivend_administering_0">ADMINISTERING MINIVEND</A>
<UL><LI><A HREF="minivend.html#minivend_starting_0">Starting, Stopping, and Re-starting the Servers</A><LI><A HREF="minivend.html#minivend_unix_0">UNIX and INET modes</A><LI><A HREF="minivend.html#minivend_user_0">User reconfiguration</A><LI><A HREF="minivend.html#minivend_making_0">Making the Product Database</A><LI><A HREF="minivend.html#minivend_updating_0">Updating Individual Records</A><LI><A HREF="minivend.html#minivend_expiring_0">Expiring Sessions</A>
<UL><LI><A HREF="minivend.html#minivend_starting_0">Starting, Stopping, and Re-starting the Servers</A><LI><A HREF="minivend.html#minivend_unix_0">UNIX and INET modes</A><LI><A HREF="minivend.html#minivend_user_0">User reconfiguration</A><LI><A HREF="minivend.html#minivend_making_0">Making the Product Database</A><LI><A HREF="minivend.html#minivend_updating_1">Updating Individual Records</A><LI><A HREF="minivend.html#minivend_expiring_0">Expiring Sessions</A>
</UL><LI><A HREF="minivend.html#minivend_manual_0">MANUAL INSTALLATION OF CATALOGS</A>
<UL><LI><A HREF="minivend.html#minivend_needed_0">Needed Directories</A><LI><A HREF="minivend.html#minivend_the_6">The Demo Systems</A><LI><A HREF="minivend.html#minivend_setting_4">Setting up VLINK</A><LI><A HREF="minivend.html#minivend_setting_5">Setting up TLINK</A><LI><A HREF="minivend.html#minivend_compiling_0">Compiling VLINK and TLINK</A>
</UL><LI><A HREF="minivend.html#minivend_authors_0">AUTHORS</A><LI><A HREF="tags.html#tags_minivend_0">MiniVend Alphabetical Tag Reference</A>
Expand Down
2 changes: 1 addition & 1 deletion error.log
@@ -1 +1 @@
i
5 changes: 2 additions & 3 deletions lib/Vend/Cart.pm
Expand Up @@ -2,7 +2,7 @@
#
# MiniVend version 2.03
#
# $Id: Cart.pm,v 1.2 1996/12/16 08:53:44 mike Exp $
# $Id: Cart.pm,v 1.5 1997/05/22 07:00:05 mike Exp $
#
# This program is largely based on Vend 0.2
# Copyright 1995 by Andrew M. Wilcox <awilcox@world.std.com>
Expand Down Expand Up @@ -44,13 +44,12 @@ require Exporter;
@EXPORT_OK = qw(create add set);


$VERSION = substr(q$Revision: 1.2 $, 10);
$VERSION = substr(q$Revision: 1.5 $, 10);
$DEBUG = 0;

use Carp;
use vars qw($DEBUG $VERSION);
use strict;
use Vend::Util 'logError';

# AUTOLOAD
#1;
Expand Down
3 changes: 2 additions & 1 deletion lib/Vend/Config.pm
@@ -1,4 +1,4 @@
# $Id: Config.pm,v 2.14 1997/01/05 02:02:24 mike Exp $
# $Id: Config.pm,v 1.10 1997/05/25 06:10:54 mike Exp mike $

package Vend::Config;
require Exporter;
Expand Down Expand Up @@ -45,6 +45,7 @@ sub global_directives {
['MaxServers', undef, 2],
['GlobalSub', 'subroutine', ''],
['FullUrl', 'yesno', 'No'],
['SafeSignals', 'yesno', 'Yes'],
['AcrossLocks', 'yesno', 'No'],
['LogFile', undef, 'etc/log'],
['SafeUntrap', 'array', do { my $r = '249 148';
Expand Down

0 comments on commit aa5ef87

Please sign in to comment.