//|
//| Copyright (C) Architecte du Logiciel
//| All rights reserved. Duplication and distribution prohibited.
//| http://www.architectedulogiciel.fr
//|
======================================
SATISFIED IN A SECOND
A software developped by Riccardo Cohen
http://www.architectedulogiciel.fr
This software is not free, you must purchase a license to use it.
This software is not open source, you cannot use the source for your own purpose
======================================

To install the software :
-------------------------

- if necessary create a database with unicode encoding :
   CREATE DATABASE surveydatabase DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
   
- modify the adlsias_config.php in the three directories admin, install, and run

- change install/adlsias_install.xml to match your survey
  * change the range min/max and set the supported languages (fr/en for the interface, any other including unicode for the data)
  * set range labels (they must start at rangemin and finish at rangemax)
  * add questions that will be displayed in the graphic
  * add comments that the user will type in at the end
  * add constants that will be displayed at the beginning and that will not change for the whole session (but can be different for each session)

- change run/index.php to match the directories and also the survey number to run (1 for the first one). You can also use the custompage_sample.php to display automatically any survey based on the surveyid. Be careful this method is protected by a very poor password protection, and any good developer car hack the password of other sessions and answer to any session.

- upload the 3 directories admin, install, and run on the server

- use the web browser to install at /host/directory/install/adlsias_install.php
  !! BE CAREFUL !! there will be no confirmation
  and check the last line : RESULT=OK

- use the web browser to add a sessionto your survey : /host/directory/admin/adlsias_admin.php
  * choose "Create a new session" in the menu
  * Type its name and its parameters

- use the web browser to check your survey : /host/directory/run/index.php

- go back to the admin and look at the results : /host/directory/admin/adlsias_admin.php

- remove the install directory and protect the admin with a password


Interface Customization :
-------------------------
In index.php you have several variables given to the flash component :

- password : your password (or nothing if on localhost)

- requesturl : url of the php file adlsias_request.php
  (note that adlsias_config.php and adlsias.php must be in the same directory as adlsias_request.php)

- sessionid : the identifier of the session to request

- lang : initial lang (en,fr etc.)

- maincolor : hue of the main color from 0 to 360. (0=red, 40=brown, 240=blue etc.)
- mainsat : saturation of the main color from 0 to 255. (use 0 to show grey)

- showlangselector : true to show the main language selector (based on your survey information)

- showadl : true to show the software editor's name : myself !


License :
---------
The software works with no limit as long as it is inside http://localhost so you can test your survey on your machine.
To make it work on a real site, you must ask a password at http://www.architectedulogiciel.fr
You are not allowed to use the software on a local http server distributed trough CDROM etc. in production environment 

