| Revision 2855:e9cd0c9d6560,
1.4 KB
checked in by franck <carnet.franck.paul@…>, 11 years ago
(diff) |
|
dcCKEditor and dcLegacyEditor may be tuned by admin too, not only super-admin, fixes #2018
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | # -- BEGIN LICENSE BLOCK --------------------------------------- |
|---|
| 3 | # |
|---|
| 4 | # This file is part of Dotclear 2. |
|---|
| 5 | # |
|---|
| 6 | # Copyright (c) 2003-2014 Olivier Meunier & Association Dotclear |
|---|
| 7 | # Licensed under the GPL version 2.0 license. |
|---|
| 8 | # See LICENSE file or |
|---|
| 9 | # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
|---|
| 10 | # |
|---|
| 11 | # -- END LICENSE BLOCK ----------------------------------------- |
|---|
| 12 | |
|---|
| 13 | if (!defined('DC_CONTEXT_ADMIN')) { return; } |
|---|
| 14 | |
|---|
| 15 | $is_admin = $core->auth->check('admin,contentadmin', $core->blog->id) || $core->auth->isSuperAdmin(); |
|---|
| 16 | |
|---|
| 17 | $core->blog->settings->addNameSpace('dcckeditor'); |
|---|
| 18 | $dcckeditor_active = $core->blog->settings->dcckeditor->active; |
|---|
| 19 | $dcckeditor_alignment_buttons = $core->blog->settings->dcckeditor->alignment_buttons; |
|---|
| 20 | $dcckeditor_list_buttons = $core->blog->settings->dcckeditor->list_buttons; |
|---|
| 21 | $dcckeditor_textcolor_button = $core->blog->settings->dcckeditor->textcolor_button; |
|---|
| 22 | $dcckeditor_cancollapse_button = $core->blog->settings->dcckeditor->cancollapse_button; |
|---|
| 23 | $dcckeditor_format_select = $core->blog->settings->dcckeditor->format_select; |
|---|
| 24 | $dcckeditor_table_button = $core->blog->settings->dcckeditor->table_button; |
|---|
| 25 | $dcckeditor_clipboard_buttons = $core->blog->settings->dcckeditor->clipboard_buttons; |
|---|
| 26 | |
|---|
| 27 | if (!empty($_GET['config'])) { |
|---|
| 28 | // text/javascript response stop stream just after including file |
|---|
| 29 | include_once(dirname(__FILE__).'/_post_config.php'); |
|---|
| 30 | exit(); |
|---|
| 31 | } else { |
|---|
| 32 | include_once(dirname(__FILE__).'/inc/_config.php'); |
|---|
| 33 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.