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

Commit

Permalink
Browse files Browse the repository at this point in the history
MiniVend 3.15-beta5
  • Loading branch information
perusionmike authored and jonjensen committed Jan 2, 2009
1 parent eabdaae commit 53b7f87
Show file tree
Hide file tree
Showing 23 changed files with 303 additions and 1,623 deletions.
5 changes: 2 additions & 3 deletions MANIFEST
Expand Up @@ -32,8 +32,6 @@ dist/admin/pages/seefile.html
dist/admin/pages/special/noproduct.html
dist/admin/pages/special/notfound.html
dist/admin/pages/special/violation.html
dist/admin/products/database.asc
dist/admin/products/directive.asc
dist/admin/products/locale.asc
dist/admin/products/products.asc
dist/admin/products/wizard.asc
Expand Down Expand Up @@ -242,6 +240,7 @@ dist/simple/pages/special/sec_faq.html
dist/simple/pages/special/security.html
dist/simple/pages/special/violation.html
dist/simple/pages/srchform.html
dist/simple/pages/view_page.html
dist/simple/products/2ndDayAir.csv
dist/simple/products/2ndDayAirAM.csv
dist/simple/products/3DaySelect.csv
Expand Down Expand Up @@ -286,7 +285,6 @@ dist/usertag/email
dist/usertag/loc
dist/usertag/summary
dist/usertag/var
doc/Tagref.pm
doc/bullet.gif
doc/frtoc.html
doc/intro.html
Expand Down Expand Up @@ -332,6 +330,7 @@ lib/Vend/Table/Import.pm
lib/Vend/Table/InMemory.pm
lib/Vend/Table/Quoted.pm
lib/Vend/Table/Update.pm
lib/Vend/Tagref.pm
lib/Vend/TextSearch.pm
lib/Vend/UserDB.pm
lib/Vend/Util.pm
Expand Down
15 changes: 15 additions & 0 deletions UPGRADE
@@ -1,6 +1,8 @@

U P G R A D I N G F R O M 3 . 0 x

>>>>> MINIVEND 3.15 notes for compatibilty

#############################################
IMPORTANT NOTE

Expand Down Expand Up @@ -30,6 +32,19 @@ to your catalog directory and running:
END IMPORTANT NOTE
#############################################

New to 3.15 that could cause problems for longtime users:

* If you have an old system that has been relying on the
"products" database being pre-defined, you must either
define it in catalog.cfg:

Database products products.asc DEFAULT

or change the global directive "Legacy" to yes in directive
in minivend.cfg.

>>>>> General compatibility notes for earlier versions of MiniVend

You should normally be able to simply install over the current software and
then restart the server. The only incompatible changes are bug fixes (which
may fool any workarounds you have made), and these:
Expand Down
51 changes: 47 additions & 4 deletions dist/WHATSNEW
Expand Up @@ -151,16 +151,59 @@ MiniVend 3.15 incorporates some new features -- I couldn't resist. 8-)
and allows you to include the whole directory. It should make
maintaining multiple servers a bit easier.

* Items can now be ordered "on-the-fly" in the standard
distribution by adding mv_order_fly.

* Added form-remap based on catalog script-name (too early for
other methods). In minivend.cfg:

FormRemap /cgi-bin/simple code mv_order_item
FormRemap /cgi-bin/simple item mv_order_fly

* Made some minor changes in the demo:

- updated flypage to show attribute-based price tag
- fixed query/check_orders using st=db
- removed some syntax errors
- added [email to=addr from=addr subject=subj] message [/email]
UserTag which is better then the form_mail GlobalSub. It will
allow $Tag->email() to be used, among other things.
- Static build should work out of the box if you
have DBM and define:

StaticDBM static
- Static build should work out of the box if you
have DBM and define:

StaticDBM static

* Makecat now strips quotes from Apache parameters read from
httpd.conf file.

* Added Tagref.pm module which can document the implementation
of even UserTags. Add this to minivend.cfg to print one
to a MiniVend page:

UserTag tag-reference Routine <<EOR
sub {
require Vend::Tagref;
open (TAGREF, ">mv_tagref.pod");
my $reference = Vend::Tagref::tag_reference();
print TAGREF $reference;
close TAGREF;
my $out = `pod2html mv_tagref.pod`;
if(! $out) {
$Vend::StatusLine = "Content-Type: text/plain\r\n";
$out = $reference;
}
return $out;
}
EOR

* Removed all dependencies on ProductsFiles containing
'products'.

* Added Legacy directive to minivend.cfg to support older
catalogs that don't define "products" database.

* Many bug fixes, of course. Notably [and ...] and [or ..]
were broken in some cases.

MiniVend 3.14 is a bug fix release with a couple of new features:

Expand Down
20 changes: 16 additions & 4 deletions dist/admin/catalog.cfg
Expand Up @@ -2,13 +2,26 @@ MailOrderTo webmaster
VendURL /mv_admin
SecureURL /mv_admin

Database database database.asc TAB
DbDatabase database
DirectiveDatabase directive
Database products products.asc LINE
Database products CONTINUE NOTES
Database products MEMORY 1

