$phpAds_type_sql_allow
$phpAds_type_web_allow
$phpAds_type_url_allow
$phpAds_type_html_allow
phpAdsNew can use different types of banners and store them in different
ways. The first two options are used for local storage of banners. You
can use the admin interface to upload a banner and phpAdsNew will store
the banner in the SQL database (option 1) or on a web server (option 2).
You can also use a banner stored on a different web server (option 3)
or use html to generate a banner (option 4). You can disable any one of
these types by altering these settings. By default all banner types are
turned on.
If you disable a certain banner type while there are still banners available
of the this type, phpAdsNew will allow the use of these banners, but will
not allow the creation of new banners of this type.
$phpAds_type_web_mode
If you want to use banners stored on the web server, you need to configure
this setting. If you want to store the banners in a local directory set
this option to 0. If you want to store the banner on an external FTP server
set this option to 1. On certain web servers you may want to use the FTP
option even on the local web server.
This option doesn't need any special extensions, but phpAdsNew will try
to use the FTP extension if it is available, otherwise phpAdsNew will
use sockets to provide the same functionality.
$phpAds_type_web_dir
Specify the directory where phpAdsNew needs to copy the uploaded banners
to. This directory needs to be writable by PHP, this could mean you need
to modify the UNIX permissions for this directory (chmod). The directory
you specify here needs to be in the web server' document root, the web
server must be able to serve the files directly. Do not specify a trailing
slash (/). You only need to configure this option if you have set $phpAds_type_web_mode
to 0.
$phpAds_type_web_ftp
Specify the FTP server where phpAdsNew needs to copy the uploaded banners
to. The directory you specify here needs to be in the web server' document
root, the web server must be able to serve the files directly. The URL
you specify here can include a username, a password, the server name and
the path.
ftp://phpads:1234@ftp.phpads.com/www/ads |
|
phpAdsNew will try to log in using username "phpads", password
"1234" on the ftp server called "ftp.phpads.com" and
will try to upload the banners in the directory "www/ads". If
you don't specify a directory phpAdsNew will upload the banner to the
root directory of the FTP server. If you don't specify a username and
password phpAdsNew will try to login as an anonymous user with the administrators
e-mail address. It is not recommended to store you banners on an FTP server,
which can be accessed by anonymous users!!! Do not specify a trailing
slash (/). You only need to configure this option if you have set $phpAds_type_web_mode
to 1.
$phpAds_type_web_url
If you store banners on a web server, phpAdsNew needs to know which public
URL corresponds with the directory you specified above. Do not specify
a trailing slash (/). You need to configure this option if you have set
$phpAds_type_web_mode to 0 or 1.
$phpAds_type_html_auto
If this option is turned on phpAdsNew will automatically alter HTML banners
in order to allow the clicks to be logged. However even if this option
is turned it will be possible to disable this feature on a per banner
basis.
$phpAds_type_html_php
It is possible to let phpAdsNew execute PHP code embedded inside HTML
banners. This feature is turned off by default.
|