google don't have to watch data/
adding gommette
hard coded ftw...
fix gommette right
Fri Aug 15 19:04:12 EDT 2014
Start to remove redis dependency by using APC as a cache.

Create generic cache class to enable different backends (APC, Redis, File, ...). We still have the issue that we cannot use APC for everything because the cache is not shared between Apache PHP and cli PHP, which is used by phpcron. A solution could be to run phpcron via apache2 requests.
Start to remove redis dependency by using APC as a cache.

Create generic cache class to enable different backends (APC, Redis, File, ...). We still have the issue that we cannot use APC for everything because the cache is not shared between Apache PHP and cli PHP, which is used by phpcron. A solution could be to run phpcron via apache2 requests.
Remove unused Predis library
Add Silex framework.
Add GitHub hook page to pull code to taiste. First test with Silex
Update Silex Framework to fat version.

Include doctrine, swiftmailer, monolog and twig.
Move silex autoload file
Fix unexisting auth cookie on localhost and 127.0.0.1
Create PHP renderer service provider. Use to render PHP templates.

Example :

require_once(__DIR__ . "/../include/serviceprovider/PhpRendererServiceProvider.php");

$app->register(new Silex\Provider\PhpRendererServiceProvider());

$content = $app['renderer']->render(
	__DIR__ . '/views/template.php',
	array(
		'request' => $request,
		'site'       => $site,
		'key'       => $value,
	)
);
Use public static variables for mysql credentials.
Edit matmatronch module to use Silex (experimental use).

Matmatronch module is now follwing the MVC pattern and organized as follow:
	- index.php : it is the controller, it routes the requests, fetch data from the database, and render templates in the views folder
	- forms.php : contains function to generate search forms
	- views/ : contains the templates files written in PHP
	- static/ : contains the static files like matmatronch.xml and matmatronch.png

In the index.php file are defined the routes :
	- /recherche-{mode} : tout les modes de recherche : simple, inversée, par ville et par défaut
	- /famille/{user_id} : generate the family graph of user $user_id
	- /image/{user_id} : generate the image of user $user_id
	- /vcf/{user_id} : generate the VCF card of user $user_id

All theses routes are accessible, for example, at /matmatronch/index.php/recherche-par-ville .

There are two main middlewares :
	- check_user_is_valid : check that the current user is connected
	- check_user_is_ae_or_utbm
Add int converter to user_id parameter in matmatronch module
Fix image link in site.inc.php
Edit inscription_fimu module to use Silex (experimental use)

Use same hierarchy as matmatronch module :
	 - views/ : contains template files
	- forms.php : contains function to generate inscription form
	- index.php : contains the controller and routes
Add licence to matmatronch/index.php
Edit connect.php, disconnect.php and 403.php to use Silex (experimental use)

Also rationalized usage of 403.php to "Forbidden" access (insufficient credentials) instead of "Unauthorized" access (401 HTTP Status Code : authentication is required).
In case of needed authentication : redirect to /connexion.php with parameter 'redirect_to' set to current request URI. The user will be redirected to this address on successfull authentication.