[ Index ] |
|
Code source de Dotclear 1.2.5 |
1 <?php 2 # ***** BEGIN LICENSE BLOCK ***** 3 # This file is part of DotClear. 4 # Copyright (c) 2004 Olivier Meunier and contributors. All rights 5 # reserved. 6 # 7 # DotClear is free software; you can redistribute it and/or modify 8 # it under the terms of the GNU General Public License as published by 9 # the Free Software Foundation; either version 2 of the License, or 10 # (at your option) any later version. 11 # 12 # DotClear is distributed in the hope that it will be useful, 13 # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 # GNU General Public License for more details. 16 # 17 # You should have received a copy of the GNU General Public License 18 # along with DotClear; if not, write to the Free Software 19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 # 21 # ***** END LICENSE BLOCK ***** 22 23 # Chemin vers la racine de l'application (si vous changer le fichier de place) 24 $app_path = '/'; 25 26 # Si par exemple vous mettez blog.php à la racine de votre site et que DotClear 27 # se trouve dans /dotclear vous pouvez décommenter cette ligne : 28 //$app_path = '/dotclear/'; 29 30 # NE RIEN CHANGER APRES CETTE LIGNE 31 32 $blog_file_path = __FILE__; 33 $blog_dc_path = dirname(__FILE__).$app_path; 34 35 require $blog_dc_path.'/layout/prepend.php'; 36 37 # En-têtes et prologue 38 # Envoie des en-tête HTTP 39 $accept_xml = 40 !empty($_SERVER['HTTP_ACCEPT']) && 41 strpos($_SERVER['HTTP_ACCEPT'],'application/xhtml+xml') !== false; 42 43 if (dc_send_real_xml && $accept_xml) { 44 header('Content-Type: application/xhtml+xml'); 45 } else { 46 header('Content-Type: text/html; charset='.dc_encoding); 47 } 48 49 if ($accept_xml) { 50 echo '<?xml version="1.0" encoding="'.dc_encoding.'"?>'."\n"; 51 } 52 53 # Affichage de la page 54 //if (function_exists('ob_start')) { 55 // ob_start(); 56 //} 57 58 //if (defined('DC_CACHE_CONTENT')) { 59 // echo DC_CACHE_CONTENT; 60 //} else { 61 include $dc_template_file; 62 //} 63 64 require $blog_dc_path.'/layout/append.php'; 65 66 //if (function_exists('ob_start')) { 67 // $p_content = ob_get_contents(); 68 // ob_end_clean(); 69 // 70 // echo $p_content; 71 // 72 // if (defined('DC_CACHE_FILE')) { 73 // cache::writeFile(DC_CACHE_FILE,$p_content); 74 // } 75 //} 76 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Fri Feb 23 21:40:15 2007 | par Balluche grâce à PHPXref 0.7 |