[ Index ] |
|
Code source de SPIP 1.8.3 |
1 <?php 2 3 /***************************************************************************\ 4 * SPIP, Systeme de publication pour l'internet * 5 * * 6 * Copyright (c) 2001-2005 * 7 * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * 8 * * 9 * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * 10 * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. * 11 \***************************************************************************/ 12 13 14 // 15 // Ce fichier assure la compatibilite avec spip-lab 16 // 17 if (defined('_COMPATIBLE_SPIP_LAB')) { 18 return; 19 } else { 20 define('_COMPATIBLE_SPIP_LAB', 1); 21 22 // Appel depuis un fichier d'affichage (articles_version.php) 23 if (!defined('_ECRIRE_INC_VERSION')) { 24 include ('inc.php3'); 25 } 26 27 // Appel depuis un fichier librairie 28 function include_spip($fichier) { 29 30 switch ($fichier) { 31 case 'ecrire.php': 32 break; 33 default: 34 // charger la version spip-lab si presente 35 if (@file_exists(_DIR_RESTREINT.'lab_'.$fichier)) 36 include('lab_'.$fichier); 37 // sinon prendre la version spip-stable 38 else 39 if (@file_exists(_DIR_RESTREINT.'inc_'.$fichier.'3')) 40 include_ecrire('inc_'.$fichier.'3'); 41 // mais peut-etre avons nous une version '.php' de la version stable 42 else 43 if (@file_exists(_DIR_RESTREINT.'inc_'.$fichier)) 44 include_ecrire('inc_'.$fichier); 45 else 46 die ("Fichier SPIP-Lab \"$fichier\" manquant."); 47 break; 48 } 49 } 50 51 52 // pas encore backportee 53 function html_background() { 54 } 55 56 } 57 58 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Thu Feb 22 22:27:47 2007 | par Balluche grâce à PHPXref 0.7 |