From e10c1fdac3e5cb45bfdcfb78a21e793946bfba50 Mon Sep 17 00:00:00 2001
From: Fil <fil@rezo.net>
Date: Wed, 23 Mar 2005 22:12:28 +0000
Subject: [PATCH] =?UTF-8?q?ne=20pas=20trop=20deborder=20en=20mati=C3=A8re?=
 =?UTF-8?q?=20d'accesskeys,=20au=20bout=20d'un=20moment=20on=20sort=20du?=
 =?UTF-8?q?=20charset=20:))?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

et ajout d'un favicon.ico qui vaut ce qu'il vaut (réalisé avec le logo de SPIP et le site http://www.html-kit.com/e/favicon.cgi) mais qui évite de remplir le error-log d'apache
---
 .gitattributes               |   1 +
 ecrire/img_pack/favicon.ico  | Bin 0 -> 1406 bytes
 ecrire/inc_presentation.php3 |  12 +++++++++---
 3 files changed, 10 insertions(+), 3 deletions(-)
 create mode 100755 ecrire/img_pack/favicon.ico

diff --git a/.gitattributes b/.gitattributes
index 4ada9ff4be..9657dc1467 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -115,6 +115,7 @@ ecrire/img_pack/documents-48.png -text
 ecrire/img_pack/documents-48_rtl.png -text
 ecrire/img_pack/edit.gif -text
 ecrire/img_pack/effacer-cache-24.gif -text
+ecrire/img_pack/favicon.ico -text
 ecrire/img_pack/fiche-perso-24.gif -text
 ecrire/img_pack/fiche-perso.png -text
 ecrire/img_pack/fleche-left.png -text
diff --git a/ecrire/img_pack/favicon.ico b/ecrire/img_pack/favicon.ico
new file mode 100755
index 0000000000000000000000000000000000000000..d64f4c538b550aa46843fd8b20a429f620f9bb5a
GIT binary patch
literal 1406
zcmeH{J8u$D7=|BOi&ZP7R%=^pt%_Q;B3f^yQe3!&fsKTP03ifI!T=<YFmRh7fe;1=
z14u$bm>6JTBJu~|FZdHo9Mr^w9*Xfo6Mq5c<oPb|IcGTU@PR~Zxtz1*U4ji!?F%N-
zo<PE~i10yjmd=IocuXRZK&#a<7!0V_>o^<^6bc0vi-kg=K&R7TG#U{I1W>6|L?RIk
z1_P~D3#-*irBWf2$<XWd@OV6^)oR-9HfFP#U@%B57Ng(q(`YoX*=$s+RZ682KA(?V
zE=M|@MyXVy(P+@=beK#gn$0G5yPaaOh|A@|?RMk$`w54`42MHbPEP1{yXf_Lj7B51
zT8(nKjMM2PpU;!cX7PHxq*5u8$t3Z3oKPr4G#WkU!CaU-Fn3_;!1Wm;9?kTJZ)b!(
z*}uZk{iDByE9(~(@5Nl2F6FJ=XRE6l(z|MzW}-a4v#`9a-d|gMz6P(juyTALmCFye
zZeJCLPXyaH-dw&Z-(7zI2b+@@u(Y$Iy7qAE-HT}}qHN*m%gxu9e)k;T`&0j?5~GiA
jzxXQh55afA7cG2R6i6W<zV~?rev0`yp72p1?o2oZEAM&1

literal 0
HcmV?d00001

diff --git a/ecrire/inc_presentation.php3 b/ecrire/inc_presentation.php3
index a6c1e75590..9b852f76d6 100644
--- a/ecrire/inc_presentation.php3
+++ b/ecrire/inc_presentation.php3
@@ -108,8 +108,11 @@ function debut_cadre($style, $icone = "", $fonction = "", $titre = "") {
 	}
 	
 	// accesskey pour accessibilite espace prive
-	$accesskey_c = chr($accesskey++);
-	$ret = "<a name='access-$accesskey_c' href='#access-$accesskey_c' accesskey='$accesskey_c'></a>";
+	if ($accesskey <= 122) // z
+	{
+		$accesskey_c = chr($accesskey++);
+		$ret = "<a name='access-$accesskey_c' href='#access-$accesskey_c' accesskey='$accesskey_c'></a>";
+	}
 
 	if ($style == "e") {
 		$ret .= "<div class='cadre-e-noir'$style_cadre><div class='cadre-$style'>";
@@ -1595,8 +1598,11 @@ function debut_html($titre = "", $rubrique="", $onLoad="") {
 		'<link rel="stylesheet" href="', _DIR_RESTREINT, 'spip_style_visible.css" type="text/css" title="visible" />', "\n";
 	$onLoadInvisible = " onLoad=\"setActiveStyleSheet('invisible'); ";
 
+	// favicon.ico
+	echo '<link rel="shortcut icon" href="', _DIR_IMG_PACK, 'favicon.ico" />';
+
 	// Fin des entetes
-	echo "</head>\n<body text='#000000' bgcolor='#f8f7f3' link='$couleur_lien' vlink='$couleur_lien_off' alink='$couleur_lien_off' topmargin='0' leftmargin='0' marginwidth='0' marginheight='0' frameborder='0'";
+	echo "\n</head>\n<body text='#000000' bgcolor='#f8f7f3' link='$couleur_lien' vlink='$couleur_lien_off' alink='$couleur_lien_off' topmargin='0' leftmargin='0' marginwidth='0' marginheight='0' frameborder='0'";
 
 	if ($spip_lang_rtl)
 		echo " dir='rtl'";
-- 
GitLab