Changes in [1154:e85c1417b8a4:1155:49ba58cbf593]
- Files:
-
- 3 added
- 2 deleted
- 61 edited
-
CHANGELOG (modified) (1 diff)
-
admin/comments.php (modified) (2 diffs)
-
admin/js/_blog_pref.js (modified) (1 diff)
-
admin/js/_index.js (modified) (1 diff)
-
admin/js/_media.js (modified) (1 diff)
-
admin/js/_post.js (modified) (1 diff)
-
admin/js/common.js (modified) (4 diffs)
-
admin/js/jquery/jquery.constantfooter.js (deleted)
-
admin/js/jquery/jquery.pageTabs.js (modified) (1 diff)
-
admin/media_item.php (modified) (1 diff)
-
admin/style/dc_logo_footer.png (added)
-
admin/style/dc_logo_small.png (deleted)
-
admin/style/default.css (modified) (26 diffs)
-
inc/admin/lib.dc.page.php (modified) (1 diff)
-
inc/core/class.dc.blog.php (modified) (1 diff)
-
inc/core/class.dc.media.php (modified) (2 diffs)
-
inc/load_plugin_file.php (modified) (1 diff)
-
inc/prepend.php (modified) (1 diff)
-
inc/public/class.dc.template.php (modified) (2 diffs)
-
inc/public/lib.tpl.context.php (modified) (1 diff)
-
inc/swf/swfupload.swf (modified) (previous)
-
locales/bn/plugins.po (modified) (1 diff)
-
locales/ca/plugins.po (modified) (1 diff)
-
locales/cs/plugins.po (modified) (1 diff)
-
locales/da/plugins.po (modified) (1 diff)
-
locales/de/plugins.po (modified) (1 diff)
-
locales/en/plugins.po (modified) (1 diff)
-
locales/eo/plugins.po (modified) (1 diff)
-
locales/es-ar/plugins.po (modified) (1 diff)
-
locales/es/plugins.po (modified) (1 diff)
-
locales/eu/plugins.po (modified) (1 diff)
-
locales/fr/plugins.po (modified) (1 diff)
-
locales/hu/plugins.po (modified) (1 diff)
-
locales/it/plugins.po (modified) (1 diff)
-
locales/ja/plugins.po (modified) (1 diff)
-
locales/ko/plugins.po (modified) (1 diff)
-
locales/lt/plugins.po (modified) (1 diff)
-
locales/nl/plugins.po (modified) (1 diff)
-
locales/oc/plugins.po (modified) (1 diff)
-
locales/pl/plugins.po (modified) (1 diff)
-
locales/pt-br/plugins.po (modified) (1 diff)
-
locales/pt/plugins.po (modified) (1 diff)
-
locales/ro/plugins.po (modified) (1 diff)
-
locales/ru/plugins.po (modified) (1 diff)
-
locales/sr/plugins.po (modified) (1 diff)
-
locales/sv/plugins.po (modified) (1 diff)
-
locales/te/plugins.po (modified) (1 diff)
-
locales/tr/plugins.po (modified) (1 diff)
-
locales/zh-cn/plugins.po (modified) (1 diff)
-
plugins/antispam/_define.php (modified) (1 diff)
-
plugins/antispam/antispam.js (modified) (1 diff)
-
plugins/antispam/index.php (modified) (4 diffs)
-
plugins/blogroll/_define.php (modified) (1 diff)
-
plugins/blogroll/blogroll.js (added)
-
plugins/blogroll/index.php (modified) (2 diffs)
-
plugins/pages/page.php (modified) (1 diff)
-
plugins/simpleMenu/_define.php (modified) (1 diff)
-
plugins/simpleMenu/index.php (modified) (1 diff)
-
plugins/simpleMenu/simplemenu.js (added)
-
plugins/tags/_public.php (modified) (2 diffs)
-
plugins/tags/js/post.js (modified) (1 diff)
-
plugins/tags/js/posts_actions.js (modified) (1 diff)
-
plugins/themeEditor/class.themeEditor.php (modified) (1 diff)
-
plugins/userPref/index.php (modified) (1 diff)
-
themes/ductile/_define.php (modified) (1 diff)
-
themes/ductile/_prepend.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
r1104 r1114 1 Dotclear 2.5.0 - 2013-02-24 2 =========================================================== 1 Dotclear 2.5.0 - 2013-03-12 2 =========================================================== 3 * Security fix: XSS vulnerabilities in swfupload.swf (media enhanced uploader) 3 4 * Ductile theme may now use webfont (from Google, Adobe and similar providers) 4 5 * daInstaller plugin is now included in the official distribution -
admin/comments.php
r1054 r1143 225 225 '</form>'; 226 226 227 if (!$with_spam) { 228 229 $spam_count = $core->blog->getComments(array('comment_status'=>-2),true)->f(0); 227 $spam_count = $core->blog->getComments(array('comment_status'=>-2),true)->f(0); 228 if ($spam_count > 0) { 230 229 231 if ($spam_count > 0) { 232 233 echo 234 '<form action="comments.php" method="post" class="fieldset">'; 235 230 echo 231 '<form action="comments.php" method="post" class="fieldset">'; 232 233 if (!$with_spam || ($status != -2)) { 236 234 if ($spam_count == 1) { 237 235 echo '<p>'.sprintf(__('You have one spam comments.'),'<strong>'.$spam_count.'</strong>').' '. … … 241 239 '<a href="comments.php?status=-2">'.__('Show them.').'</a></p>'; 242 240 } 243 244 echo245 $core->formNonce().246 '<input name="delete_all_spam" class="delete" type="submit" value="'.__('Delete all spams').'" /></p>';247 248 # --BEHAVIOR-- adminCommentsSpamForm249 $core->callBehavior('adminCommentsSpamForm',$core);250 251 echo '</form>';252 241 } 242 243 echo 244 $core->formNonce(). 245 '<input name="delete_all_spam" class="delete" type="submit" value="'.__('Delete all spams').'" /></p>'; 246 247 # --BEHAVIOR-- adminCommentsSpamForm 248 $core->callBehavior('adminCommentsSpamForm',$core); 249 250 echo '</form>'; 253 251 } 254 252 -
admin/js/_blog_pref.js
r175 r1136 10 10 $("p#urlwarning").remove(); 11 11 if (errorMsg != '') { 12 $("#blog_url").parents('p'). before('<p id="urlwarning" class="error">'+errorMsg+'</p>');12 $("#blog_url").parents('p').after('<p id="urlwarning" class="warning">'+errorMsg+'</p>'); 13 13 } 14 14 } -
admin/js/_index.js
r454 r1140 66 66 $('#quick h3').toggleWithLegend($('#quick').children().not('h3'),{ 67 67 cookie: 'dcx_quick_entry' 68 } , positionFooter);68 }); 69 69 }); -
admin/js/_media.js
r1039 r1140 84 84 }, 85 85 fileQueued: function() { 86 positionFooter();86 ; 87 87 } 88 88 } -
admin/js/_post.js
r740 r1140 8 8 $(img).css('cursor','pointer'); 9 9 img.line = line; 10 img.onclick = function() { dotclear.viewCommentContent(this,this.line); positionFooter();};10 img.onclick = function() { dotclear.viewCommentContent(this,this.line); }; 11 11 12 12 td.insertBefore(img,td.firstChild); -
admin/js/common.js
r1002 r1140 84 84 $(i).get(0).src = p.img_on_src; 85 85 $(i).get(0).alt = p.img_on_alt; 86 target.hide(speed , positionFooter);86 target.hide(speed); 87 87 } else { 88 88 $(i).get(0).src = p.img_off_src; 89 89 $(i).get(0).alt = p.img_off_alt; 90 target.show(speed , positionFooter);90 target.show(speed); 91 91 if (p.fn) { 92 92 p.fn.apply(target); … … 122 122 $(ctarget).css('cursor','pointer'); 123 123 $(ctarget).click(function() { 124 toggle(i,p.speed , positionFooter);124 toggle(i,p.speed); 125 125 return false; 126 126 }); … … 315 315 } 316 316 }; 317 318 /* Sticky footer319 -------------------------------------------------------- */320 function positionFooter() {321 $('#footer').constantfooter();322 }323 317 324 318 /* On document ready … … 365 359 return true; 366 360 }); 367 368 // Sticky footer369 positionFooter();370 $(window).resize(positionFooter);371 361 }); 372 362 -
admin/js/jquery/jquery.pageTabs.js
r297 r1140 72 72 this.divs.each(function() { 73 73 if ((this.id != '' && this.id == index) || i == index) { 74 jQuery(this).show(0 , positionFooter);74 jQuery(this).show(0); 75 75 This.items[i].className = This.params.listClassName+'-active'; 76 76 to_trigger = i; 77 77 } else { 78 jQuery(this).hide(0 , positionFooter);78 jQuery(this).hide(0); 79 79 This.items[i].className = ''; 80 80 } -
admin/media_item.php
r1103 r1121 145 145 $res[] = (string) $file->media_meta->{$v}; 146 146 } elseif (preg_match('/^Date\((.+?)\)$/u',$v,$m)) { 147 if ($dto_first && $file->media_meta->DateTimeOriginal) {147 if ($dto_first && ($file->media_meta->DateTimeOriginal != 0)) { 148 148 $res[] = dt::dt2str($m[1],(string) $file->media_meta->DateTimeOriginal); 149 149 } else { -
admin/style/default.css
r1147 r1155 11 11 # -- END LICENSE BLOCK ----------------------------------------- 12 12 */ 13 14 /* ------------------------------------------------------------------ html */ 13 15 body { 14 16 font: 75%/1.5em Helvetica,Arial,sans-serif; … … 151 153 height: 2em; 152 154 } 155 #info-box1 p { 156 margin: 0; 157 display: inline; 158 } 153 159 #info-box1 select { 154 160 width: 15em; … … 193 199 } 194 200 #content { 195 margin: 1.5em 1.5em 4em 13em;201 margin: 1.5em 1.5em .5em 13em; 196 202 padding: 1em; 197 203 background: #fff; 198 -webkit-border-radius: .5em;199 -moz-border-radius: .5em;200 204 border-radius: .5em; 201 205 border: 1px solid #ddd; … … 255 259 background: #dfdfdf; 256 260 text-decoration: none; 257 -webkit-border-top-left-radius: .3em;258 -webkit-border-top-right-radius: .3em;259 -moz-border-radius-topleft: .3em;260 -moz-border-radius-topright: .3em;261 261 border-top-left-radius: .3em; 262 262 border-top-right-radius: .3em; … … 282 282 float: left; 283 283 margin-top: 1.2em; 284 margin-bottom: 1em;284 margin-bottom: .5em; 285 285 } 286 286 #main-menu h3 { … … 302 302 padding: .2em 0 0 32px; 303 303 background-repeat: no-repeat; 304 background-position: 12px . 2em;304 background-position: 12px .4em; 305 305 } 306 306 #main-menu a { … … 340 340 #footer { 341 341 clear: both; 342 padding: .75em 2em; 343 margin: 6em 15px .5em 15px; 344 -webkit-border-radius: .3em; 345 -moz-border-radius: .3em; 346 border-radius: .3em; 347 background: #575859 url(dc_logo_small.png) no-repeat right bottom; 348 color: #fff; 342 padding: .75em .75em 0 0; 343 text-align: right; 349 344 } 350 345 #footer p { … … 355 350 } 356 351 #footer a { 357 color: #f5f5f5;358 352 } 359 353 #footer p span.credit { … … 378 372 border: 1px solid #999; 379 373 padding: 1em 1em 0 1em; 380 -moz-border-radius: 4px;381 -webkit-border-radius: 4px;382 374 border-radius: 4px; 383 375 } … … 513 505 border: 1px solid #ccc; 514 506 border-left: 1em solid #E5E3DA; 515 -moz-border-radius: .3em;516 -webkit-border-radius: .3em;517 507 border-radius: .3em; 518 508 } … … 668 658 border: 1px solid #ddd; 669 659 padding: .2em; 670 -moz-border-radius: .5em;671 -webkit-border-radius: .5em;672 660 border-radius: .5em; 673 661 } … … 764 752 border: 1px solid #f3f3f3; 765 753 cursor: pointer; 766 -moz-border-radius: 4px;767 -webkit-border-radius: 4px;768 754 border-radius: 4px; 769 755 } … … 804 790 } 805 791 #help-button { 806 position: absolute;807 top: 6.2em;792 position: fixed; 793 top: 3.2em; 808 794 right: 0px; 809 795 cursor: pointer; … … 815 801 text-transform: capitalize; 816 802 padding: .33em .75em .33em 1em; 817 -moz-border-radius: 1em 0 0 1em; 818 -webkit-border-top-left-radius: 1em; 819 -webkit-border-bottom-left-radius: 1em; 803 border-radius: 1em 0 0 1em; 820 804 color: #444; 821 805 } … … 879 863 div.message, p.message, 880 864 div.static-msg, p.static-msg { 881 padding: 0.5em 0.5em 0.5em 4 0px;865 padding: 0.5em 0.5em 0.5em 48px; 882 866 margin-bottom: 1em; 883 -moz-border-radius: 8px;884 -webkit-border-radius: 8px;885 867 border-radius: 8px; 886 868 } … … 890 872 } 891 873 div.error, p.error { 892 background: # e5bfbf url(msg-error.png) no-repeat 5px 5px;893 color: # 600;874 background: #ffdec8 url(msg-error.png) no-repeat .7em .7em; 875 color: #000; 894 876 } 895 877 div.message, p.message, 896 878 div.static-msg, p.static-msg { 897 background: #666 url(msg-std.png) no-repeat 5px 5px;879 background: #666 url(msg-std.png) no-repeat .7em .7em; 898 880 color: #fff; 899 881 } … … 1015 997 right: 0; 1016 998 } 999 .distrib img { 1000 display: block; 1001 float: right; 1002 margin-top: -1em; 1003 } 1017 1004 /* TABLES 1018 1005 -------------------------------------------------------- */ … … 1041 1028 th { 1042 1029 text-align: left; 1030 border-bottom-color: #666; 1043 1031 } 1044 1032 .noborder td, td.noborder, .noborder th, th.noborder { … … 1056 1044 white-space: nowrap; 1057 1045 vertical-align: top; 1046 } 1047 table.settings, table.prefs { 1048 width: 80%; 1049 } 1050 table.settings th:first-child, table.prefs th:first-child { 1051 width: 20%; 1052 } 1053 table.settings th + th, table.prefs th + th { 1054 width: 30%; 1055 } 1056 table.settings th + th + th, table.prefs th + th + th { 1057 width: 10%; 1058 } 1059 table.settings th:last-child, table.prefs th:last-child { 1060 width: 40%; 1058 1061 } 1059 1062 … … 1136 1139 border-color: #000 #ccc #ccc #000; 1137 1140 } 1141 input.invalid, textarea.invalid, select.invalid { 1142 border: 1px solid red; 1143 background: #fff; 1144 color: red; 1145 box-shadow: 0 0 0 1px rgba(218, 62, 90, 0.3) 1146 } 1138 1147 input, textarea, select, option { 1139 1148 font: 1em "DejaVu Sans","Lucida Grande","Lucida Sans Unicode",Arial,sans-serif; … … 1167 1176 color: #666; 1168 1177 } 1178 span.form-note { 1179 font-style:italic; 1180 font-weight: normal; 1181 color: #666; 1182 } 1169 1183 p.form-note.warn, p.form-note.info, p.warning { 1170 1184 font-style: normal; … … 1172 1186 } 1173 1187 p.form-note.warn, p.warning { 1174 background: #ffd url(warning.png) no-repeat . 2em .2em;1188 background: #ffd url(warning.png) no-repeat .3em .3em; 1175 1189 border: 1px solid #f0c020; 1176 1190 } 1177 1191 p.form-note.info { 1178 background: #eef url(info.png) no-repeat . 2em .2em;1192 background: #eef url(info.png) no-repeat .3em .2em; 1179 1193 border: 1px solid #99f; 1180 1194 } … … 1209 1223 p.field { 1210 1224 position: relative; 1211 1225 1212 1226 } 1213 1227 p.field label { … … 1275 1289 padding: .1em .5em 0 .5em; 1276 1290 text-shadow: 0 1px 1px rgba(0,0,0,.3); 1277 -webkit-border-radius: .2em;1278 -moz-border-radius: .2em;1279 1291 border-radius: .2em; 1280 1292 margin-bottom: .1em; … … 1358 1370 } 1359 1371 a.button.add { 1360 -webkit-border-radius: .5em;1361 -moz-border-radius: .5em;1362 1372 border-radius: .5em; 1363 1373 margin-bottom: .1em; 1364 background: #2C8FD1 url( add.png) no-repeat 6px center;1374 background: #2C8FD1 url(../images/add.png) no-repeat 6px center; 1365 1375 color: #fff; 1366 1376 padding: .2em 16px .2em 30px; … … 1369 1379 a.button.add:hover, a.button.add:focus { 1370 1380 background-color: #2373A8; 1381 } 1382 /* jQuery Autocomplete plugin */ 1383 .ac_results { 1384 padding: 0px; 1385 border: 1px dotted #f90; 1386 background-color: white; 1387 overflow: hidden; 1388 z-index: 99999; 1389 } 1390 .ac_results ul { 1391 width: 100%; 1392 list-style-position: outside; 1393 list-style: none; 1394 padding: 0; 1395 margin: 0; 1396 } 1397 .ac_results li { 1398 margin: 0px; 1399 padding: 2px 5px; 1400 cursor: default; 1401 display: block; 1402 font: menu; 1403 font-size: 1em; 1404 line-height: 16px; 1405 overflow: hidden; 1406 } 1407 .ac_loading { 1408 background: transparent url('loader.gif') right center no-repeat; 1409 } 1410 .ac_over { 1411 background-color: #06c; 1412 color: white; 1371 1413 } 1372 1414 -
inc/admin/lib.dc.page.php
r1089 r1155 173 173 self::jsLoad('js/jquery/jquery.biscuit.js'). 174 174 self::jsLoad('js/jquery/jquery.bgFade.js'). 175 self::jsLoad('js/jquery/jquery.constantfooter.js').176 175 self::jsLoad('js/common.js'). 177 176 self::jsLoad('js/prelude.js'). -
inc/core/class.dc.blog.php
r1154 r1155 228 228 'SELECT post_id, COUNT(post_id) AS nb_comment,comment_trackback '. 229 229 'FROM '.$this->prefix.'comment '. 230 'WHERE post_id'.$this->con->in($a_ids).231 'AND comment_status = 1 ';230 'WHERE comment_status = 1 '. 231 (count($a_ids) > 0 ? 'AND post_id'.$this->con->in($a_ids) : ' '); 232 232 233 233 if ($del) { -
inc/core/class.dc.media.php
r1103 r1123 841 841 while ($rs->fetch()) { 842 842 if (is_dir($this->root.'/'.$rs->media_dir)) 843 $dir[] = $rs->media_dir;843 $dir[] = ($rs->media_dir == '.' ? '' : $rs->media_dir); 844 844 } 845 845 … … 940 940 $img->resize($s[0],$s[0],$s[1]); 941 941 $img->output('jpeg',$thumb_file,$rate); 942 $img->loadImage($file); 942 943 } 943 944 } -
inc/load_plugin_file.php
r270 r1116 47 47 } 48 48 49 // Only $_GET['pf'] is allowed in URL 50 if (count($_GET) > 1) 51 { 52 header('Content-Type: text/plain'); 53 http::head(403,'Forbidden'); 54 exit; 55 } 56 49 57 $allow_types = array('png','jpg','jpeg','gif','css','js','swf'); 50 58 -
inc/prepend.php
r1154 r1155 149 149 # Constants 150 150 define('DC_ROOT',path::real(dirname(__FILE__).'/..')); 151 define('DC_VERSION','2. 5-dev');151 define('DC_VERSION','2.99-dev'); 152 152 define('DC_DIGESTS',dirname(__FILE__).'/digests'); 153 153 define('DC_L10N_ROOT',dirname(__FILE__).'/../locales'); -
inc/public/class.dc.template.php
r980 r1122 42 42 # Loops test tags 43 43 $this->addBlock('LoopPosition',array($this,'LoopPosition')); 44 $this->addValue('LoopIndex',array($this,'LoopIndex')); 44 45 45 46 # Archives … … 528 529 "<?php endif; ?>"; 529 530 } 531 532 public function LoopIndex($attr) 533 { 534 $f = $this->getFilters($attr); 535 return '<?php '.sprintf($f,'(!$_ctx->cur_loop ? 0 : $_ctx->cur_loop->index() + 1)').' ?>'; 536 } 530 537 531 538 -
inc/public/lib.tpl.context.php
r975 r1135 451 451 452 452 # No src, look in category description if available 453 if (!$src && $with_category && $_ctx->categories)454 {455 if (preg_match_all($pattern,$_ctx-> categories->cat_desc,$m) > 0)453 if (!$src && $with_category && $_ctx->posts->cat_desc) 454 { 455 if (preg_match_all($pattern,$_ctx->posts->cat_desc,$m) > 0) 456 456 { 457 457 foreach ($m[1] as $i => $img) { -
locales/bn/plugins.po
r759 r1126 222 222 msgstr "" 223 223 224 msgid "You can modify this duration in "224 msgid "You can modify this duration in the %s" 225 225 msgstr "" 226 226 -
locales/ca/plugins.po
r759 r1126 221 221 msgstr "" 222 222 223 msgid "You can modify this duration in "223 msgid "You can modify this duration in the %s" 224 224 msgstr "" 225 225 -
locales/cs/plugins.po
r759 r1126 224 224 msgstr "Všechny spam komentáře starší než %s dnů(y) budou automaticky smazány." 225 225 226 msgid "You can modify this duration in "226 msgid "You can modify this duration in the %s" 227 227 msgstr "" 228 228 -
locales/da/plugins.po
r759 r1126 221 221 msgstr "" 222 222 223 msgid "You can modify this duration in "223 msgid "You can modify this duration in the %s" 224 224 msgstr "" 225 225 -
locales/de/plugins.po
r759 r1126 224 224 msgstr "Alle Spam-Kommentare, die älter als %s Tag(e) sind, werden automatisch gelöscht." 225 225 226 msgid "You can modify this duration in "226 msgid "You can modify this duration in the %s" 227 227 msgstr "" 228 228 -
locales/en/plugins.po
r893 r1126 238 238 msgstr "" 239 239 240 msgid "You can modify this duration in "240 msgid "You can modify this duration in the %s" 241 241 msgstr "" 242 242 -
locales/eo/plugins.po
r759 r1126 221 221 msgstr "" 222 222 223 msgid "You can modify this duration in "223 msgid "You can modify this duration in the %s" 224 224 msgstr "" 225 225 -
locales/es-ar/plugins.po
r759 r1126 223 223 msgstr "Todos los comentarios no deseados mas antiguos que %s día(s) serán automáticamente eliminados." 224 224 225 msgid "You can modify this duration in "225 msgid "You can modify this duration in the %s" 226 226 msgstr "" 227 227 -
locales/es/plugins.po
r759 r1126 228 228 msgstr "Todos los comentarios basura de más de %s día(s) serán borrados automáticamente." 229 229 230 msgid "You can modify this duration in "230 msgid "You can modify this duration in the %s" 231 231 msgstr "" 232 232 -
locales/eu/plugins.po
r759 r1126 221 221 msgstr "" 222 222 223 msgid "You can modify this duration in "223 msgid "You can modify this duration in the %s" 224 224 msgstr "" 225 225 -
locales/fr/plugins.po
r1063 r1126 262 262 "supprimés automatiquement." 263 263 264 msgid "You can modify this duration in "265 msgstr "Vous pouvez modifier cet intervalle dans"266 267 264 msgid "Blog preferences" 268 265 msgstr "Préférences du blog" -
locales/hu/plugins.po
r759 r1126 223 223 msgstr "Az összes %s napnál öregebb spam automatikusan törlődni fog." 224 224 225 msgid "You can modify this duration in "225 msgid "You can modify this duration in the %s" 226 226 msgstr "" 227 227 -
locales/it/plugins.po
r759 r1126 221 221 msgstr "" 222 222 223 msgid "You can modify this duration in "223 msgid "You can modify this duration in the %s" 224 224 msgstr "" 225 225 -
locales/ja/plugins.po
r759 r1126 225 225 msgstr "%s 日を経過したすべてのスパムコメントは自動的に削除されます。" 226 226 227 msgid "You can modify this duration in "227 msgid "You can modify this duration in the %s" 228 228 msgstr "" 229 229 -
locales/ko/plugins.po
r759 r1126 224 224 msgstr "%s 일이 지난 스팸은 모두 자동으로 삭제됩니다." 225 225 226 msgid "You can modify this duration in "226 msgid "You can modify this duration in the %s" 227 227 msgstr "" 228 228 -
locales/lt/plugins.po
r813 r1126 215 215 msgstr "Senesni nei %s dienų spamo komentarai bus automatiškai ištrinami." 216 216 217 msgid "You can modify this duration in the %s" 218 msgstr "" 219 217 220 msgid "Available spam filters" 218 221 msgstr "Galimi spam filtrai" -
locales/nl/plugins.po
r759 r1126 220 220 msgstr "" 221 221 222 msgid "You can modify this duration in "222 msgid "You can modify this duration in the %s" 223 223 msgstr "" 224 224 -
locales/oc/plugins.po
r759 r1126 221 221 msgstr "" 222 222 223 msgid "You can modify this duration in "223 msgid "You can modify this duration in the %s" 224 224 msgstr "" 225 225 -
locales/pl/plugins.po
r759 r1126 224 224 msgstr "Wszystkie niechciane komentarze starsze niż %s dni będą automatycznie usuwane." 225 225 226 msgid "You can modify this duration in "226 msgid "You can modify this duration in the %s" 227 227 msgstr "" 228 228 -
locales/pt-br/plugins.po
r759 r1126 221 221 msgstr "" 222 222 223 msgid "You can modify this duration in "223 msgid "You can modify this duration in the %s" 224 224 msgstr "" 225 225 -
locales/pt/plugins.po
r759 r1126 228 228 msgstr "Todos os comentários spam com mais de %s dia(s) serão suprimidos automaticamente." 229 229 230 msgid "You can modify this duration in "230 msgid "You can modify this duration in the %s" 231 231 msgstr "" 232 232 -
locales/ro/plugins.po
r842 r1126 225 225 msgstr "Toate comentariile spam mai vechi de %s zile vor fi șterse automat." 226 226 227 msgid "You can modify this duration in "227 msgid "You can modify this duration in the %s" 228 228 msgstr "" 229 229 -
locales/ru/plugins.po
r759 r1126 222 222 msgstr "Все спам комментарии старше чем %s дней будут удалены автоматически." 223 223 224 msgid "You can modify this duration in "224 msgid "You can modify this duration in the %s" 225 225 msgstr "" 226 226 -
locales/sr/plugins.po
r759 r1126 221 221 msgstr "" 222 222 223 msgid "You can modify this duration in "223 msgid "You can modify this duration in the %s" 224 224 msgstr "" 225 225 -
locales/sv/plugins.po
r751 r1126 221 221 msgstr "" 222 222 223 msgid "You can modify this duration in "223 msgid "You can modify this duration in the %s" 224 224 msgstr "" 225 225 -
locales/te/plugins.po
r759 r1126 220 220 msgstr "" 221 221 222 msgid "You can modify this duration in "222 msgid "You can modify this duration in the %s" 223 223 msgstr "" 224 224 -
locales/tr/plugins.po
r759 r1126 223 223 msgstr "" 224 224 225 msgid "You can modify this duration in "225 msgid "You can modify this duration in the %s" 226 226 msgstr "" 227 227 -
locales/zh-cn/plugins.po
r759 r1126 225 225 msgstr "所有早于 %s 天的垃圾评论都会被自动删除。" 226 226 227 msgid "You can modify this duration in "227 msgid "You can modify this duration in the %s" 228 228 msgstr "" 229 229 -
plugins/antispam/_define.php
r967 r1134 16 16 /* Description*/ "Generic antispam plugin for Dotclear", 17 17 /* Author */ "Alain Vagner", 18 /* Version */ '1.4 ',18 /* Version */ '1.4.1', 19 19 array( 20 20 'permissions' => 'usage,contentadmin', -
plugins/antispam/antispam.js
r1052 r1130 1 var dragsort = ToolMan.dragsort();2 1 $(function() { 3 $("#filters-list").each(function() { 4 dragsort.makeTableSortable(this,dotclear.sortable.setHandle, dotclear.sortable.saveOrder); 2 $("#filters-list").sortable({'cursor':'move'}); 3 $("#filters-list tr").hover(function () { 4 $(this).css({'cursor':'move'}); 5 }, function () { 6 $(this).css({'cursor':'auto'}); 5 7 }); 6 $('form input[type=submit][name=delete_all]').click(function(){ 7 return window.confirm(dotclear.msg.confirm_spam_delete); 8 $('#filters-form').submit(function() { 9 var order=[]; 10 $("#filters-list tr td input.position").each(function() { 11 order.push(this.name.replace(/^f_order\[([^\]]+)\]$/,'$1')); 12 }); 13 $("input[name=filters_order]")[0].value = order.join(','); 14 return true; 8 15 }); 16 $("#filters-list tr td input.position").hide(); 17 $("#filters-list tr td.handle").addClass('handler'); 9 18 }); 10 11 dotclear.sortable = {12 setHandle: function(item) {13 var handle = $(item).find('td.handle').get(0);14 while (handle.firstChild) {15 handle.removeChild(handle.firstChild);16 }17 18 item.toolManDragGroup.setHandle(handle);19 $(handle).addClass('handler');20 },21 22 saveOrder: function(item) {23 var group = item.toolManDragGroup;24 var order = $('#filters_order').get(0);25 group.register('dragend', function() {26 order.value = '';27 items = item.parentNode.getElementsByTagName('tr');28 29 for (var i=0; i<items.length; i++) {30 order.value += items[i].id.substr(2)+',';31 }32 });33 }34 }; -
plugins/antispam/index.php
r1052 r1130 108 108 </script> 109 109 <?php 110 echo 111 dcPage::jsToolMan(). 112 dcPage::jsPageTabs($default_tab). 113 dcPage::jsLoad('index.php?pf=antispam/antispam.js'); 110 echo dcPage::jsPageTabs($default_tab); 111 $core->auth->user_prefs->addWorkspace('accessibility'); 112 if (!$core->auth->user_prefs->accessibility->nodragdrop) { 113 echo 114 dcPage::jsLoad('js/jquery/jquery-ui.custom.js'). 115 dcPage::jsLoad('index.php?pf=antispam/antispam.js'); 116 } 114 117 ?> 115 118 <link rel="stylesheet" type="text/css" href="index.php?pf=antispam/style.css" /> … … 159 162 if ($moderationTTL != null && $moderationTTL >=0) { 160 163 echo '<p>'.sprintf(__('All spam comments older than %s day(s) will be automatically deleted.'), $moderationTTL).' '. 161 __('You can modify this duration in').162 '<a href="blog_pref.php"> '.__('Blog preferences').'</a></p>';164 sprintf(__('You can modify this duration in the %s'),'<a href="blog_pref.php"> '.__('Blog preferences').'</a>'). 165 '</p>'; 163 166 } 164 167 echo '</form>'; … … 167 170 # Filters 168 171 echo 169 '<form action="'.$p_url.'" method="post" class="fieldset" >';172 '<form action="'.$p_url.'" method="post" class="fieldset" id="filters-form">'; 170 173 171 174 if (!empty($_GET['upd'])) { … … 198 201 echo 199 202 '<tr class="line'.($f->active ? '' : ' offline').'" id="f_'.$fid.'">'. 200 '<td class="handle">'.form::field(array('f_order['.$fid.']'),2,5,(string) $i, ' ', '', false, 'title="'.__('position').'"').'</td>'.203 '<td class="handle">'.form::field(array('f_order['.$fid.']'),2,5,(string) $i, 'position', '', false, 'title="'.__('position').'"').'</td>'. 201 204 '<td class="nowrap">'.form::checkbox(array('filters_active[]'),$fid,$f->active, '', '', false, 'title="'.__('Active').'"').'</td>'. 202 205 '<td class="nowrap">'.form::checkbox(array('filters_auto_del[]'),$fid,$f->auto_delete, '', '', false, 'title="'.__('Auto Del.').'"').'</td>'. -
plugins/blogroll/_define.php
r965 r1134 16 16 /* Description*/ "Manage your blogroll", 17 17 /* Author */ "Olivier Meunier", 18 /* Version */ '1.3 ',18 /* Version */ '1.3.1', 19 19 array( 20 20 'permissions' => 'blogroll' -
plugins/blogroll/index.php
r987 r1131 164 164 <head> 165 165 <title><?php echo __('Blogroll'); ?></title> 166 <?php echo dcPage::jsToolMan(); ?>167 166 <?php echo dcPage::jsConfirmClose('links-form','add-link-form','add-category-form'); ?> 168 167 <?php 169 $core->auth->user_prefs->addWorkspace('accessibility'); 170 $user_dm_nodragdrop = $core->auth->user_prefs->accessibility->nodragdrop; 168 $core->auth->user_prefs->addWorkspace('accessibility'); 169 if (!$core->auth->user_prefs->accessibility->nodragdrop) { 170 echo 171 dcPage::jsLoad('js/jquery/jquery-ui.custom.js'). 172 dcPage::jsLoad('index.php?pf=blogroll/blogroll.js'); 173 } 171 174 ?> 172 <?php if (!$user_dm_nodragdrop) : ?>173 <script type="text/javascript">174 //<![CDATA[175 176 var dragsort = ToolMan.dragsort();177 $(function() {178 dragsort.makeTableSortable($("#links-list").get(0),179 dotclear.sortable.setHandle,dotclear.sortable.saveOrder);180 181 $('.checkboxes-helpers').each(function() {182 dotclear.checkboxesHelpers(this);183 });184 });185 186 dotclear.sortable = {187 setHandle: function(item) {188 var handle = $(item).find('td.handle').get(0);189 while (handle.firstChild) {190 handle.removeChild(handle.firstChild);191 }192 193 item.toolManDragGroup.setHandle(handle);194 handle.className = handle.className+' handler';195 },196 197 saveOrder: function(item) {198 var group = item.toolManDragGroup;199 var order = document.getElementById('links_order');200 group.register('dragend', function() {201 order.value = '';202 items = item.parentNode.getElementsByTagName('tr');203 204 for (var i=0; i<items.length; i++) {205 order.value += items[i].id.substr(2)+',';206 }207 });208 }209 };210 //]]>211 </script>212 <?php endif; ?>213 175 <?php echo dcPage::jsPageTabs($default_tab); ?> 214 176 </head> … … 258 220 echo 259 221 '<tr class="line" id="l_'.$rs->link_id.'">'. 260 '<td class="handle minimal">'.form::field(array('order['.$rs->link_id.']'),2,5,$position,' ','',false,'title="'.__('position').'"').'</td>'.222 '<td class="handle minimal">'.form::field(array('order['.$rs->link_id.']'),2,5,$position,'position','',false,'title="'.__('position').'"').'</td>'. 261 223 '<td class="minimal">'.form::checkbox(array('remove[]'),$rs->link_id,'','','',false,'title="'.__('select this link').'"').'</td>'; 262 224 -
plugins/pages/page.php
r1068 r1139 431 431 http::browserUID(DC_MASTER_KEY.$core->auth->userID().$core->auth->getInfo('user_pwd')). 432 432 '/'.$post->post_url); 433 echo '<a id="post-preview" href="'.$preview_url.'" class="button" >'.__('Preview').'</a>';433 echo '<a id="post-preview" href="'.$preview_url.'" class="button" accesskey="p">'.__('Preview').' (p)'.'</a>'; 434 434 } 435 435 -
plugins/simpleMenu/_define.php
r967 r1134 16 16 /* Description*/ "Simple menu for Dotclear", 17 17 /* Author */ "Franck Paul", 18 /* Version */ '1.1 ',18 /* Version */ '1.1.1', 19 19 array( 20 20 'permissions' => 'admin' -
plugins/simpleMenu/index.php
r1011 r1132 354 354 <head> 355 355 <title><?php echo $page_title; ?></title> 356 <?php 357 echo 358 dcPage::jsToolMan(). 359 # --BEHAVIOR-- adminPageHeaders 360 $core->callBehavior('adminPageHeaders'); 356 <?php 357 $core->auth->user_prefs->addWorkspace('accessibility'); 358 if (!$core->auth->user_prefs->accessibility->nodragdrop) { 359 echo 360 dcPage::jsLoad('js/jquery/jquery-ui.custom.js'). 361 dcPage::jsLoad('index.php?pf=simpleMenu/simplemenu.js'); 362 } 361 363 ?> 362 <?php363 $core->auth->user_prefs->addWorkspace('accessibility');364 $user_dm_nodragdrop = $core->auth->user_prefs->accessibility->nodragdrop;365 ?>366 <?php if (!$user_dm_nodragdrop) : ?>367 <script type="text/javascript">368 //<![CDATA[369 370 var dragsort = ToolMan.dragsort();371 $(function() {372 dragsort.makeTableSortable($("#menuitemslist").get(0),373 dotclear.sortable.setHandle,dotclear.sortable.saveOrder);374 375 $('.checkboxes-helpers').each(function() {376 dotclear.checkboxesHelpers(this);377 });378 });379 380 dotclear.sortable = {381 setHandle: function(item) {382 var handle = $(item).find('td.handle').get(0);383 while (handle.firstChild) {384 handle.removeChild(handle.firstChild);385 }386 387 item.toolManDragGroup.setHandle(handle);388 handle.className = handle.className+' handler';389 },390 391 saveOrder: function(item) {392 var group = item.toolManDragGroup;393 var order = document.getElementById('im_order');394 group.register('dragend', function() {395 order.value = '';396 items = item.parentNode.getElementsByTagName('tr');397 398 for (var i=0; i<items.length; i++) {399 order.value += items[i].id.substr(2)+',';400 }401 });402 }403 };404 //]]>405 </script>406 <?php endif; ?>407 364 </head> 408 365 -
plugins/tags/_public.php
r1063 r1108 56 56 return 57 57 "<?php\n". 58 "@\$params['from'] .= ', '.\$core->prefix.'meta META ';\n". 59 "@\$params['sql'] .= 'AND META.post_id = P.post_id ';\n". 58 "if (!isset(\$params)) { \$params = array(); }\n". 59 "if (!isset(\$params['from'])) { \$params['from'] = ''; }\n". 60 "if (!isset(\$params['sql'])) { \$params['sql'] = ''; }\n". 61 "\$params['from'] .= ', '.\$core->prefix.'meta META ';\n". 62 "\$params['sql'] .= 'AND META.post_id = P.post_id ';\n". 60 63 "\$params['sql'] .= \"AND META.meta_type = 'tag' \";\n". 61 64 "\$params['sql'] .= \"AND META.meta_id = '".$core->con->escape($attr['tag'])."' \";\n". … … 66 69 return 67 70 '<?php if ($_ctx->exists("meta") && ($_ctx->meta->meta_type == "tag")) { '. 68 "@\$params['from'] .= ', '.\$core->prefix.'meta META ';\n". 69 "@\$params['sql'] .= 'AND META.post_id = P.post_id ';\n". 71 "if (!isset(\$params)) { \$params = array(); }\n". 72 "if (!isset(\$params['from'])) { \$params['from'] = ''; }\n". 73 "if (!isset(\$params['sql'])) { \$params['sql'] = ''; }\n". 74 "\$params['from'] .= ', '.\$core->prefix.'meta META ';\n". 75 "\$params['sql'] .= 'AND META.post_id = P.post_id ';\n". 70 76 "\$params['sql'] .= \"AND META.meta_type = 'tag' \";\n". 71 77 "\$params['sql'] .= \"AND META.meta_id = '\".\$core->con->escape(\$_ctx->meta->meta_id).\"' \";\n". -
plugins/tags/js/post.js
r0 r1112 12 12 } 13 13 var mEdit = new metaEditor(tags_edit,meta_field,'tag'); 14 mEdit.meta_url = 'plugin.php?p=tags&m=tag_posts&tag='; 14 15 mEdit.displayMeta('tag',post_id); 15 16 -
plugins/tags/js/posts_actions.js
r0 r1112 7 7 var target = $('#tags_list'); 8 8 var mEdit = new metaEditor(target,tag_field,'tag'); 9 mEdit.meta_url = 'plugin.php?p=tags&m=tag_posts&tag='; 9 10 10 11 mEdit.meta_dialog = $('<input type="text" />'); -
plugins/themeEditor/class.themeEditor.php
r1037 r1129 243 243 foreach ($langs as $k => $v) { 244 244 if ($this->parent_theme) { 245 $this->po = array_merge($this->po,$this->getFilesInDir($this->parent_theme.'/locales/'.$v,'po',$v.'/' ,'main.po'));246 } 247 $this->po = array_merge($this->po,$this->getFilesInDir($this->user_theme.'/locales/'.$v,'po',$v.'/' ,'main.po'));245 $this->po = array_merge($this->po,$this->getFilesInDir($this->parent_theme.'/locales/'.$v,'po',$v.'/')); 246 } 247 $this->po = array_merge($this->po,$this->getFilesInDir($this->user_theme.'/locales/'.$v,'po',$v.'/')); 248 248 } 249 249 } -
plugins/userPref/index.php
r907 r1109 72 72 if ($s['type'] == 'boolean') { 73 73 $field = form::combo(array($field_name.'['.$ws.']['.$id.']',$field_name.'_'.$id), 74 array(__('yes') => 1, __('no') => 0),$s['value'] );74 array(__('yes') => 1, __('no') => 0),$s['value'] ? 1 : 0); 75 75 } else { 76 76 $field = form::field(array($field_name.'['.$ws.']['.$id.']',$field_name.'_'.$id),40,null, -
themes/ductile/_define.php
r967 r1134 15 15 /* Description*/ "Mediaqueries compliant elegant theme", 16 16 /* Author */ "Dotclear Team", 17 /* Version */ '1.3 ',17 /* Version */ '1.3.1', 18 18 /* Properties */ array( 19 19 'standalone_config' => true -
themes/ductile/_prepend.php
r683 r1133 20 20 { 21 21 global $core; 22 22 if ($core->blog->settings->system->theme != 'ductile') { return; } 23 23 24 echo "\n".'<!-- Header directives for Ductile configuration -->'."\n"; 24 echo dcPage::jsToolMan(); 25 26 // Need some more Js 27 $core->auth->user_prefs->addWorkspace('accessibility'); 28 $user_dm_nodragdrop = $core->auth->user_prefs->accessibility->nodragdrop; 29 if (!$user_dm_nodragdrop) { 30 echo <<<EOT 25 $core->auth->user_prefs->addWorkspace('accessibility'); 26 if (!$core->auth->user_prefs->accessibility->nodragdrop) { 27 echo 28 dcPage::jsLoad('js/jquery/jquery-ui.custom.js'); 29 echo <<<EOT 31 30 <script type="text/javascript"> 32 31 //<![CDATA[ 33 34 var dragsort = ToolMan.dragsort();35 32 $(function() { 36 dragsort.makeTableSortable($("#stickerslist").get(0), 37 dotclear.sortable.setHandle,dotclear.sortable.saveOrder); 33 $("#stickerslist").sortable({'cursor':'move'}); 34 $("#stickerslist tr").hover(function () { 35 $(this).css({'cursor':'move'}); 36 }, function () { 37 $(this).css({'cursor':'auto'}); 38 }); 39 $('#theme_config').submit(function() { 40 var order=[]; 41 $("#stickerslist tr td input.position").each(function() { 42 order.push(this.name.replace(/^order\[([^\]]+)\]$/,'$1')); 43 }); 44 $("input[name=ds_order]")[0].value = order.join(','); 45 return true; 46 }); 47 $("#stickerslist tr td input.position").hide(); 48 $("#stickerslist tr td.handle").addClass('handler'); 38 49 }); 39 40 dotclear.sortable = {41 setHandle: function(item) {42 var handle = $(item).find('td.handle').get(0);43 while (handle.firstChild) {44 handle.removeChild(handle.firstChild);45 }46 47 item.toolManDragGroup.setHandle(handle);48 handle.className = handle.className+' handler';49 },50 51 saveOrder: function(item) {52 var group = item.toolManDragGroup;53 var order = document.getElementById('ds_order');54 group.register('dragend', function() {55 order.value = '';56 items = item.parentNode.getElementsByTagName('tr');57 58 for (var i=0; i<items.length; i++) {59 order.value += items[i].id.substr(2)+',';60 }61 });62 }63 };64 50 //]]> 65 51 </script> 66 52 EOT; 67 53 } 54 68 55 } 69 56 }
Note: See TracChangeset
for help on using the changeset viewer.
