[ic] my own base catalog

Alex alex@multimake.com
Tue, 5 Dec 2000 11:26:23 -0300


This is a multi-part message in MIME format.

------=_NextPart_000_0013_01C05EAE.32AEA280
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello all:
I am making a new base catalog, with my own templates and without any =
additional configuration, is to say with only the elementary sets of =
configurations, this is the catalg.cfg:

VariableDatabase variable
ParseVariables  Yes
################################################################
#### CONSTANT DEFINITION
################################################################
VendURL                 http://__SERVER_NAME____CGI_URL__
SecureURL               __SECURE_SERVER____CGI_URL__
ImageDir                __IMAGE_DIR__/
ImageDirInternal        http://__SERVER_NAME____IMAGE_DIR__/
MailOrderTo             __ORDERS_TO__

#ScratchDefault   mv_add_dot_html   1
#ScratchDefault   mv_no_session_id  1
#ScratchDefault   mv_no_count       1
################################################################
########   THESE DEFINES THE VARIABLES FOR TEMPLATING    #######
################################################################
#ifdef @TRAFFIC =3D~ /high/i
ParseVariables  Yes
ConfigDir templates/regions
Variable      LEFT      <LEFT
Variable      BOTTOM    <BOTTOM
Variable      RIGHT     <RIGHT
Variable      TOP       <TOP
ConfigDir config
#endif

## Use [include ...] with low traffic settings, file read every time
## template changes show up immediately this way
## TRAFFIC is defined in interchange.cfg
##
#ifdef @TRAFFIC =3D~ /low/i
Variable      LEFT      [include templates/regions/LEFT]
Variable      BOTTOM    [include templates/regions/BOTTOM]
Variable      RIGHT     [include templates/regions/RIGHT]
Variable      TOP       [include templates/regions/TOP]
#endif
################################################################
########   DATABASE SETUP                               ########
################################################################
#ifndef SQLDSN
Variable    SQLDSN          __MVC_SQLDSN__
#endif

##### MySQL
#ifdef MYSQL
Message Using MySQL, DSN=3D__SQLDSN__.

# Tell the default DBM we are using something else...
Variable  SOME_DATABASE  1

# The table defs are in separate files in the dbconf/mysql directory,
# the ones kept in DBM are in TABLENAME.dbm files.

#include dbconf/mysql/*

#endif

#####=20
##### Default DBM if nothing else defined
#####
#ifndef SOME_DATABASE
Message Using default DBM database.
#include dbconf/default_db/*
#endif
################################################################
########           END DATABASE SETUP                    #######
################################################################

UserTag history-scan Routine <<EOR
my %var_exclude =3D ( qw/
        mv_credit_card_number 1
        mv_pc                 1
        mv_session_id         1
/);
sub {
        my ($find, $exclude, $default) =3D @_;
        my $ref =3D $Vend::Session->{History}
                or return $Tag->area($default || =
$Config->{SpecialPage}{catalog});
        my ($hist, $href, $cgi);
        $exclude =3D qr/$exclude/ if $exclude;
        for(my $i =3D $#$ref; $i >=3D 0; $i--) {
                #Log("checking $ref->[$i][0] for $exclude");
                if ($exclude and $ref->[$i][0] =3D~ $exclude) {
                        next;
                }
                if($find) {
                        next unless $ref->[$i][0] =3D~ /$find/;  =20
                }
                ($href, $cgi) =3D @{$ref->[$i]};
                last;
        }
        return $Tag->area($default || $Config->{SpecialPage}{catalog})
                if ! $href;
        my $form =3D '';
        for(grep !$var_exclude{$_}, keys %$cgi) {
                $form .=3D "\n$_=3D";
                $form .=3D join("\n$_=3D", split /\0/, $cgi->{$_});
        }
        return $Tag->area( { href =3D> $href, form =3D> $form} );
}
EOR

The problem is when i try to get into the Admin Interface menu options, =
as the folowing options:

