require _DIR_RACINE.'mutualisation/mutualiser.php'; $site = str_replace('www.', '', $_SERVER['HTTP_HOST']); $site = str_replace('ww2.', '', $site); $site = str_replace('ww3.', '', $site); define ('_INSTALL_SERVER_DB', 'mysql'); define ('_INSTALL_HOST_DB', 'localhost'); define ('_INSTALL_HOST_DB_LOCALNAME', 'localhost'); define ('_INSTALL_USER_DB_ROOT', 'root'); define ('_INSTALL_PASS_DB_ROOT', 'mot2passeroot'); define ('_INSTALL_NAME_DB', 'mutu_'.prefixe_mutualisation($site)); define ('_INSTALL_USER_DB', prefixe_mutualisation($site)); define ('_INSTALL_TABLE_PREFIX', 'spip'); demarrer_site($site, array( 'creer_site' => true, 'cookie_prefix' => false, 'table_prefix' => false, 'creer_base' => true, 'creer_user_base' => true, 'code' => 'ecureuil', 'mail' => 'mutualisation@domaine.tld', 'annonce' => '

SPIP 3.1

', ) ); // Pour bloquer l'installation automatique des plugins define('_DIR_PLUGINS_AUTO', ''); // Pas de log pour gagner en écritures #$GLOBALS['nombre_de_logs'] = 0; #$GLOBALS['taille_des_logs'] = 0; # Dans le cadre d'une mutualisation, l'affichage d'une nouvelle version de SPIP est inutile function genie_mise_a_jour($t) { effacer_meta('info_maj_spip'); return 1; }