Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | /***************************************************************************\ |
---|
4 | * SPIP, Systeme de publication pour l'internet * |
---|
5 | * * |
---|
6 | * Copyright (c) 2001-2009 * |
---|
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 | # compatibilite mutualisation (modifier la definition de $site au besoin) |
---|
14 | $site = str_replace('www.', '', $_SERVER['HTTP_HOST']); |
---|
15 | list($site) = explode(':', $site); // supprimer le :80 (flash) |
---|
16 | define('_FC_LANCEUR', 'tmp/fcconfig_' . $site . '.inc'); |
---|
17 | |
---|
18 | if (@file_exists(_FC_LANCEUR)) include _FC_LANCEUR; |
---|
19 | else { |
---|
20 | |
---|
21 | # ou est l'espace prive ? |
---|
22 | @define('_DIR_RESTREINT_ABS', 'ecrire/'); |
---|
23 | include_once _DIR_RESTREINT_ABS.'inc_version.php'; |
---|
24 | |
---|
25 | # rediriger les anciens URLs de la forme page.php3fond=xxx |
---|
26 | if (isset($_GET['fond'])) { |
---|
27 | include_spip('inc/headers'); |
---|
28 | redirige_par_entete(generer_url_public($_GET['fond'])); |
---|
29 | } |
---|
30 | |
---|
31 | # au travail... |
---|
32 | include _DIR_RESTREINT_ABS.'public.php'; |
---|
33 | } |
---|
34 | |
---|
35 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.