Banners - Banner Administration Module v1.0.6
-------------------------------------------------------------------------------
Copyright (C) 2001  Interakt Online - banners@interakt.ro
http://www.interakt.ro/products/Banners
-------------------------------------------------------------------------------

REQUIREMENTS
------------

 - HTTP Server
 - PHP 4.0 or higher
 - MySQL 3.23 or higher
 - A file editor

INSTALLATION
------------

  *  If you do not have installed a previous version:
  
1. Copy the contents of the /src directory in a desired directory on your web
   site.

2. Create an empty database in MySQL or use an existing one.

3. With the banners_mysql_db.sql file from the /db directory of your
   installation kit create the tables and indexes in your database.

4. Go to the directory in which you copied the contents of /src.

5. In the ./Connections/banners.php modify the following values as to reflect
   your connection to the database: hostname, database, database username and
   password.

   $MM_banners_HOSTNAME = "www.myhost.com"; 
   $MM_banners_DATABASE = "mydatabase";
   $MM_banners_USERNAME = "myuser";
   $MM_banners_PASSWORD = "mypassword";
   
6. In the config.inc.php file modify the lines resembling with

   if (!defined('KT_wwwroot'))
     define('KT_wwwroot',"http://www.interakt.ro/banners");

   and change the "http://www.interakt.ro/banners" as to reflect your URL to
   the Banner Administration Module.
   Example: "http://www.mycompany.com/install/banners".

   Warning: The path must be given as a complete URL and without the trailing
   "/".
   Example: "http://www.interakt.ro/" will not work properly and will raise
   errors.

7. In the config.inc.php file modify the lines resembling with

   if (!defined('KT_root'))
     define('KT_root',"/www/htdocs/banners");

   and change the "/www/htdocs/banners" as to reflect your file path to the
   Banner Administration Module.
   Example: "/www/htdocs/modules/banners"

   Warning: The path must be given complete and without the trailing "/".
   Example: "/www/htdocs/banners/badidea/" will not work properly and will
   raise errors.

8. Make sure that the /uploads directory from the installed location has
   read/write/modify rights. This is not needed on a Windows 9x/ME
   installation (PWS and Apache), but it is needed in a Windows NT/Windows
   2000 and Linux installation.

   The commands to chage the rights of a directory in Linux and various other
   *nices, executed from the banners directory and from a root account, are:

   "chown nobody uploads/ -R"
   "chgrp nobody uploads/ -R"
   "chmod 775 uploads/ -R"

   These commands assume that you have the web server started with the
   nobody/nobody user/group pair. If you have problems with the file access,
   please check if apache is really started from the nobody/nobody account,
   using "ps ax|grep htt" and observing the first column for the httpd
   processes.

9. Test your installation with the default user "admin/admin" created.

The natural order when administering the information is : banner types,
clients, banners, pages, restrictions.

If you get lots of errors like "cannot include file 'banners/uploads/1/index.htm'", 
this means that you have to didn't set up the file permissions in the uploads folder
correctly.

  * If you have a previous installation and you want to keep the banners you've used:
  
1. Copy the contents of the /src directory in a desired directory on your web
   site.
   
2. Run the folllwing sql
  (it exists also in the file db/upgrade_mysql_db.sql):
  
  ALTER TABLE `banners`.`banners_rst` ADD `lifetime_rst` BIGINT DEFAULT '0' not null

3. Continue with the steps 4 througn 9 described above.