Skip to content
Extraits de code Groupes Projets
Valider b484a40c rédigé par esj's avatar esj
Parcourir les fichiers

fonctionnalisation des appels de scripts php (encore 17 avant l'autoroute)

parent 7761e9cc
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -97,14 +97,14 @@ SELECT * FROM spip_breves WHERE id_breve='$forum_id_breve'")); ...@@ -97,14 +97,14 @@ SELECT * FROM spip_breves WHERE id_breve='$forum_id_breve'"));
$retour = forum_parent($forum_id_parent); $retour = forum_parent($forum_id_parent);
if ($retour) return $retour; if ($retour) return $retour;
else return array('pref' => _T('info_message'), else return array('pref' => _T('info_message'),
'url' => 'forum_admin.php3?admin=admin', 'url' => http_php_scriptnq('forum_admin','admin=admin'),
'titre' => _T('info_forum_administrateur')); 'titre' => _T('info_forum_administrateur'));
} }
else { else {
$retour = forum_parent($forum_id_parent); $retour = forum_parent($forum_id_parent);
if ($retour) return $retour; if ($retour) return $retour;
else return array('pref' => _T('info_message'), else return array('pref' => _T('info_message'),
'url' => http_php_script('forum_admin'), 'url' => http_php_scriptnq('forum_admin'),
'titre' => _T('info_forum_interne')); 'titre' => _T('info_forum_interne'));
} }
} }
......
...@@ -208,16 +208,16 @@ function verifier_php_auth() { ...@@ -208,16 +208,16 @@ function verifier_php_auth() {
} }
// //
// entete php_auth // entete php_auth (est-encore utilise ?)
// //
function ask_php_auth($pb, $raison, $retour, $url='', $re='', $lien='') { function ask_php_auth($pb, $raison, $retour, $url='', $re='', $lien='') {
@Header("WWW-Authenticate: Basic realm=\"espace prive\""); @Header("WWW-Authenticate: Basic realm=\"espace prive\"");
@Header("HTTP/1.0 401 Unauthorized"); @Header("HTTP/1.0 401 Unauthorized");
echo "<b>$pb</b><p>$raison</p>[<a href='./'>$retour</a>] "; echo "<b>$pb</b><p>$raison</p>[<a href='./'>$retour</a>] ";
if ($url) { if ($url) {
$url = quote_amp($url); echo "[<a href=",
echo "[<a href='spip_cookie.php3?essai_auth_http=oui" http_php_script('spip_cookie',"essai_auth_http=oui&$url"),
. "&amp;$url'>$re</a>]"; "'>$re</a>]";
} }
if ($lien) if ($lien)
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter