Changes in [1223:e0bd53d02a6f:1224:0767b7ca66b0]
- Files:
-
- 1 deleted
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
.hgsubstate
r1186 r1208 1 2508420429de7efd362a9b8302420f5eaa602587inc/libs/clearbricks1 ff969f43ffc6d1a03258e32e8abb1812cddbd450 inc/libs/clearbricks -
.hgtags
r871 r1219 12 12 6fce226121140735a51a8f447c80f1dacd2974ea 2.4.4 13 13 514d5121a12586b7ff320924d44028b677a01020 2.4.4 14 baf879af43beea9764d920c2facd7226e90c5cf3 2.5.1 -
CHANGELOG
r1114 r1216 1 Dotclear 2.5.1 - 2013-07-20 2 =========================================================== 3 * Security fix: Replacement of swfupload.swf by a jQuery plugin 4 * Security enhancement: Strenghened lists display 5 * Thumbnails quality improved 6 * Minor enhancements 7 * Various bug fixes 8 * Various cosmetic adjustments 9 1 10 Dotclear 2.5.0 - 2013-03-12 2 11 =========================================================== -
admin/js/jsUpload/jquery.fileupload-ui.js
r1190 r1206 104 104 ); 105 105 }); 106 107 /* 108 * 109 * Activation du bouton si un fichier trouvé 110 */ 111 var fileUploadButtonBar = that.element.find('.fileupload-buttonbar'); 112 fileUploadButtonBar.find('.start').prop('disabled', false); 113 fileUploadButtonBar.find('.start').removeClass('disabled'); 114 /* 115 * 116 */ 106 117 }, 107 118 // Callback for the start of each file upload request: … … 129 140 // Callback for successful uploads: 130 141 done: function (e, data) { 142 131 143 var that = $(this).data('blueimp-fileupload') || 132 144 $(this).data('fileupload'), … … 300 312 } 301 313 ); 314 /* 315 * Recherche des fichers restants à uploader 316 * Désactivation du bouton si plus rien 317 */ 318 var filesList = that.options.filesContainer; 319 if(filesList.find('.start').size() == 0) { 320 var fileUploadButtonBar = that.element.find('.fileupload-buttonbar'); 321 fileUploadButtonBar.find('.start').prop('disabled', true); 322 fileUploadButtonBar.find('.start').addClass('disabled'); 323 } 324 /* 325 * 326 */ 302 327 }, 303 328 processstart: function () { -
admin/post.php
r1179 r1215 420 420 '/'.$post->post_url); 421 421 echo '<a id="post-preview" href="'.$preview_url.'" class="button" accesskey="p">'.__('Preview').' (p)'.'</a> '; 422 } 422 } else { 423 echo 424 '<a id="post-cancel" href="index.php" class="button" accesskey="c">'.__('Cancel').' (c)</a>'; 425 } 426 423 427 echo 424 428 ($can_delete ? '<input type="submit" class="delete" value="'.__('Delete').'" name="delete" />' : ''). -
admin/style/jsUpload/style.css
r1177 r1209 28 28 } 29 29 30 .enhanced_uploader .add, .enhanced_uploader .clean, .enhanced_uploader .cancel {30 .enhanced_uploader .add, .enhanced_uploader .clean, .enhanced_uploader .cancel, .enhanced_uploader .disabled { 31 31 text-shadow: none; 32 32 color: #000; 33 33 background: #F5F5F5; 34 background: -webkit-gradient(linear, left top, left bottom, from(#DFDFDF), to(#F5F5F5)); 34 35 background: -moz-linear-gradient(center top , #F5F5F5, #DFDFDF) repeat scroll 0 0 transparent; 35 36 border: 1px solid #CCCCCC; 36 37 } 37 38 38 .enhanced_uploader .button.add:hover, .enhanced_uploader .button.clean:hover, .enhanced_uploader .button.cancel:hover {39 .enhanced_uploader .button.add:hover, .enhanced_uploader .button.clean:hover, .enhanced_uploader .button.cancel:hover, .enhanced_uploader .disabled:hover { 39 40 background: #DFDFDF; 40 41 background: -webkit-gradient(linear, left top, left bottom, from(#DFDFDF), to(#F5F5F5)); 41 42 background: -moz-linear-gradient(center top , #DFDFDF, #F5F5F5) repeat scroll 0 0 transparent; 43 border: 1px solid #CCCCCC; 44 } 45 46 .enhanced_uploader .disabled, .enhanced_uploader .disabled:hover { 47 color: #666; 48 background: #DFDFDF; 42 49 border: 1px solid #CCCCCC; 43 50 } -
inc/core/class.dc.media.php
r1179 r1220 515 515 $f = $this->fileRecord($rs); 516 516 if ($f !== null) { 517 $res[] = $f;517 $res[] = new ArrayObject($f); 518 518 } 519 519 } -
inc/core/class.dc.modules.php
r1179 r1196 85 85 while (($entry = $d->read()) !== false) 86 86 { 87 $full_entry = $root. '/'.$entry;87 $full_entry = $root.$entry; 88 88 89 89 if ($entry != '.' && $entry != '..' && is_dir($full_entry) -
inc/dbschema/upgrade.php
r1179 r1205 335 335 } 336 336 } 337 338 if (version_compare($version, '2.5.1', '<=')) 339 { 340 // Flash enhanced upload no longer needed 341 @unlink(DC_ROOT.'/'.'inc/swf/swfupload.swf'); 342 } 337 343 338 344 $core->setVersion('core',DC_VERSION); -
inc/prepend.php
r1179 r1217 123 123 # Constants 124 124 define('DC_ROOT',path::real(dirname(__FILE__).'/..')); 125 define('DC_VERSION','2.5.1 -dev');125 define('DC_VERSION','2.5.1'); 126 126 define('DC_DIGESTS',dirname(__FILE__).'/digests'); 127 127 define('DC_L10N_ROOT',dirname(__FILE__).'/../locales'); -
locales/en/help/media.html
r175 r1195 31 31 <dd>Check this if you want the file to be private, i.e. accessible only by 32 32 its owner and not accessible from the blog.</dd> 33 </dl> 34 35 <dl> 36 <dt>Enhanced uploader</dt> 37 <dd>Allows to select one or several of your local files to send them on your 38 blog. Should any file be bigger than the maximum size, it will not be sent.</dd> 33 39 </dl> 34 40 -
locales/fr/help/core_media.html
r175 r1194 31 31 <dd>Indique que le fichier envoyé n'est visible que par son propriétaire tant 32 32 qu'il n'est pas publié sur le blog.</dd> 33 </dl> 34 35 <dl> 36 <dt>Interface avancée</dt> 37 <dd>Permet de choisir plusieurs fichiers à la fois sur son disque dur pour les envoyer sur le 38 blog. Si un des fichiers dépasse la taille maximale, il ne pourra être envoyé.</dd> 33 39 </dl> 34 40 -
locales/fr/main.po
r1183 r1193 1411 1411 1412 1412 msgid "Extract" 1413 msgstr "Extrai t"1413 msgstr "Extraire" 1414 1414 1415 1415 msgid "Change media properties" -
locales/fr/plugins.po
r1126 r1200 1896 1896 msgstr "Liste des derniers commentaires postés" 1897 1897 1898 msgid "You can modify this duration in the %s" 1899 msgstr "Vous pouvez modifier cette durée dans les %s" 1900 1898 1901 #~ msgid "Export a blog" 1899 1902 #~ msgstr "Exporter un blog" … … 1910 1913 #~ msgid "The backup file does not appear to be well formed." 1911 1914 #~ msgstr "Le fichier de sauvegarde semble mal formaté." 1912 1913 msgid "You can modify this duration in the %s"1914 msgstr "Vous pouvez modifier cette durée dans les %s" -
plugins/antispam/_admin.php
r1179 r1207 59 59 if ($ttl != null && $ttl >=0) { 60 60 echo '<p>'.sprintf(__('All spam comments older than %s day(s) will be automatically deleted.'), $ttl).' '. 61 sprintf(__('You can modify this duration in the %s'),'<a href="blog_pref.php "> '.__('Blog preferences').'</a>').61 sprintf(__('You can modify this duration in the %s'),'<a href="blog_pref.php#antispam_moderation_ttl"> '.__('Blog preferences').'</a>'). 62 62 '</p>'; 63 63 } -
plugins/antispam/index.php
r1179 r1207 162 162 if ($moderationTTL != null && $moderationTTL >=0) { 163 163 echo '<p>'.sprintf(__('All spam comments older than %s day(s) will be automatically deleted.'), $moderationTTL).' '. 164 sprintf(__('You can modify this duration in the %s'),'<a href="blog_pref.php "> '.__('Blog preferences').'</a>').164 sprintf(__('You can modify this duration in the %s'),'<a href="blog_pref.php#antispam_moderation_ttl"> '.__('Blog preferences').'</a>'). 165 165 '</p>'; 166 166 } -
plugins/attachments/_public.php
r1179 r1221 40 40 "<?php\n". 41 41 'if ($_ctx->posts !== null && $core->media) {'."\n". 42 '$_ctx->attachments = new ArrayObject($core->media->getPostMedia($_ctx->posts->post_id));'."\n".42 '$_ctx->attachments = staticRecord::newFromArray($core->media->getPostMedia($_ctx->posts->post_id));'."\n". 43 43 "?>\n". 44 44 45 '<?php foreach ($_ctx->attachments as $attach_i => $attach_f) : '. 46 '$GLOBALS[\'attach_i\'] = $attach_i; $GLOBALS[\'attach_f\'] = $attach_f;'. 47 '$_ctx->file_url = $attach_f->file_url; ?>'. 45 '<?php $attach_i = 0; ?>'. // LEGACY 46 '<?php while ($_ctx->attachments->fetch()) : ?>'. 47 48 '<?php $GLOBALS[\'attach_i\'] = $attach_i; $attach_f = $_ctx->attachments->row(); $GLOBALS[\'attach_f\'] = $attach_f;'. // LEGACY 49 '$_ctx->file_url = $attach_f->file_url; ?>'. // LEGACY 48 50 $content. 49 '<?php endforeach; $_ctx->attachments = null; unset($attach_i,$attach_f,$_ctx->file_url); ?>'. 51 '<?php $attach_i++; ?>'. // LEGACY 52 '<?php endwhile; '. 53 '$_ctx->attachments = null; ?>'. 50 54 51 55 "<?php } ?>\n"; … … 60 64 { 61 65 return 62 "<?php if (\$ attach_i == 0) : ?>".66 "<?php if (\$_ctx->attachments->isStart()) : ?>". 63 67 $content. 64 68 "<?php endif; ?>"; … … 71 75 { 72 76 return 73 "<?php if (\$ attach_i+1 == count(\$_ctx->attachments)) : ?>".77 "<?php if (\$_ctx->attachments->isEnd()) : ?>". 74 78 $content. 75 79 "<?php endif; ?>"; … … 93 97 if (isset($attr['is_image'])) { 94 98 $sign = (boolean) $attr['is_image'] ? '' : '!'; 95 $if[] = $sign.'$ attach_f->media_image';99 $if[] = $sign.'$_ctx->attachments->media_image'; 96 100 } 97 101 98 102 if (isset($attr['has_thumb'])) { 99 103 $sign = (boolean) $attr['has_thumb'] ? '' : '!'; 100 $if[] = $sign.'isset($ attach_f->media_thumb[\'sq\'])';104 $if[] = $sign.'isset($_ctx->attachments->media_thumb[\'sq\'])'; 101 105 } 102 106 103 107 if (isset($attr['is_mp3'])) { 104 108 $sign = (boolean) $attr['is_mp3'] ? '==' : '!='; 105 $if[] = '$ attach_f->type '.$sign.' "audio/mpeg3"';109 $if[] = '$_ctx->attachments->type '.$sign.' "audio/mpeg3"'; 106 110 } 107 111 … … 109 113 $sign = (boolean) $attr['is_flv'] ? '' : '!'; 110 114 $if[] = $sign. 111 '($ attach_f->type == "video/x-flv" || '.112 '$ attach_f->type == "video/mp4" || '.113 '$ attach_f->type == "video/x-m4v")';115 '($_ctx->attachments->type == "video/x-flv" || '. 116 '$_ctx->attachments->type == "video/mp4" || '. 117 '$_ctx->attachments->type == "video/x-m4v")'; 114 118 } 115 119 … … 127 131 { 128 132 $f = $GLOBALS['core']->tpl->getFilters($attr); 129 return '<?php echo '.sprintf($f,'$ attach_f->type').'; ?>';133 return '<?php echo '.sprintf($f,'$_ctx->attachments->type').'; ?>'; 130 134 } 131 135 … … 136 140 { 137 141 $f = $GLOBALS['core']->tpl->getFilters($attr); 138 return '<?php echo '.sprintf($f,'$ attach_f->media_type').'; ?>';142 return '<?php echo '.sprintf($f,'$_ctx->attachments->media_type').'; ?>'; 139 143 } 140 144 … … 145 149 { 146 150 $f = $GLOBALS['core']->tpl->getFilters($attr); 147 return '<?php echo '.sprintf($f,'$ attach_f->basename').'; ?>';151 return '<?php echo '.sprintf($f,'$_ctx->attachments->basename').'; ?>'; 148 152 } 149 153 … … 158 162 $f = $GLOBALS['core']->tpl->getFilters($attr); 159 163 if (!empty($attr['full'])) { 160 return '<?php echo '.sprintf($f,'$ attach_f->size').'; ?>';161 } 162 return '<?php echo '.sprintf($f,'files::size($ attach_f->size)').'; ?>';164 return '<?php echo '.sprintf($f,'$_ctx->attachments->size').'; ?>'; 165 } 166 return '<?php echo '.sprintf($f,'files::size($_ctx->attachments->size)').'; ?>'; 163 167 } 164 168 … … 169 173 { 170 174 $f = $GLOBALS['core']->tpl->getFilters($attr); 171 return '<?php echo '.sprintf($f,'$ attach_f->media_title').'; ?>';175 return '<?php echo '.sprintf($f,'$_ctx->attachments->media_title').'; ?>'; 172 176 } 173 177 … … 180 184 return 181 185 '<?php '. 182 'if (isset($ attach_f->media_thumb[\'sq\'])) {'.183 'echo '.sprintf($f,'$ attach_f->media_thumb[\'sq\']').';'.186 'if (isset($_ctx->attachments->media_thumb[\'sq\'])) {'. 187 'echo '.sprintf($f,'$_ctx->attachments->media_thumb[\'sq\']').';'. 184 188 '}'. 185 189 '?>'; … … 192 196 { 193 197 $f = $GLOBALS['core']->tpl->getFilters($attr); 194 return '<?php echo '.sprintf($f,'$ attach_f->file_url').'; ?>';198 return '<?php echo '.sprintf($f,'$_ctx->attachments->file_url').'; ?>'; 195 199 } 196 200 -
plugins/pages/page.php
r1179 r1215 432 432 '/'.$post->post_url); 433 433 echo '<a id="post-preview" href="'.$preview_url.'" class="button" accesskey="p">'.__('Preview').' (p)'.'</a>'; 434 } 435 434 } else { 435 echo 436 '<a id="post-cancel" href="index.php" class="button" accesskey="c">'.__('Cancel').' (c)</a>'; 437 } 438 436 439 echo 437 440 ($can_delete ? '<input type="submit" class="delete" value="'.__('Delete').'" name="delete" />' : '').
Note: See TracChangeset
for help on using the changeset viewer.