Index: CHANGELOG =================================================================== --- CHANGELOG (revision 1114) +++ CHANGELOG (revision 1216) @@ -1,2 +1,11 @@ +Dotclear 2.5.1 - 2013-07-20 +=========================================================== +* Security fix: Replacement of swfupload.swf by a jQuery plugin +* Security enhancement: Strenghened lists display +* Thumbnails quality improved +* Minor enhancements +* Various bug fixes +* Various cosmetic adjustments + Dotclear 2.5.0 - 2013-03-12 =========================================================== Index: admin/post.php =================================================================== --- admin/post.php (revision 1211) +++ admin/post.php (revision 1215) @@ -420,7 +420,9 @@ '/'.$post->post_url); echo ''.__('Preview').' (p)'.' '; - } - echo - ''.__('Cancel').' (c)'; + } else { + echo + ''.__('Cancel').' (c)'; + } + echo ($can_delete ? '' : ''). Index: admin/style/jsUpload/style.css =================================================================== --- admin/style/jsUpload/style.css (revision 1203) +++ admin/style/jsUpload/style.css (revision 1209) @@ -32,4 +32,5 @@ color: #000; background: #F5F5F5; + background: -webkit-gradient(linear, left top, left bottom, from(#DFDFDF), to(#F5F5F5)); background: -moz-linear-gradient(center top , #F5F5F5, #DFDFDF) repeat scroll 0 0 transparent; border: 1px solid #CCCCCC; @@ -45,5 +46,6 @@ .enhanced_uploader .disabled, .enhanced_uploader .disabled:hover { color: #666; - background: #dfdfdf; + background: #DFDFDF; + border: 1px solid #CCCCCC; } Index: admin/update.php =================================================================== --- admin/update.php (revision 1179) +++ admin/update.php (revision 1231) @@ -27,5 +27,5 @@ $updater = new dcUpdate(DC_UPDATE_URL,'dotclear',DC_UPDATE_VERSION,DC_TPL_CACHE.'/versions'); -$new_v = $updater->check(DC_VERSION); +$new_v = $updater->check(DC_VERSION, !empty($_GET['nocache'])); $zip_file = $new_v ? DC_BACKUP_PATH.'/'.basename($updater->getFileURL()) : ''; $version_info = $new_v ? $updater->getInfoURL() : ''; @@ -173,4 +173,8 @@ if (!$core->error->flag()) { echo '
'.__('No newer Dotclear version available.').'
'; + echo ''.__('No newer Dotclear version available.').'
'. + ''; } else Index: inc/core/class.dc.update.php =================================================================== --- inc/core/class.dc.update.php (revision 1179) +++ inc/core/class.dc.update.php (revision 1231) @@ -32,4 +32,5 @@ protected $cache_ttl = '-6 hours'; + protected $nocache_ttl = '-2 mins'; protected $forced_files = array(); @@ -55,9 +56,10 @@ * * @param version string Current version to compare + * @param nocache boolean Force checking * @return string Latest version if available */ - public function check($version) - { - $this->getVersionInfo(); + public function check($version, $nocache=false) + { + $this->getVersionInfo($nocache); $v = $this->getVersion(); if ($v && version_compare($version,$v,'<')) { @@ -68,8 +70,13 @@ } - public function getVersionInfo() - { + public function getVersionInfo($nocache=false) + { + # Check minimum time without cache (prevents from server flood) + if ($nocache && is_readable($this->cache_file) && filemtime($this->cache_file) > strtotime($this->nocache_ttl)) { + $nocache = false; + } + # Check cached file - if (is_readable($this->cache_file) && filemtime($this->cache_file) > strtotime($this->cache_ttl)) + if (is_readable($this->cache_file) && filemtime($this->cache_file) > strtotime($this->cache_ttl) && !$nocache) { $c = @file_get_contents($this->cache_file); Index: inc/prepend.php =================================================================== --- inc/prepend.php (revision 1179) +++ inc/prepend.php (revision 1232) @@ -123,5 +123,5 @@ # Constants define('DC_ROOT',path::real(dirname(__FILE__).'/..')); -define('DC_VERSION','2.5.1-dev'); +define('DC_VERSION','2.5.2-dev'); define('DC_DIGESTS',dirname(__FILE__).'/digests'); define('DC_L10N_ROOT',dirname(__FILE__).'/../locales'); Index: locales/fr/main.po =================================================================== --- locales/fr/main.po (revision 1193) +++ locales/fr/main.po (revision 1231) @@ -1991,6 +1991,12 @@ msgstr "Les fichiers suivants de votre installation de Dotclear ne peuvent pas être écrits. Veuillez corriger la situation ou mettre à jour manuellement." +msgid "Manual checking of update done successfully." +msgstr "Vérification manuelle de mise à jour effectuée avec succès." + msgid "No newer Dotclear version available." msgstr "Aucune nouvelle version de Dotclear n'est disponible." + +msgid "Force checking update Dotclear" +msgstr "Forcer la vérification de mise à jour de Dotclear" #, php-format Index: plugins/pages/page.php =================================================================== --- plugins/pages/page.php (revision 1179) +++ plugins/pages/page.php (revision 1215) @@ -432,6 +432,9 @@ '/'.$post->post_url); echo ''.__('Preview').' (p)'.''; - } - + } else { + echo + ''.__('Cancel').' (c)'; + } + echo ($can_delete ? '' : '').