Database wizard wizard.asc TAB
Database wizard MEMORY 1
Database wizard CONTINUE UNIX

Database locale locale.asc TAB
Database locale MEMORY 1
Database locale CONTINUE UNIX
LocaleDatabase locale

DisplayErrors Yes
Help hintfile

Variable WIZARD_BANNER <<EOF
<FONT FACE="arial,helvetica" SIZE=7>MiniVend<BR>Configuration<BR>Wizard</FONT>
EOF

RemoteUser minivend

Mv_BgColor BEGIN #FFFFFF
Expand All @@ -33,5 +46,4 @@ SpecialPage order todo
SpecialPage order_security special/order_security
SpecialPage violation special/violation


#include subs.cfg
5 changes: 0 additions & 5 deletions dist/admin/products/database.asc

This file was deleted.

2 changes: 0 additions & 2 deletions dist/admin/products/directive.asc

This file was deleted.

2 changes: 1 addition & 1 deletion dist/bin/dump
Expand Up @@ -2,7 +2,7 @@
#
# MiniVend session dumper
#
# $Id: dump,v 1.15 1999/08/13 01:35:57 mike Exp mike $
# $Id: dump,v 1.15 1999/08/13 01:35:57 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 dist/bin/expire
Expand Up @@ -2,7 +2,7 @@
#
# MiniVend session expiration
#
# $Id: expire,v 1.17 1999/08/13 01:36:08 mike Exp mike $
# $Id: expire,v 1.17 1999/08/13 01:36:08 mike Exp $
#
# This program is largely based on Vend 0.2
# Copyright 1995 by Andrew M. Wilcox <awilcox@world.std.com>
Expand Down
4 changes: 2 additions & 2 deletions dist/bin/minivend
Expand Up @@ -2,7 +2,7 @@
#
# MiniVend version 3.15
#
# $Id: minivend,v 1.38 1999/02/12 12:24:23 mike Exp $
# $Id: minivend,v 1.51 1999/08/14 10:30:32 mike Exp mike $
#
# This program is largely based on Vend 0.2
# Copyright 1995 by Andrew M. Wilcox <awilcox@world.std.com>
Expand Down Expand Up @@ -151,7 +151,7 @@ sub debug {
}

BEGIN {
$VERSION = '3.15beta4';
$VERSION = '3.15beta5';
}
use strict;
use Fcntl;
Expand Down
2 changes: 1 addition & 1 deletion dist/bin/offline
Expand Up @@ -2,7 +2,7 @@
#
# offline - MiniVend database builder and indexer
#
# $Id: offline,v 1.10 1999/08/13 01:37:02 mike Exp mike $
# $Id: offline,v 1.10 1999/08/13 01:37:02 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 dist/bin/update
Expand Up @@ -2,7 +2,7 @@
#
# update - MiniVend database updater
#
# $Id: update,v 1.5 1999/08/13 01:37:08 mike Exp mike $
# $Id: update,v 1.5 1999/08/13 01:37:08 mike Exp $
#
# This program is largely based on Vend 0.2
# Copyright 1995 by Andrew M. Wilcox <awilcox@world.std.com>
Expand Down
10 changes: 10 additions & 0 deletions dist/minivend.cfg.dist
Expand Up @@ -14,6 +14,16 @@



## Legacy Default: No
#
# MiniVend relied on certain defaults for the databases and other directives.
#
# This directive turns on certain older legacy defaults and should be tried
# at "yes" if your system doesn't run at update.
#
Legacy No


## AdminUser Default: blank
#
# The user and password which will allow access to the special mv_admin
Expand Down
13 changes: 12 additions & 1 deletion dist/simple/catalog.cfg
Expand Up @@ -157,7 +157,7 @@ SecureURL __SECURE_SERVER____CGI_URL__

########### Database
##
## Default: products products.asc 1
## Default: blank
#
# Definition of an arbitrary database, in the form
# "Database database file type", where "file" is the name of an
Expand All @@ -178,6 +178,17 @@ Database Ground Ground.csv CSV
Database 2ndDayAir 2ndDayAir.csv CSV
Database NextDayAir NextDayAir.csv CSV

########### ProductFiles
##
## Default: products
#
# The database tables that are eligible to hold products.
# There are many performance gains to limiting this to one,
# but some very flexible schemes can be set up if there are
# more than one.
#
ProductFiles products

# Here are some sample product database definitions for various SQL
# database types. These might even work for you if the SQL package
# in question has an existing data source with that name -- these
Expand Down
11 changes: 11 additions & 0 deletions dist/simple/pages/view_page.html
@@ -0,0 +1,11 @@
[new]
[if !session arg]
No argument given.
[elsif session arg =~ /^\/|\.\./]
<H1>Why would you do something <FONT COLOR=RED>naughty</FONT>like putting
a leading slash or a .. in your URL? HMM???? I will use a new feature: Log("Attack from " . $Session->{remote_addr}). [mvasp] <% Log($Session->{remote_addr}) %>[/mvasp]
[/elsif]
[else]
<XMP>[file name="pages/[data session arg]"]</XMP>
[/else]
[/if]

0 comments on commit 53b7f87

Please sign in to comment.