[79] | 1 | <?php |
---|
| 2 | session_start(); |
---|
| 3 | if (!isset($_SESSION['id_check'])) { |
---|
| 4 | $_SESSION['id_check'] = uniqid(rand()); |
---|
| 5 | } |
---|
| 6 | |
---|
| 7 | $p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))); |
---|
| 8 | define('_DIR_PLUGIN_ARTY',(_DIR_PLUGINS.end($p))); |
---|
| 9 | |
---|
| 10 | $forcer_lang = true; |
---|
| 11 | // pour free : tester si on est en admin privee ou publique |
---|
| 12 | if (!ereg("^\.\.", _DIR_PLUGIN_ARTY)) { |
---|
| 13 | $GLOBALS['dossier_squelettes'] = implode(":", Array( |
---|
| 14 | 'pages-custom', |
---|
| 15 | _DIR_PLUGIN_ARTY.'/squelettes', |
---|
| 16 | _DIR_PLUGIN_ARTY.'/squelettes/blocs', |
---|
| 17 | _DIR_PLUGIN_ARTY.'/squelettes/blocs/logos', |
---|
| 18 | _DIR_PLUGIN_ARTY.'/squelettes/blocs/galeries', |
---|
| 19 | _DIR_PLUGIN_ARTY.'/squelettes/blocs/article', |
---|
| 20 | _DIR_PLUGIN_ARTY.'/squelettes/blocs/rubrique', |
---|
| 21 | _DIR_PLUGIN_ARTY.'/squelettes/blocs/sommaire', |
---|
| 22 | _DIR_PLUGIN_ARTY.'/squelettes/blocs/404', |
---|
| 23 | _DIR_PLUGIN_ARTY.'/squelettes/blocs/mot', |
---|
| 24 | _DIR_PLUGIN_ARTY.'/squelettes/blocs/recherche', |
---|
| 25 | _DIR_PLUGIN_ARTY.'/squelettes/blocs/login', |
---|
| 26 | _DIR_PLUGIN_ARTY.'/squelettes/blocs/groupe' |
---|
| 27 | )); |
---|
| 28 | } |
---|
| 29 | // structure des tables |
---|
| 30 | |
---|
| 31 | include_spip("base/tables_magusine"); |
---|
| 32 | |
---|
| 33 | ?> |
---|