From c89a3f4c0a34d7047beb9aea6a18de16c19ced9e Mon Sep 17 00:00:00 2001 From: Fil <fil@rezo.net> Date: Tue, 21 Feb 2006 23:26:05 +0000 Subject: [PATCH] disparition de spip_cookie.php3 aussi, et nouveau renommage de style_prive --- .gitattributes | 2 +- dist/{spip_style_prive.html => style_prive.html} | 0 spip_cookie.php3 => ecrire/exec_spip_action_cookie.php | 10 +++++----- ecrire/inc_presentation.php | 2 +- formulaires/formulaire_login.html | 5 ++++- 5 files changed, 11 insertions(+), 8 deletions(-) rename dist/{spip_style_prive.html => style_prive.html} (100%) rename spip_cookie.php3 => ecrire/exec_spip_action_cookie.php (98%) diff --git a/.gitattributes b/.gitattributes index f079f8be9d..b076b836c0 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,7 +2,7 @@ IMG/logo_spip.jpg -text /INSTALL.txt -text dist/choix_mots.html -text -dist/spip_style_prive.html -text +dist/style_prive.html -text ecrire/charsets/cp1251.php -text ecrire/charsets/cp1256.php -text ecrire/charsets/html.php -text diff --git a/dist/spip_style_prive.html b/dist/style_prive.html similarity index 100% rename from dist/spip_style_prive.html rename to dist/style_prive.html diff --git a/spip_cookie.php3 b/ecrire/exec_spip_action_cookie.php similarity index 98% rename from spip_cookie.php3 rename to ecrire/exec_spip_action_cookie.php index 4cc3a56c29..4776553f2e 100644 --- a/spip_cookie.php3 +++ b/ecrire/exec_spip_action_cookie.php @@ -10,9 +10,11 @@ * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. * \***************************************************************************/ -include ("ecrire/inc_version.php"); -include_ecrire ("inc_session"); -include_ecrire('inc_cookie'); +function spip_action_cookie_dist() { + include_ecrire ("inc_session"); + include_ecrire('inc_cookie'); + spip_cookie_dist(); +} function auth_http($url, $essai_auth_http) { global $_SERVER; @@ -274,6 +276,4 @@ else { } } -spip_cookie_dist() - ?> diff --git a/ecrire/inc_presentation.php b/ecrire/inc_presentation.php index 31b7b3b317..bab7262d10 100644 --- a/ecrire/inc_presentation.php +++ b/ecrire/inc_presentation.php @@ -1773,7 +1773,7 @@ function envoi_link($nom_site_spip, $rubrique="") { // CSS espace prive . '<link rel="stylesheet" type="text/css" href="' - . generer_url_public('spip_style_prive', $args) .'" /> + . generer_url_public('style_prive', $args) .'" /> ' // CSS calendrier . '<link rel="stylesheet" type="text/css" href="' . _DIR_IMG_PACK diff --git a/formulaires/formulaire_login.html b/formulaires/formulaire_login.html index 517c0c7643..a333386aa7 100644 --- a/formulaires/formulaire_login.html +++ b/formulaires/formulaire_login.html @@ -27,7 +27,10 @@ alt="[(#ENV{login_alt})]" /></div>] <input type="hidden" name="session_login_hidden" value="(#ENV{login})" /> <script type="text/javascript"><!-- -document.write("<:login_login:> <strong>[(#ENV{login_alt})]<" + "/strong><br />[<a style='color: #e86519' href='[(#ENV{action2})]?cookie_admin=non[&url=(#ENV*{url}|urlencode)][&retour=(#ENV*{self}|urlencode)]'><font size='2'><:login_autre_identifiant:><" + "/font><" + "/a>]") +document.write("<:login_login:> <strong>[(#ENV{login_alt})]<" + "/strong><br />[<a style='color: #e86519' href='[(#ENV{action2} + |parametre_url{cookie_admin,non} + |parametre_url{url,#ENV*{url}} + |parametre_url{retour,#ENV*{self}})]'><font size='2'><:login_autre_identifiant:><" + "/font><" + "/a>]") //--></script> <noscript> <p class='notes' style='font-size: 130%'> -- GitLab