Liz::Banner - Simple banner sending module, allows sending of attachments
use Liz::Banner;
$banner = new Liz::Banner;
#!/usr/local/bin/perl
use Liz::Banner;
Liz::Banner::new( );
The Liz::Banner package allows an easy to use interface for sending ebanner, optionally including files that can be sent as MIME-attachments.
The following methods are the basic methods of the Liz::Banner module.
Create a new Liz::Banner object. Intended to be called from another module.
1 account name to be used (default: lower case ref of object, e.g. HN.pm ) 2 server to be used (default: 'Banner.xxLINK.nl') 3 name of variable to store HTML info of banner in (default: 'BANNER') 4 target for clickthrough of banner (default: none)
1 instantiated object
$banner = new Liz::Banner( 'search','Banner.xxLINK.nl' ); print $banner->Random;
<PRINT "HN->Banner->Random">
The following methods allow changes to information that is associated with a banner.
Method to generate global variable ``banner'' in the callers namespace. Also returns the banner information.
1 query for which to find an appropriate banner (default: none) 2 namespace of the variable in which to store HTML (default: caller's namespace)
Method to generate global variable ``BANNER'' in the callers namespace randomly selected from a banner group. Also returns the banner HTML information and puts it in the HTML field of the object.
1 banner group number to use for this banner (default: any banner group) 2 query for which to find an appropriate banner (default: none) 3 namespace in which to set variable (default: callers)
Method to generate global variable ``banner'' in the callers namespace with the HTML information of a specific banner. Also returns the banner HTML information and puts it in the HTML field of the object.
1 banner number to obtain info of 2 flag: whether or not to log the banner as displayed (default: 0 = log as displayed, 1 = do not log) 3 namespace of the variable in which to store HTML (default: caller's namespace)
The following methods are intended for internal use only, but can also be used by experienced developers directly.
Get the contents of an URL on the web, using the banner User Agent and Referrer documentation. Sets the ERROR field.
1 path_info to be sent to server
1 contents of URL
Elizabeth Mattijsen ( lizperl@INC.nl )
(C) 1996-2000 International Network Consultants
Method Random now calls RandomFromGroup as a method to fix problems with sub-classed modules.
Now -use-s Liz.pm instead of Liz::SQL.pm.
Now longer places Exporter in ISA, it wasn't necessary.
Updated to new source typography.
Added extra parameters to Random and Specific to indicate the namespace of the variable in which to store the HTML.
Support added for TARGET= in method Specific.
Further reduced the footprint by fully qualifying global variables.
Loading of all Liz.pm routines removed. This should reduce the memory footprint significantly.
Added TARGET functionality to new.
First version of this true Perl module, based on routines developed previously in PHP.