Subversion Repositories Applications.framework

Rev

Rev 153 | Rev 211 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 153 Rev 204
Line 8... Line 8...
8
 * @package		Framework
8
 * @package		Framework
9
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
9
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
10
 * @copyright	2010 Tela-Botanica
10
 * @copyright	2010 Tela-Botanica
11
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
11
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
12
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
12
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
13
 * @version		SVN: $$Id: SquelettePhp.php 153 2010-03-04 10:48:32Z jpm $$
13
 * @version		SVN: $$Id: SquelettePhp.php 204 2010-07-19 13:23:56Z aurelien $$
14
 * @link		/doc/framework/
14
 * @link		/doc/framework/
15
 */
15
 */
16
class SquelettePhp {
16
class SquelettePhp {
Line 17... Line 17...
17
	
17
 
Line 27... Line 27...
27
	public static function analyser($fichier, Array $donnees = array()) {
27
	public static function analyser($fichier, Array $donnees = array()) {
28
		$sortie = false;
28
		$sortie = false;
29
		if (file_exists($fichier)) {
29
		if (file_exists($fichier)) {
30
			// Extraction des variables du tableau de données
30
			// Extraction des variables du tableau de données
31
			extract($donnees);
31
			extract($donnees);
-
 
32
 
32
			// Démarage de la bufferisation de sortie
33
			// Démarage de la bufferisation de sortie
33
			ob_start();
34
			ob_start();
34
			// Si les tags courts sont activés
35
			// Si les tags courts sont activés
35
			if ((bool) @ini_get('short_open_tag') === true) {
36
			if ((bool) @ini_get('short_open_tag') === true) {
36
				// Simple inclusion du squelette
37
				// Simple inclusion du squelette