[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: solved Re: [mv] CCLib.pm not found
****** message to minivend-users from Mike Heins <mikeh@minivend.com> ******
Quoting Marius Schaefer (maillist@b-p-a.com):
>
> damn! sorry. I put in a <require "file";> in my CCLib.pm and forgott to
> copy the file in the directory.... If only I could see this in an error
> file.
Are you suggesting that every non-CyberCash user get an error message
saying "CyberCash module NOT found: error is ...."?
(NOTE: every post of mine these days has to do with MV4)
Nonetheless, being able to do something like this is nice. There is a
"Require" directive on the catalog level that can check for GlobalSub
and UserTag definitions. On the global level, you can set up your own
check with something like this in minivend.cfg:
UserTag cybercash_found Routine <<EOF
sub {
use CCLib;
BEGIN {
$Global::Variable->{CC_THERE} = 1;
}
}
EOF
#ifndef CC_THERE
Message CCLib.pm NOT found.
#endif
Then, in individual catalog.cfg files you can put:
Require UserTag cybercash_found
This is especially useful for ISPs moving catalogs around from
MV server to MV server, as it is hard sometimes to remember what
supporting software you are using.
--
Internet Robotics, 131 Willow Lane, Floor 2, Oxford, OH 45056
phone +1.513.523.7621 fax 7501 <mikeh@minivend.com>
I have a cop friend who thinks he ought be able to give a new ticket;
"too dumb for conditions".
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list