{"id":964,"date":"2012-02-05T20:47:25","date_gmt":"2012-02-05T19:47:25","guid":{"rendered":"http:\/\/www.dotmana.com\/weblog\/?p=964"},"modified":"2012-02-05T20:47:10","modified_gmt":"2012-02-05T19:47:10","slug":"diem-ckeditor-kcfinder-session","status":"publish","type":"post","link":"http:\/\/www.dotmana.com\/weblog\/2012\/02\/diem-ckeditor-kcfinder-session\/","title":{"rendered":"Diem + CKEditor + KCFinder + session"},"content":{"rendered":"<p>Si vous utilisez Diem.<br \/>Et que vous utilisez CKEditor pour l&#8217;\u00e9dition WYSIWYG.<br \/>Et que vous avez ajout\u00e9 KCFinder pour la gestion des fichiers (images, pdf, upload divers).<br \/>Alors pour configurer une authentification automatique sur KCFinder via l&#8217;authentification dans le projet Diem :<\/p>\n<ol>\n<li>ajouter dans kcfinder\/core\/uploader.php, avant le session_start() : session_name(&#8216;symfony&#8217;);<\/li>\n<li>cr\u00e9er une action dmUserActions (<a target=\"_blank\" href=\"http:\/\/diem-project.org\/diem-5-1\/doc\/en\/reference-book\/security-and-users\">cf documentation Diem<\/a>) avec dans la m\u00e9thode redirectSignedInUser les 2 lignes suivantes :<\/li>\n<\/ol>\n<ul>\n<li>$_SESSION[&#8216;KCFINDER&#8217;] = array();<\/li>\n<li>$_SESSION[&#8216;KCFINDER&#8217;][&#8216;disabled&#8217;] = false;<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Si vous utilisez Diem.Et que vous utilisez CKEditor pour l&#8217;\u00e9dition WYSIWYG.Et que vous avez ajout\u00e9 KCFinder pour la gestion des fichiers (images, pdf, upload divers).Alors pour configurer une authentification automatique sur KCFinder via l&#8217;authentification dans le projet Diem : ajouter &hellip; <a href=\"http:\/\/www.dotmana.com\/weblog\/2012\/02\/diem-ckeditor-kcfinder-session\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,18],"tags":[],"class_list":["post-964","post","type-post","status-publish","format-standard","hentry","category-dev","category-symfony"],"_links":{"self":[{"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/posts\/964","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/comments?post=964"}],"version-history":[{"count":2,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/posts\/964\/revisions"}],"predecessor-version":[{"id":966,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/posts\/964\/revisions\/966"}],"wp:attachment":[{"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/media?parent=964"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/categories?post=964"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/tags?post=964"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}