*******************************
BASIC INSTALLATION FOR FIREFLY
*******************************

For this document's status, see LICENSE file
People who take parts of firefly project, see CREDITS file

NEEDS
    - Apache web server 1.3.x
      Use a 1.3.14 version or better
    - Php4 with PostgreSQL and GD support
      Use a 4.0.5 version or better
    - PostgreSQL 7.1, with TCP connect enable and "trust" localhost
      Use 7.1 version or better.

INSTALLATION :

Utar the firefly-X.X.X.tar.gz in a FIREFLY_FOLDER folder, served by apache (choose any name)
Change to directory FIREFLY_FOLDER;

Init the firefly database
    - Login as Postgres super-user (default : postgres) ;
    - Create a database [database] choose any name too ;
    - Execute the command : #psql [database] < FIREFLY_FOLDER/dumps/firefly_schema.sql
    - Execute the command : #psql [database] < FIREFLY_FOLDER/dumps/firefly_initdatas.sql

    - Those scripts create tables and some references. They create a first user
      "admin" with "admin" password.

Edit the Apache config file :

    - edit httpd.conf file to add a virtualhost who serves the FIREFLY_FOLDER directory.

Edit the FIREFLY_FOLDER/config.php file:
    - Edit the $db_ variables content to match postgres configuration
    - the $gd_type variable contents what type of image your gd_lib supports


Edit FIREFLY_FOLDER/modules/support/include/config.php file:
    - Edit your help desk contracts parameter  :

     *$my_company contents your company name ;

     *Each contract is identified by a letter and a name :

     $contract_type = array (    "A" => "Contract A",
                                 "B" => "Contract B",
                                 "C" => "Contract C"

                                 );

     *for each contract type, the $num_contacts variable contents the number of identified contacts
      who are habilited to use the call center :

     $num_contacts  = array (    "A" => 2,
                                 "B" => 4,
                                 "C" => 8

                                );

Editez FIREFLY_FOLDER/modules/support/include/headmail.txt file:
    - This file contents mails headers.

Replace the FIREFLY_FOLDER/modules/support/images/my_logo.gif file by your company logo.


Chmod "FIREFLY_FOLDER/modules/[module_directory]/include/applid.php" files
to rw for apache server

Open a browser at the firefly virtualhost url
    - Use the login "admin" with the password "admin"
    - Change your password
