diff -ru ./ecrire/inc_charsets.php3 ../SPIP-v1-8-3/ecrire/inc_charsets.php3 --- ./ecrire/inc_charsets.php3 2005-08-01 18:36:57.000000000 +0200 +++ ../SPIP-v1-8-3/ecrire/inc_charsets.php3 2006-02-11 15:13:28.000000000 +0100 @@ -2138,6 +2138,8 @@ if ($charset == 'AUTO') $charset = lire_meta('charset'); + $charset = strtolower($charset); + switch ($charset) { case 'utf-8': return utf_8_to_unicode($texte); diff -ru ./ecrire/inc_db_mysql.php3 ../SPIP-v1-8-3/ecrire/inc_db_mysql.php3 --- ./ecrire/inc_db_mysql.php3 2005-08-25 21:58:56.000000000 +0200 +++ ../SPIP-v1-8-3/ecrire/inc_db_mysql.php3 2006-02-11 15:13:28.000000000 +0100 @@ -237,7 +237,7 @@ // IN (...) est limite a 255 elements, d'ou cette fonction assistante // function calcul_mysql_in($val, $valeurs, $not='') { - if (!$valeurs) return '0=0'; + if (!$valeurs) return ($not ? "0=0" : '0=1'); $n = $i = 0; $in_sql =""; diff -ru ./ecrire/inc_lang.php3 ../SPIP-v1-8-3/ecrire/inc_lang.php3 --- ./ecrire/inc_lang.php3 2005-11-04 21:23:10.000000000 +0100 +++ ../SPIP-v1-8-3/ecrire/inc_lang.php3 2006-02-11 11:29:24.000000000 +0100 @@ -318,7 +318,7 @@ 'su' => "Sundanese", 'sv' => "svenska", 'sw' => "Kiswahili", - 'ta' => "தமிழ் - tamil", + 'ta' => "தமிழ்", // Tamil 'te' => "Telugu", 'tg' => "Tajik", 'th' => "ไทย", diff -ru ./ecrire/inc_layer.php3 ../SPIP-v1-8-3/ecrire/inc_layer.php3 --- ./ecrire/inc_layer.php3 2005-05-01 21:00:55.000000000 +0200 +++ ../SPIP-v1-8-3/ecrire/inc_layer.php3 2006-03-10 01:11:12.000000000 +0100 @@ -110,9 +110,9 @@ // Tests sur le nom du butineur // function verif_butineur() { - global $HTTP_USER_AGENT, $browser_name, $browser_version; + global $browser_name, $browser_version; global $browser_description, $browser_rev, $browser_layer, $browser_barre; - ereg("^([A-Za-z]+)/([0-9]+\.[0-9]+) (.*)$", $HTTP_USER_AGENT, $match); + ereg("^([A-Za-z]+)/([0-9]+\.[0-9]+) (.*)$", $_SERVER['HTTP_USER_AGENT'], $match); $browser_name = $match[1]; $browser_version = $match[2]; $browser_description = $match[3]; @@ -137,6 +137,7 @@ $browser_name = "Safari"; $browser_version = $match[1]; $browser_layer = http_script('', _DIR_INCLUDE . 'layer.js',''); + $browser_barre = ($browser_version >= 5.0); } else if (eregi("mozilla", $browser_name) AND $browser_version >= 5) { $browser_layer = http_script('', _DIR_INCLUDE . 'layer.js',''); diff -ru ./ecrire/inc_logos.php3 ../SPIP-v1-8-3/ecrire/inc_logos.php3 --- ./ecrire/inc_logos.php3 2005-10-26 21:10:34.000000000 +0200 +++ ../SPIP-v1-8-3/ecrire/inc_logos.php3 2006-03-10 01:10:46.000000000 +0100 @@ -343,8 +343,21 @@ // Recopie de l'image d'origine avec adaptation de la taille $ok = false; - if (($process == 'gd2') AND function_exists('ImageCopyResampled')) + if (($process == 'gd2') AND function_exists('ImageCopyResampled')) { + if ($format == "gif") { + // Si un GIF est transparent, + // fabriquer un PNG transparent + $transp = imagecolortransparent($srcImage); + if ($transp > 0) $destFormat = "png"; + } + if ($destFormat == "png") { + // Conserver la transparence + if (function_exists("imageAntiAlias")) imageAntiAlias($destImage,true); + @imagealphablending($destImage, false); + @imagesavealpha($destImage,true); + } $ok = @ImageCopyResampled($destImage, $srcImage, 0, 0, 0, 0, $destWidth, $destHeight, $srcWidth, $srcHeight); + } if (!$ok) $ok = ImageCopyResized($destImage, $srcImage, 0, 0, 0, 0, $destWidth, $destHeight, $srcWidth, $srcHeight); diff -ru ./ecrire/inc_majbase.php3 ../SPIP-v1-8-3/ecrire/inc_majbase.php3 --- ./ecrire/inc_majbase.php3 2005-08-25 11:16:47.000000000 +0200 +++ ../SPIP-v1-8-3/ecrire/inc_majbase.php3 2006-02-11 16:11:35.000000000 +0100 @@ -971,14 +971,12 @@ maj_version(1.813); } - // URLs propres auteurs (et prevoir les sites, sait-on jamais) + // URLs propres auteurs if ($version_installee < 1.814) { - foreach (array('auteurs', 'syndic') as $objets) { - spip_query("ALTER TABLE spip_$objets - ADD url_propre VARCHAR(255) NOT NULL"); - spip_query("ALTER TABLE spip_$objets - ADD INDEX url_propre (url_propre)"); - } + spip_query("ALTER TABLE spip_auteurs + ADD url_propre VARCHAR(255) NOT NULL"); + spip_query("ALTER TABLE spip_auteurs + ADD INDEX url_propre (url_propre)"); maj_version(1.814); } @@ -1046,6 +1044,20 @@ maj_version(1.822); } + // URLs propres des sites (sait-on jamais) + // + oubli des KEY url_propre sur les auteurs si installation neuve + if ($version_installee < 1.830) { + spip_query("ALTER TABLE spip_syndic + ADD url_propre VARCHAR(255) NOT NULL"); + spip_query("ALTER TABLE spip_syndic + ADD INDEX url_propre (url_propre)"); + spip_query("ALTER TABLE spip_auteurs + ADD url_propre VARCHAR(255) NOT NULL"); + spip_query("ALTER TABLE spip_auteurs + ADD INDEX url_propre (url_propre)"); + maj_version(1.830); + } + return true; } diff -ru ./ecrire/inc.php3 ../SPIP-v1-8-3/ecrire/inc.php3 --- ./ecrire/inc.php3 2005-06-07 15:38:04.000000000 +0200 +++ ../SPIP-v1-8-3/ecrire/inc.php3 2006-02-11 16:11:35.000000000 +0100 @@ -28,8 +28,7 @@ include_ecrire('inc_admin.php3'); -// -// Preferences de presentation +//// Preferences de presentation // if ($spip_lang_ecrire = $GLOBALS['_COOKIE']['spip_lang_ecrire'] diff -ru ./ecrire/inc_presentation.php3 ../SPIP-v1-8-3/ecrire/inc_presentation.php3 --- ./ecrire/inc_presentation.php3 2005-09-04 16:24:59.000000000 +0200 +++ ../SPIP-v1-8-3/ecrire/inc_presentation.php3 2006-02-11 18:57:20.000000000 +0100 @@ -1337,6 +1337,7 @@ if ($spip_display == 4) echo "