Pas résolu pour moi, je peux toujours lancer spip_loader à partir d’une machine qui ne m’a jamais servi à me connecter sur spip. Le risque que je peux imaginer serait une saturation de mon serveur par appel répété à spip_loader, si la procédure est habituellement protégée, il doit bien y avoir une raison !
J’ai plusieurs sites sur une installation mutualisée, donc
mes_options.php
est un peu particulier. Cela`vient peut être de là.
Le voici, expurgé des lignes de commentaires.
Peux tu y voir quelquechose de trouble ?
<?php
define ('_SITES_ADMIN_MUTUALISATION', 'spip.penserpouragir.org');
if (!defined("_ECRIRE_INC_VERSION")) return;
if (!is_readable (_DIR_RACINE.'mutualisation/mutualiser.php')) {
echo _L("Fichier 'mutualisation/mutualiser.php' manquant dans la racine " . _DIR_RACINE);
exit;
}
require _DIR_RACINE.'mutualisation/mutualiser.php';
$www = array();
$site = str_replace('www.', '', $_SERVER['HTTP_HOST']);
if ($site != $_SERVER['HTTP_HOST'] AND !in_array($site, $www)) {
include_spip('inc/headers');
$req = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '/';
if (isset($_SERVER['HTTPS'])
AND test_valeur_serveur($_SERVER['HTTPS']))
$protocole = 'https';
elseif (!isset($_SERVER["SCRIPT_URI"]) OR !($p = strpos($_SERVER["SCRIPT_URI"], '://')))
$protocole = 'http';
else $protocole = substr($_SERVER["SCRIPT_URI"],0,$p);
redirige_par_entete($protocole . '://' . $site . $req);
}
if (strpos($site, ':')) {
if (preg_match('/:80$/', $site)) $site = substr($site,-3);
else $site = str_replace(':', '_', $site);
}
define ('_INSTALL_SITE_PREF', prefixe_mutualisation($site));
define ('_INSTALL_NAME_DB', 'mu_'. _INSTALL_SITE_PREF);
define ('_INSTALL_SERVER_DB', 'mysql');
define ('_INSTALL_HOST_DB', 'localhost');
define ('_INSTALL_TABLE_PREFIX', 'spip');
define ('_INSTALL_USER_DB_ROOT', 'root');
define ('_INSTALL_PASS_DB_ROOT', 'mdp');
demarrer_site($site,
array(
'creer_site' => true,
'creer_base' => true,
'creer_user_base' => true,
'mail' => 'x@xx.org',
'code' => 'ecureuil',
'table_prefix' => false,
'cookie_prefix' => true,
'repertoire' => 'sites',
'url_img_courtes' => true,
'annonce' => '<p>Un service proposé par <a href="http://www.spip.net/">la communauté SPIP </a></p>',
'url_creer_base' => ''
)
);
?>