[ Index ] |
|
Code source de SPIP Agora 1.4 |
1 <?php 2 /***************************************************** 3 * This file is part of Agora, web based content management system. 4 * 5 * Agora is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; version 2 of the License. 8 * 9 * Agora is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details (file "COPYING"). 13 * 14 * Copyright © Arnaud Martin, Antoine Pitrou et Philippe Rivière. 15 * List of authors detailed in "copyright_fr.html" file. 16 * E-mail : agora@sig.premier-ministre.gouv.fr 17 * Web site : http://www.agora.gouv.fr 18 *****************************************************/ 19 if (!defined("_INC_PUBLIC")) { 20 define("_INC_PUBLIC", "1"); 21 include ("inc-public-global.php"); 22 } 23 else { 24 if ($contexte_inclus == '') 25 $contexte_inclus = array(); 26 27 $cache_inclus = inclure_fichier($fond, $delais, $contexte_inclus, $personnalisation); 28 //On supprime le temoin de personnalisation pour eviter sa propagation dans les squelettes inclus qui suivent 29 unset($personnalisation); 30 // TODO Implementer une classe de LOG pour gérer tout ça ... 31 32 if (file_exists($cache_inclus)) { 33 include($cache_inclus); 34 } 35 else { 36 spip_log('le fichier cache : ' . $cache_inclus . ' correspondant au fond : ' . $fond . ', n\'existe pas '); 37 } 38 } 39 40 // traces de l'utilisation mémoire dans les logs d'Agora (trop lourd ?) 41 // Peut etre a placer en option dans le back office... 42 /* 43 if (function_exists('memory_get_usage')) { 44 $mem = memory_get_usage()/1024; 45 spip_log ('mem usage (fond : '.$fond.') : '.$mem.' ko' ); 46 } 47 */ 48 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 14:40:03 2007 | par Balluche grâce à PHPXref 0.7 |