Dotclear


Ignore:
Files:
1 deleted
18 edited

Legend:

Unmodified
Added
Removed
  • .hgsubstate

    r1186 r1208  
    1 2508420429de7efd362a9b8302420f5eaa602587 inc/libs/clearbricks 
     1ff969f43ffc6d1a03258e32e8abb1812cddbd450 inc/libs/clearbricks 
  • .hgtags

    r871 r1219  
    12126fce226121140735a51a8f447c80f1dacd2974ea 2.4.4 
    1313514d5121a12586b7ff320924d44028b677a01020 2.4.4 
     14baf879af43beea9764d920c2facd7226e90c5cf3 2.5.1 
  • CHANGELOG

    r1114 r1216  
     1Dotclear 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 
    110Dotclear 2.5.0 - 2013-03-12 
    211=========================================================== 
  • admin/js/jsUpload/jquery.fileupload-ui.js

    r1190 r1206  
    104104                    ); 
    105105                }); 
     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             */ 
    106117            }, 
    107118            // Callback for the start of each file upload request: 
     
    129140            // Callback for successful uploads: 
    130141            done: function (e, data) { 
     142 
    131143                var that = $(this).data('blueimp-fileupload') || 
    132144                        $(this).data('fileupload'), 
     
    300312                    } 
    301313                ); 
     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             */ 
    302327            }, 
    303328            processstart: function () { 
  • admin/post.php

    r1179 r1215  
    420420          '/'.$post->post_url); 
    421421          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 
    423427     echo 
    424428     ($can_delete ? '<input type="submit" class="delete" value="'.__('Delete').'" name="delete" />' : ''). 
  • admin/style/jsUpload/style.css

    r1177 r1209  
    2828} 
    2929 
    30 .enhanced_uploader .add, .enhanced_uploader .clean, .enhanced_uploader .cancel { 
     30.enhanced_uploader .add, .enhanced_uploader .clean, .enhanced_uploader .cancel, .enhanced_uploader .disabled { 
    3131     text-shadow: none; 
    3232     color: #000; 
    3333     background: #F5F5F5; 
     34     background: -webkit-gradient(linear, left top, left bottom, from(#DFDFDF), to(#F5F5F5)); 
    3435     background: -moz-linear-gradient(center top , #F5F5F5, #DFDFDF) repeat scroll 0 0 transparent; 
    3536     border: 1px solid #CCCCCC; 
    3637} 
    3738 
    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 { 
    3940     background: #DFDFDF; 
    4041     background: -webkit-gradient(linear, left top, left bottom, from(#DFDFDF), to(#F5F5F5)); 
    4142     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; 
    4249     border: 1px solid #CCCCCC; 
    4350} 
  • inc/core/class.dc.media.php

    r1179 r1220  
    515515               $f = $this->fileRecord($rs); 
    516516               if ($f !== null) { 
    517                     $res[] = $f; 
     517                    $res[] = new ArrayObject($f); 
    518518               } 
    519519          } 
  • inc/core/class.dc.modules.php

    r1179 r1196  
    8585               while (($entry = $d->read()) !== false) 
    8686               { 
    87                     $full_entry = $root.'/'.$entry; 
     87                    $full_entry = $root.$entry; 
    8888                     
    8989                    if ($entry != '.' && $entry != '..' && is_dir($full_entry) 
  • inc/dbschema/upgrade.php

    r1179 r1205  
    335335                    } 
    336336               } 
     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               } 
    337343                
    338344               $core->setVersion('core',DC_VERSION); 
  • inc/prepend.php

    r1179 r1217  
    123123# Constants 
    124124define('DC_ROOT',path::real(dirname(__FILE__).'/..')); 
    125 define('DC_VERSION','2.5.1-dev'); 
     125define('DC_VERSION','2.5.1'); 
    126126define('DC_DIGESTS',dirname(__FILE__).'/digests'); 
    127127define('DC_L10N_ROOT',dirname(__FILE__).'/../locales'); 
  • locales/en/help/media.html

    r175 r1195  
    3131  <dd>Check this if you want the file to be private, i.e. accessible only by 
    3232  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> 
    3339</dl> 
    3440 
  • locales/fr/help/core_media.html

    r175 r1194  
    3131  <dd>Indique que le fichier envoyé n'est visible que par son propriétaire tant 
    3232  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> 
    3339</dl> 
    3440 
  • locales/fr/main.po

    r1183 r1193  
    14111411 
    14121412msgid "Extract" 
    1413 msgstr "Extrait" 
     1413msgstr "Extraire" 
    14141414 
    14151415msgid "Change media properties" 
  • locales/fr/plugins.po

    r1126 r1200  
    18961896msgstr "Liste des derniers commentaires postés" 
    18971897 
     1898msgid "You can modify this duration in the %s" 
     1899msgstr "Vous pouvez modifier cette durée dans les %s" 
     1900 
    18981901#~ msgid "Export a blog" 
    18991902#~ msgstr "Exporter un blog" 
     
    19101913#~ msgid "The backup file does not appear to be well formed." 
    19111914#~ 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  
    5959          if ($ttl != null && $ttl >=0) { 
    6060               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>'). 
    6262               '</p>'; 
    6363          } 
  • plugins/antispam/index.php

    r1179 r1207  
    162162     if ($moderationTTL != null && $moderationTTL >=0) { 
    163163          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>'). 
    165165               '</p>'; 
    166166     } 
  • plugins/attachments/_public.php

    r1179 r1221  
    4040          "<?php\n". 
    4141          '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". 
    4343          "?>\n". 
    4444           
    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 
    4850          $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; ?>'. 
    5054           
    5155          "<?php } ?>\n"; 
     
    6064     { 
    6165          return 
    62           "<?php if (\$attach_i == 0) : ?>". 
     66          "<?php if (\$_ctx->attachments->isStart()) : ?>". 
    6367          $content. 
    6468          "<?php endif; ?>"; 
     
    7175     { 
    7276          return 
    73           "<?php if (\$attach_i+1 == count(\$_ctx->attachments)) : ?>". 
     77          "<?php if (\$_ctx->attachments->isEnd()) : ?>". 
    7478          $content. 
    7579          "<?php endif; ?>"; 
     
    9397          if (isset($attr['is_image'])) { 
    9498               $sign = (boolean) $attr['is_image'] ? '' : '!'; 
    95                $if[] = $sign.'$attach_f->media_image'; 
     99               $if[] = $sign.'$_ctx->attachments->media_image'; 
    96100          } 
    97101           
    98102          if (isset($attr['has_thumb'])) { 
    99103               $sign = (boolean) $attr['has_thumb'] ? '' : '!'; 
    100                $if[] = $sign.'isset($attach_f->media_thumb[\'sq\'])'; 
     104               $if[] = $sign.'isset($_ctx->attachments->media_thumb[\'sq\'])'; 
    101105          } 
    102106           
    103107          if (isset($attr['is_mp3'])) { 
    104108               $sign = (boolean) $attr['is_mp3'] ? '==' : '!='; 
    105                $if[] = '$attach_f->type '.$sign.' "audio/mpeg3"'; 
     109               $if[] = '$_ctx->attachments->type '.$sign.' "audio/mpeg3"'; 
    106110          } 
    107111           
     
    109113               $sign = (boolean) $attr['is_flv'] ? '' : '!'; 
    110114               $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")'; 
    114118          } 
    115119           
     
    127131     { 
    128132          $f = $GLOBALS['core']->tpl->getFilters($attr); 
    129           return '<?php echo '.sprintf($f,'$attach_f->type').'; ?>'; 
     133          return '<?php echo '.sprintf($f,'$_ctx->attachments->type').'; ?>'; 
    130134     } 
    131135      
     
    136140     { 
    137141          $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').'; ?>'; 
    139143     } 
    140144      
     
    145149     { 
    146150          $f = $GLOBALS['core']->tpl->getFilters($attr); 
    147           return '<?php echo '.sprintf($f,'$attach_f->basename').'; ?>'; 
     151          return '<?php echo '.sprintf($f,'$_ctx->attachments->basename').'; ?>'; 
    148152     } 
    149153      
     
    158162          $f = $GLOBALS['core']->tpl->getFilters($attr); 
    159163          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)').'; ?>'; 
    163167     } 
    164168      
     
    169173     { 
    170174          $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').'; ?>'; 
    172176     } 
    173177      
     
    180184          return 
    181185          '<?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\']').';'. 
    184188          '}'. 
    185189          '?>'; 
     
    192196     { 
    193197          $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').'; ?>'; 
    195199     } 
    196200      
  • plugins/pages/page.php

    r1179 r1215  
    432432          '/'.$post->post_url); 
    433433          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 
    436439     echo 
    437440     ($can_delete ? '<input type="submit" class="delete" value="'.__('Delete').'" name="delete" />' : ''). 
Note: See TracChangeset for help on using the changeset viewer.

Sites map