Revision 3731:3770620079d4,
1.6 KB
checked in by franck <carnet.franck.paul@…>, 7 years ago
(diff) |
Simplify licence block at the beginning of each file
|
Line | |
---|
1 | <?php |
---|
2 | /** |
---|
3 | * @brief dcCKEditor, a plugin for Dotclear 2 |
---|
4 | * |
---|
5 | * @package Dotclear |
---|
6 | * @subpackage Plugins |
---|
7 | * |
---|
8 | * @copyright Olivier Meunier & Association Dotclear |
---|
9 | * @copyright GPL-2.0-only |
---|
10 | */ |
---|
11 | |
---|
12 | if (!defined('DC_CONTEXT_ADMIN')) {return;} |
---|
13 | |
---|
14 | $is_admin = $core->auth->check('admin,contentadmin', $core->blog->id) || $core->auth->isSuperAdmin(); |
---|
15 | |
---|
16 | $core->blog->settings->addNameSpace('dcckeditor'); |
---|
17 | $dcckeditor_active = $core->blog->settings->dcckeditor->active; |
---|
18 | $dcckeditor_alignment_buttons = $core->blog->settings->dcckeditor->alignment_buttons; |
---|
19 | $dcckeditor_list_buttons = $core->blog->settings->dcckeditor->list_buttons; |
---|
20 | $dcckeditor_textcolor_button = $core->blog->settings->dcckeditor->textcolor_button; |
---|
21 | $dcckeditor_background_textcolor_button = $core->blog->settings->dcckeditor->background_textcolor_button; |
---|
22 | $dcckeditor_cancollapse_button = $core->blog->settings->dcckeditor->cancollapse_button; |
---|
23 | $dcckeditor_format_select = $core->blog->settings->dcckeditor->format_select; |
---|
24 | $dcckeditor_format_tags = $core->blog->settings->dcckeditor->format_tags; |
---|
25 | $dcckeditor_table_button = $core->blog->settings->dcckeditor->table_button; |
---|
26 | $dcckeditor_clipboard_buttons = $core->blog->settings->dcckeditor->clipboard_buttons; |
---|
27 | $dcckeditor_disable_native_spellchecker = $core->blog->settings->dcckeditor->disable_native_spellchecker; |
---|
28 | |
---|
29 | if (!empty($_GET['config'])) { |
---|
30 | // text/javascript response stop stream just after including file |
---|
31 | include_once dirname(__FILE__) . '/_post_config.php'; |
---|
32 | exit(); |
---|
33 | } else { |
---|
34 | include_once dirname(__FILE__) . '/inc/_config.php'; |
---|
35 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.