1 | <?php |
---|
2 | /***************************************************************************\ |
---|
3 | Plugin : magusine |
---|
4 | Licence : GPL |
---|
5 | Auteurs : Stéphane Noël, Philippe Vanderlinden |
---|
6 | Infos : http://www.spip-contrib.net/Le-plugin-Magusine |
---|
7 | http://www.magunews.net/spip.php?rubrique645 |
---|
8 | |
---|
9 | $LastChangedRevision: 12345 $ |
---|
10 | $LastChangedBy: bubu $ |
---|
11 | $LastChangedDate: 2008-03-21 15:50:47 +0100 (ven, 21 mar 2008) $ |
---|
12 | \***************************************************************************/ |
---|
13 | |
---|
14 | session_start(); |
---|
15 | if (!isset($_SESSION['id_check'])) { |
---|
16 | $_SESSION['id_check'] = uniqid(rand()); |
---|
17 | } |
---|
18 | |
---|
19 | $p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))); |
---|
20 | define('_DIR_PLUGIN_ARTY',(_DIR_PLUGINS.end($p))); |
---|
21 | |
---|
22 | $forcer_lang = true; |
---|
23 | // pour free : tester si on est en admin privee ou publique |
---|
24 | if (!ereg("^\.\.", _DIR_PLUGIN_ARTY)) { |
---|
25 | $GLOBALS['dossier_squelettes'] = implode(":", Array( |
---|
26 | 'pages-custom', |
---|
27 | _DIR_PLUGIN_ARTY.'/squelettes', |
---|
28 | _DIR_PLUGIN_ARTY.'/squelettes/blocs', |
---|
29 | _DIR_PLUGIN_ARTY.'/squelettes/blocs/logos', |
---|
30 | _DIR_PLUGIN_ARTY.'/squelettes/blocs/galeries', |
---|
31 | _DIR_PLUGIN_ARTY.'/squelettes/blocs/article', |
---|
32 | _DIR_PLUGIN_ARTY.'/squelettes/blocs/rubrique', |
---|
33 | _DIR_PLUGIN_ARTY.'/squelettes/blocs/sommaire', |
---|
34 | _DIR_PLUGIN_ARTY.'/squelettes/blocs/404', |
---|
35 | _DIR_PLUGIN_ARTY.'/squelettes/blocs/mot', |
---|
36 | _DIR_PLUGIN_ARTY.'/squelettes/blocs/recherche', |
---|
37 | _DIR_PLUGIN_ARTY.'/squelettes/blocs/login', |
---|
38 | _DIR_PLUGIN_ARTY.'/squelettes/blocs/groupe' |
---|
39 | )); |
---|
40 | } |
---|
41 | // structure des tables |
---|
42 | |
---|
43 | include_spip("base/tables_magusine"); |
---|
44 | |
---|
45 | ?> |
---|