Changeset 2797:4a5f0d16acd2
- Timestamp:
- 11/17/14 10:30:07 (11 years ago)
- Branch:
- default
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/blog_pref.php
r2776 r2797 234 234 $blog_settings->system->put('enable_xmlrpc',!empty($_POST['enable_xmlrpc'])); 235 235 $blog_settings->system->put('note_title_tag',$_POST['note_title_tag']); 236 237 236 $blog_settings->system->put('nb_post_for_home',$nb_post_for_home); 238 237 $blog_settings->system->put('nb_post_per_page',$nb_post_per_page); … … 250 249 $blog_settings->system->put('nb_comment_per_feed',$nb_comment_per_feed); 251 250 $blog_settings->system->put('short_feed_items',!empty($_POST['short_feed_items'])); 252 253 251 if (isset($_POST['robots_policy'])) { 254 252 $blog_settings->system->put('robots_policy',$_POST['robots_policy']); 255 253 } 254 $blog_settings->system->put('prevents_clickjacking',!empty($_POST['prevents_clickjacking'])); 256 255 257 256 # --BEHAVIOR-- adminBeforeBlogSettingsUpdate … … 606 605 echo '</div>'; 607 606 607 echo 608 '<div class="fieldset"><h4>'.__('Blog security').'</h4>'. 609 '<p><label for="prevents_clickjacking" class="classic">'. 610 form::checkbox('prevents_clickjacking','1',$blog_settings->system->prevents_clickjacking). 611 __('Protect the blog from Clickjacking (see <a href="https://en.wikipedia.org/wiki/Clickjacking">Wikipedia</a>)').'</label></p>'. 612 '<br class="clear" />'. //Opera sucks 613 '</div>'; 608 614 609 615 # --BEHAVIOR-- adminBlogPreferencesForm -
inc/public/lib.urlhandlers.php
r2770 r2797 110 110 111 111 header('Content-Type: '.$_ctx->content_type.'; charset=UTF-8'); 112 113 if ($core->blog->settings->system->prevents_clickjacking) { 114 // Prevents Clickjacking as far as possible 115 header('X-Frame-Options: SAMEORIGIN'); // FF 3.6.9+ Chrome 4.1+ IE 8+ Safari 4+ Opera 10.5+ 116 } 117 112 118 $result['content'] = $core->tpl->getData($_ctx->current_tpl); 113 119 $result['content_type'] = $_ctx->content_type; -
locales/fr/main.po
r2789 r2797 3676 3676 msgstr "Choisir une date" 3677 3677 3678 msgid "Blog security" 3679 msgstr "Sécurité du blog" 3680 3681 msgid "Protect the blog from Clickjacking (see <a href=\"https://en.wikipedia.org/wiki/Clickjacking\">Wikipedia</a>)" 3682 msgstr "Protéger le blog des détournements de clic ou Clickjacking (voir <a href=\"https://fr.wikipedia.org/wiki/Clickjacking\">Wikipedia</a>)" 3683 3678 3684 #~ msgid "You don't have permissions to deactivate this plugin." 3679 3685 #~ msgstr "Vous n'avez pas les permissions pour désactiver ce plugin."
Note: See TracChangeset
for help on using the changeset viewer.