Sommaire
|
Maarch LetterBox needs PHP 5.0 or later. PHP config file is php.ini.
error_reporting = E_ALL display_errors = on
PHP will display every error that occur during the execution of the scripts.Once is production, set display_errors to off.
register_globals = Off
For security matters, it is recommended to set register_globals to Off.
session.save_path = "T:\TEMP\SessionsPHP" session.auto_start = 0
Set here the folder where session files wil be saved (adapt the path to your configuration).
By default, php manage sessions with files. auto_start defaults to false, it is better to leave it this way.
short_open_tag = On
It enables the use of short tags (<?) as well as traditional tags (<?php). If this option is turned to off, Maarch LetterBox can't run.
Magic_quote_gpc = On
if magic_quotes_gpc is set to Off, Maarch LetterBox won't run.
Maarch LetterBox needs Apache 2.2 or later. Apache config file is httpd.conf.
LoadModule php5_module "D:/Apps/php-5.2.0/php5apache2_2.dll" PHPIniDir "D:/apps/php-5.2.0"
Make sure PHP5 module is enabled in Apache web server
DocumentRoot "D:/Datas/wwwroot"
All PHP files must be located in this folder. The path must be adapted to your local administration.
Maarch LetterBox runs withMysql from version 4.x. The ODBC connector for MySQL must be installed on the host server. Auto import module is necessary for loading scripts to work.
The DocServer is the folder where all the files registered in Maarch Letterbox are stored. By consequence, it must be readable and writable by Apache. It means the owner of the folder must be the user who runs Apache (he must at least belong to Apche group). When in network, this folder must be shared.
Import structure.sql in your MySQL manager to create the database and data table, and then import data_minimal_en.sql ou data_demo_en.sql (data_minimal adds just an admin while data_demo inserts a set of users and groups for an immediate use).
| | You must be allowed to create a database and to modify it to run those scripts. Otherwise, delete the two first instructions (creating and selecting the database) in structure.sql. |
You can do it in CLI mode or by using a web manager, such as PHPMyAdmin
| | We recommand not to use phpmyadmin for that, as it does not handle utf-8 very well (a fix can be found here: http://www.developpez.net/forums/showpost.php?p=1222765&postcount=15). |
| | To improve the management of utf-8 in phpMyAdmin, a solution seems to edit the [mysqld] section of my.cnf as explained in the forum ubuntu and ensure that the character set is utf8_unicode_ci :
1. With Notepad + +, encode both structure.sql and data_minimal_en.sql with 'UTF-8 files without BOM ' format. 2. In strucutre.sql, specifie for each table created : ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci 3. Edit my.cnf and add in the [mysqld] section : # utf8 init-connect='SET NAMES utf8' character-set-server=utf8 collation-server=utf8_unicode_ci 4. Restart apache and mysql servers 5. Choose UTF-8 on the logon screen of phpmyadmin 6. Once connected, select utf8_unicode_ci interclassement 7. Import the .sql files, ensuring that the character set of the file is utf-8 |
You have to modify the path to the DocServer in the data base. Update the field PATH_TEMPLATE in the docserver table.
NB: The path must end with slash (/).
Copy the folder letterbox in the root folder of your web server. This folder contains all PHP and config files of Maarch LetterBox.
As for the DocServer, make sure that the folder letterbox/tmp is shared. If Maarch LetterBox runs on Linux, Apache must have reading and writing access to this folder.
It is located in the folder letterbox/xml : rename file config.xml.default to config.xml.
To make a quick install, just fill in the parameters to access the data base(databaseserver, databasename, databaseuser et databasepassword).
Description of config.xml tags :
to make sure your application is well configured, go to the URL for Maarch LetterBox in your Browser. You must see the login page.
In this file, you can set up which events will be logged. By default, all events are. You can disable some here.
Here you can activate additional functionalities :
Here are defined all document format that can be recorded in the application. By default, MS Office, OpenOffice and main media formats are enabled.
Example of configuration for PDF:
<FORMAT> <name>PDF</name> <mime>application/pdf</mime> </FORMAT>
This file is divided in several section to define:
To access Maarch LetterBox Admin panel, click on "Administration", then "Summary" in the "Menu".
There are two ways to access the list of departments:
Departments are sorted by identifier in alphabetical order. Clicking on the letters in the alphabet will show only the departments whose identifier begins by the letter you clicked.
If you know the identifier of a specific departments, you can look for it by entering its id in the search box.
The following actions on departments are available :
Mandatory fields are identifier and description.
Once a department is created, its id cannot be changed. The id can only be composed of alphabetical and numerical characters.
You can optionally associate a template of mailing list to each department. This list will be proposed on indexation page when selecting the department (you still can modify the mailing list while indexing).
To create or modify a mailing list click on "create a mailing list" or "modify the list".
To add new users to the list, click on "Add" on the line of the user you want to add. You can the same way remove a user from the list or modify the order of users in the list.
You can't remove a department that owns at least one document. You first have to give ownership of these documents to another department. As a matter of fact, documents must belong to a department to be viewed.
There are two ways to access the list of user groups:
Groups are sorted by identifier in alphabetical order. Clicking on the letters in the alphabet will show only the groups whose identifier begins by the letter you clicked.
If you know the identifier of a specific group, you can look for it by entering its id in the search box.
The following actions on groups are available :
Modifying/Adding a Group: simple mode:
Modifying/Adding a Group: advanced mode:
Mandatory fields are the group (its id) and at least one defined access.
Once a group is created, its id cannot be changed. the id can only be composed of alphabetical and numerical characters (a-z, A-Z and 0-9).
the description may contain the role of the group. While filling it is not mandatory, it might be very useful.
Checkboxes stands for fonctionnal rights:
"Resource access" is actually a restriction on documents contained in the data base. An access is composed of the name of a table from the database and a WHERE clause, and of the rights of insertion and update if necessary.
there is two modes to create access :
The simple mode allows quick creation of groups whose rights are abouts recipient departments. The advanced mode enables a more precise right management. ("Other rights" checked)
the WHERE clause is an SQL restriction clause without using the word "where". If it is left empty, the group will have access to ALL the document in the base. Once an access is created, you cannot modify it.
The following actions on access are available :
Each time insertion and/or update rights are modified on one or several access, click on "Update the rights" to take the changes into account.
Once all changes are done, click on "Accept the changes". To validate the creation of a new group, click on "Add a new"
There are two ways to access the list of users
Users are sorted by identifier in alphabetical order. Clicking on the letters in the alphabet will show only the users whose name begins by the letter you clicked.
If you know the identifyer of a specific user, you can look for it by entering his/her name in the search box.
Following actions on users are available :
Mandatory fields are identifier, name, first name, department, email address, and primary group.
Once a user is created, it is impossible to change its id. Identifiers must only contain alphabetical and numerical characters.
The other fields are optional. The "department" field is displayed between parenthesis next to the name of the user up right on the screen and in the situation bar on the home page.
A user can belong to more than one group. It is then important to select its primary group.
Following actions on users are available:
When a new user is created, its password is 'demo'. The user will be asked to change it on its first login.
To reset a user's password, just click on the button "Reset password". The new password will be 'demo'. then again, the user will be asked to change it on its next login.
Once the changes are done, click on the button "modify the user" to validate them.
There are two ways to access the list of baskets:
Baskets are sorted by identifier in alphabetical order. Clicking on the letters in the alphabet will show only the baskets whose identifier begins by the letter you clicked.
If you know the identifier of a specific basket, you can look for it by entering its id in the search box.
The following actions on baskets are available :
Once a basket is created, its id cannot be changed. The id can only be composed of alphabetical and numerical characters
The basket is the name of a basket which will be displayed in the whole application. It is then mandatory.
Description, however, is not mandatory
"Table" is linked to the collection. By default, Maarch LetterBox only has one collection, "mail".
The field "View on the table" is actually an SQL restriction clause without using the word "where" (as for the advanced edit mode in the administration of groups). If it is left empty, the basket will show every document recorded in the table.
Two internal variables can be used in the where clause :
Finally, to be efficient, a basket must be associated to user groups. As a matter of fact, a user has access to any basket associated to its primary group.
To associate a group to a basket, click on "Associate a new group to a basket".
You first have to choose the group in the drop down menu. Then, choose to authorize or not redirection in this basket. If the "redirection" checkbox is checked, choose towards which departments or users the redirection can be done. Finally, choose the page that will be used to display the basket.
Four pages are currently available:
Once all your changes are made, click "Add the group" to validate"
The name of the group then shows in the list of associated groups. To modify the parameters of a group, click on the name of the group.
Once the configuration is over, click "Modify the basket" to validate.
There are two ways to access to this page:
All events logged are those selected in config.xml.
The list of events can be sorted by date, user, affected table, type of action. by consequence, it is possible to find quickly any event.
If a user closed a mail by error, he/she still can ask the administrator to reopen it. The administrator have to enter the GED number of the mail and click "Modify the Status".
There are two ways to access the list of document types:
Types are sorted by identifier in alphabetical order. Clicking on the letters in the alphabet will show only the types whose identifier begins by the letter you clicked.
If you know the identifier of a specific type, you can look for it by entering its id in the search box.
The following actions on document types are available :
EVERY field is mandatory.
Once a type is created, its id cannot be changed. The id can only be composed of alphabetical and numerical characters
Document types depend on documentary collections. By default, Maarch LetterBox only has one collection, "mail". If you have added other collection, make sure to select here to which collection does the type belong.
The field "Processing deadline" is the maximum amount of days available to process a mail of this type. It is computed from the registering date of the mail.
The field "time before first warning" is used for notifications. It is the number of days before the deadline when the first warning will be sent.
The field "time before second warning" is used for "late" notification. It is the number of days after the deadline when the notification will be sent.
Document templates are useful to generate answers while processing mail.
There are two ways to access to this page :
Templates are sorted by identifier in alphabetical order. Clicking on the letters in the alphabet will show only the templates whose name begins by the letter you clicked.
If you know the identifier of a specific template, you can look for it by entering his/her name in the search box.
Following actions are available:
The name of the template will show when generating an answer on the indexation page. It is then mandatory.
You can also add optional comments.
Maarch Letterbox uses a slightly modified version of the open source editor TinyMCE. You can add custom dynamic fields through the menu "Maarch options". Elements of this list refer to indexes that were filled in while indexing the mail. They will automatically be replaced by matching data when the answer will be generated.
Templates are associated to at least one department. If it is not attached to any department, it will never be shown during processing.
While processing a mail, the list of templates will display all the templates associated with the recipient department.
Once all changes are done, click on "Validate the changes".
First are the senders of mail you receive. You can define a list of predefined sender that write to you very frequently.
Shippers are the persons or institutions who your outgoing mail comes from.
These two sections have been merge in this doc, as they are working exactly the same.
There are two ways to access this page :
Senders are sorted by identifier in alphabetical order. Clicking on the letters in the alphabet will show only the senders whose identifier begins by the letter you clicked.
If you know the identifier of a specific sender, you can look for it by entering its id in the search box.
Following actions are available:
The only mandatory field is the name. all others are optional.
Several users are configured in a fresh install of Maarch LetterBox to enable immediate use of the application.
You can find this file in maarch_letterbox/xml<tt>. it contains every format of allowed document and their associated MIME type. If you want to allow new formats, just add a format tag in this file. For example :
<FORMAT> <name>PDF</name> <mime>application/pdf</mime> </FORMAT>
This file is also located in maarch_letterbox/xml. It contains information displayed in several dropdown boxes. Add or remove a tag to respectively add or remove an entry.
Maarch LetterBox proposes three level of notification:
For each kind of alert, there is a script you can enable or disable according to your needs. those are batch scripts to be run daily.
To activate a notification, you MUST have an active outgoing mail server (SMTP).
config_notif.xml file enables to configure all notification scripts. It is designed the same way as config.xml.
On Windows, the easier way is to create a scheduled task.
This file will run a php command line to run the notification script
Open a text editor (notepad for example) and enter this (all on the same line, it is here wrapped for readability reasons):
path\to\your\php.exe
"Path to Maarch Letterbox\scripts connexions\name of the script to run"
"Path to Maarch LetterBox\scripts connexions\config_notif.xml"
Example with xampp (All must be on the same line !):
C:\ProgramsFiles\xampp\php\php.exe
"C:\ProgramsFiles\xampp\htdocs\maarch_letterbox\scripts connexions\notif.php"
"C:\ProgramsFiles\xampp\htdocs\maarch_letterbox\scripts connexions\config_notif.php"
Save this file with the extension .bat ex : script_notif.bat
A scheduled task is a windows tool to... schedule the run of an application or of a script.
Open Windows "Control Panel", then choose "Task Scheduler", and "create a scheduled task".
Click on "Browse" and choose the .bat file you just create.
Name the new task as you wish and choose "every day".
Choose the time when the new task must begin. We advise you to run the task at a specific time when you are certain no new mail will be added. Then choose when you want to run it from.
Then click on "Next" and do what you are asked to do.
Start the whole process again for every notification you want to activate.
On Linux, you don't need to make a .bat file and to create a scheduled task. You can run the PHP script from crontab.
To access crontab configuration, open a terminal of your choice and enter :
~ $ crontab -e
In the editor that opened, add a line such as:
50 23 * * * Chemin_de_l'exe_php Chemin_script_à _lancer (avec d'éventuels arguments)
In this case, the script is the script is run every day at 11:50 PM.
You need to add a line in the crontab for every script you want to run.
To have more information about crontab or about its syntax, consult cron manpage.