[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 am making a new =
base=20
catalog, 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> </DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>VariableDatabase=20
variable<BR>ParseVariables =20
Yes<BR>################################################################<B=
R>####=20
CONSTANT=20
DEFINITION<BR>###########################################################=
#####<BR>VendURL &nb=
sp; =20
<A=20
href=3D"http://__SERVER_NAME____CGI_URL__">http://__SERVER_NAME____CGI_UR=
L__</A><BR>SecureURL  =
; =20
__SECURE_SERVER____CGI_URL__<BR>ImageDir &nb=
sp; =20
__IMAGE_DIR__/<BR>ImageDirInternal &nb=
sp; <A=20
href=3D"http://__SERVER_NAME____IMAGE_DIR__/">http://__SERVER_NAME____IMA=
GE_DIR__/</A><BR>MailOrderTo &nb=
sp; =20
__ORDERS_TO__</FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=3D#000000 face=3DArial =
size=3D2>#ScratchDefault =20
mv_add_dot_html 1<BR>#ScratchDefault =20
mv_no_session_id 1<BR>#ScratchDefault =20
mv_no_count =20
1<BR>################################################################<BR>=
######## =20
THESE DEFINES THE VARIABLES FOR TEMPLATING =20
#######<BR>##############################################################=
##<BR>#ifdef=20
@TRAFFIC =3D~ /high/i<BR>ParseVariables Yes<BR>ConfigDir=20
templates/regions<BR>Variable =20
LEFT =20
<LEFT<BR>Variable =
BOTTOM =20
<BOTTOM<BR>Variable =20
RIGHT =20
<RIGHT<BR>Variable =20
TOP <TOP<BR>ConfigDir=20
config<BR>#endif</FONT></DIV>
<DIV> </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 =20
LEFT [include=20
templates/regions/LEFT]<BR>Variable =20
BOTTOM [include=20
templates/regions/BOTTOM]<BR>Variable =20
RIGHT [include=20
templates/regions/RIGHT]<BR>Variable =20
TOP [include=20
templates/regions/TOP]<BR>#endif<BR>#####################################=
###########################<BR>######## =20
DATABASE=20
SETUP &n=
bsp; &nb=
sp; =20
########<BR>#############################################################=
###<BR>#ifndef=20
SQLDSN<BR>Variable =20
SQLDSN =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> </DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2># Tell the default DBM =
we are using=20
something else...<BR>Variable SOME_DATABASE 1</FONT></DIV>
<DIV> </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> </DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>#include =
dbconf/mysql/*</FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>#endif</FONT></DIV>
<DIV> </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>######## =
END DATABASE=20
SETUP &n=
bsp; =20
#######<BR>##############################################################=
##</FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>UserTag history-scan =
Routine=20
<<EOR<BR>my %var_exclude =3D (=20
qw/<BR> mv_credit_card_number=20
1<BR> =20
mv_pc &n=
bsp; =20
1<BR> =20
mv_session_id =
1<BR>/);<BR>sub=20
{<BR> my ($find, $exclude, =
$default) =3D=20
@_;<BR> my $ref =3D=20
$Vend::Session->{History}<BR>  =
; =20
or return $Tag->area($default ||=20
$Config->{SpecialPage}{catalog});<BR> &nb=
sp; =20
my ($hist, $href, $cgi);<BR> =
$exclude=20
=3D qr/$exclude/ if =
$exclude;<BR> for(my=20
$i =3D $#$ref; $i >=3D 0; $i--)=20
{<BR> &n=
bsp; =20
#Log("checking $ref->[$i][0] for=20
$exclude");<BR> &nbs=
p; =20
if ($exclude and $ref->[$i][0] =3D~ $exclude)=20
{<BR> &n=
bsp; =20
next;<BR> &nbs=
p; =20
}<BR> &n=
bsp; =20
if($find) {</FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial=20
size=3D2> &nbs=
p;  =
;=20
next unless $ref->[$i][0] =3D~ /$find/; =20
<BR> &nb=
sp; =20
}<BR> &n=
bsp; =20
($href, $cgi) =3D=20
@{$ref->[$i]};<BR> &nbs=
p; =20
last;<BR> =20
}<BR> return =
$Tag->area($default ||=20
$Config->{SpecialPage}{catalog})<BR> &nbs=
p; =20
if ! $href;<BR> my $form =3D=20
'';<BR> for(grep =
!$var_exclude{$_},=20
keys %$cgi)=20
{<BR> &n=
bsp; =20
$form .=3D=20
"\n$_=3D";<BR>  =
; =20
$form .=3D join("\n$_=3D", split /\0/,=20
$cgi->{$_});<BR> =20
}<BR> return $Tag->area( { =
href=20
=3D> $href, form =3D> $form} );<BR>}<BR>EOR</FONT></DIV>
<DIV> </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 the folowing =
options:</FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2></FONT> </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> </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 trying to find=20
when the error occurred: <A=20
href=3D"http://mercurio/admin/order?id=3Ds3WsPth4&mv_pc=3D33">http://=
mercurio/admin/order?id=3Ds3WsPth4&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> </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--