Orders
Content
Customers
Design
Items
Reporting
Merchandising
Administration

Then i get the folowing message error: Page cannot be found.
This is the url trying to find when the error occurred: =
http://mercurio/admin/order?id=3Ds3WsPth4&mv_pc=3D33
I compare this url with the url of a catalog based on the construct, =
this is the right url =
http://mercurio/cgi-bin/construct/admin/order.html?mv_pc=3D16, both were =
trying with the Orders menu option. Obviously there is some problem with =
the location of the order.html but i don't know anything about the =
solutions.
If somebody knows something about this, please no doubt in response this =
email.

Thanks in advance...
Alexander Albaracin

------=_NextPart_000_0013_01C05EAE.32AEA280
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#e8ecf0>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>Hello all:</FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>I&nbsp;am making a new =
base=20
catalog,&nbsp;with my own templates and without any additional =
configuration, is=20
to say with only the elementary sets of configurations, this is the=20
catalg.cfg:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>VariableDatabase=20
variable<BR>ParseVariables&nbsp;=20
Yes<BR>################################################################<B=
R>####=20
CONSTANT=20
DEFINITION<BR>###########################################################=
#####<BR>VendURL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
<A=20
href=3D"http://__SERVER_NAME____CGI_URL__">http://__SERVER_NAME____CGI_UR=
L__</A><BR>SecureURL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
__SECURE_SERVER____CGI_URL__<BR>ImageDir&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
__IMAGE_DIR__/<BR>ImageDirInternal&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp; <A=20
href=3D"http://__SERVER_NAME____IMAGE_DIR__/">http://__SERVER_NAME____IMA=
GE_DIR__/</A><BR>MailOrderTo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;=20
__ORDERS_TO__</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3DArial =
size=3D2>#ScratchDefault&nbsp;&nbsp;=20
mv_add_dot_html&nbsp;&nbsp; 1<BR>#ScratchDefault&nbsp;&nbsp;=20
mv_no_session_id&nbsp; 1<BR>#ScratchDefault&nbsp;&nbsp;=20
mv_no_count&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
1<BR>################################################################<BR>=
########&nbsp;&nbsp;=20
THESE DEFINES THE VARIABLES FOR TEMPLATING&nbsp;&nbsp;&nbsp;=20
#######<BR>##############################################################=
##<BR>#ifdef=20
@TRAFFIC =3D~ /high/i<BR>ParseVariables&nbsp; Yes<BR>ConfigDir=20
templates/regions<BR>Variable&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
LEFT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;LEFT<BR>Variable&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
BOTTOM&nbsp;&nbsp;&nbsp;=20
&lt;BOTTOM<BR>Variable&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
RIGHT&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;RIGHT<BR>Variable&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
TOP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;TOP<BR>ConfigDir=20
config<BR>#endif</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>## Use [include ...] =
with low traffic=20
settings, file read every time<BR>## template changes show up =
immediately this=20
way<BR>## TRAFFIC is defined in interchange.cfg<BR>##<BR>#ifdef @TRAFFIC =
=3D~=20
/low/i<BR>Variable&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
LEFT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [include=20
templates/regions/LEFT]<BR>Variable&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
BOTTOM&nbsp;&nbsp;&nbsp; [include=20
templates/regions/BOTTOM]<BR>Variable&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
RIGHT&nbsp;&nbsp;&nbsp;&nbsp; [include=20
templates/regions/RIGHT]<BR>Variable&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
TOP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [include=20
templates/regions/TOP]<BR>#endif<BR>#####################################=
###########################<BR>########&nbsp;&nbsp;=20
DATABASE=20
SETUP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
########<BR>#############################################################=
###<BR>#ifndef=20
SQLDSN<BR>Variable&nbsp;&nbsp;&nbsp;=20
SQLDSN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
__MVC_SQLDSN__<BR>#endif</FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2><BR>##### =
MySQL<BR>#ifdef=20
MYSQL<BR>Message Using MySQL, DSN=3D__SQLDSN__.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2># Tell the default DBM =
we are using=20
something else...<BR>Variable&nbsp; SOME_DATABASE&nbsp; 1</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2># The table defs are in =
separate=20
files in the dbconf/mysql directory,<BR># the ones kept in DBM are in=20
TABLENAME.dbm files.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>#include =
dbconf/mysql/*</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>#endif</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>##### <BR>##### Default =
DBM if=20
nothing else defined<BR>#####<BR>#ifndef SOME_DATABASE<BR>Message Using =
default=20
DBM database.<BR>#include dbconf/default_db/*<BR>#endif</FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial=20
size=3D2>################################################################=
<BR>########&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

END DATABASE=20
SETUP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
#######<BR>##############################################################=
##</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>UserTag history-scan =
Routine=20
&lt;&lt;EOR<BR>my %var_exclude =3D (=20
qw/<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mv_credit_card_number=20
1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
mv_pc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
mv_session_id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
1<BR>/);<BR>sub=20
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; my ($find, $exclude, =
$default) =3D=20
@_;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; my $ref =3D=20
$Vend::Session-&gt;{History}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
or return $Tag-&gt;area($default ||=20
$Config-&gt;{SpecialPage}{catalog});<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;=20
my ($hist, $href, $cgi);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
$exclude=20
=3D qr/$exclude/ if =
$exclude;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for(my=20
$i =3D $#$ref; $i &gt;=3D 0; $i--)=20
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;=20
#Log("checking $ref-&gt;[$i][0] for=20
$exclude");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
if ($exclude and $ref-&gt;[$i][0] =3D~ $exclude)=20
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
next;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;=20
}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;=20
if($find) {</FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial=20
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;=20
next unless $ref-&gt;[$i][0] =3D~ /$find/;&nbsp;&nbsp;=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;=20
}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;=20
($href, $cgi) =3D=20
@{$ref-&gt;[$i]};<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
last;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return =
$Tag-&gt;area($default ||=20
$Config-&gt;{SpecialPage}{catalog})<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
if ! $href;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; my $form =3D=20
'';<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for(grep =
!$var_exclude{$_},=20
keys %$cgi)=20
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;=20
$form .=3D=20
"\n$_=3D";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
$form .=3D join("\n$_=3D", split /\0/,=20
$cgi-&gt;{$_});<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return $Tag-&gt;area( { =
href=20
=3D&gt; $href, form =3D&gt; $form} );<BR>}<BR>EOR</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>The problem is when i =
try to get into=20
the Admin Interface menu options, as&nbsp;the folowing =
options:</FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>Orders</FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>Content</FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>Customers</FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>Design</FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>Items</FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>Reporting</FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial =
size=3D2>Merchandising</FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial =
size=3D2>Administration</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>Then i get the folowing =
message=20
error: Page cannot be found.</FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>This is the =
url&nbsp;trying to find=20
when the error occurred: <A=20
href=3D"http://mercurio/admin/order?id=3Ds3WsPth4&amp;mv_pc=3D33">http://=
mercurio/admin/order?id=3Ds3WsPth4&amp;mv_pc=3D33</A></FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>I compare this url with =
the url of a=20
catalog based on the construct, this is the right url <A=20
href=3D"http://mercurio/cgi-bin/construct/admin/order.html?mv_pc=3D16">ht=
tp://mercurio/cgi-bin/construct/admin/order.html?mv_pc=3D16</A>,=20
both were trying with the Orders menu option. Obviously there is some =
problem=20
with the location of the order.html but i don't know anything about the=20
solutions.</FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>If somebody knows =
something about=20
this, please no doubt in response this email.</FONT></DIV>
<DIV><FONT size=3D2><FONT color=3D#000000 =
face=3DArial></FONT></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2><FONT color=3D#000000 face=3DArial>Thanks in=20
advance...</FONT></FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>Alexander=20
Albaracin</FONT></DIV></BODY></HTML>

------=_NextPart_000_0013_01C05EAE.32AEA280--