Dotclear

source: plugins/dcCKEditor/index.php @ 3730:5c45a5df9a59

Revision 3730:5c45a5df9a59, 1.8 KB checked in by franck <carnet.franck.paul@…>, 7 years ago (diff)

Code formatting (PSR-2)

Line 
1<?php
2# -- BEGIN LICENSE BLOCK ---------------------------------------
3#
4# This file is part of Dotclear 2.
5#
6# Copyright (c) 2003-2015 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
13if (!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_background_textcolor_button = $core->blog->settings->dcckeditor->background_textcolor_button;
23$dcckeditor_cancollapse_button          = $core->blog->settings->dcckeditor->cancollapse_button;
24$dcckeditor_format_select               = $core->blog->settings->dcckeditor->format_select;
25$dcckeditor_format_tags                 = $core->blog->settings->dcckeditor->format_tags;
26$dcckeditor_table_button                = $core->blog->settings->dcckeditor->table_button;
27$dcckeditor_clipboard_buttons           = $core->blog->settings->dcckeditor->clipboard_buttons;
28$dcckeditor_disable_native_spellchecker = $core->blog->settings->dcckeditor->disable_native_spellchecker;
29
30if (!empty($_GET['config'])) {
31    // text/javascript response stop stream just after including file
32    include_once dirname(__FILE__) . '/_post_config.php';
33    exit();
34} else {
35    include_once dirname(__FILE__) . '/inc/_config.php';
36}
Note: See TracBrowser for help on using the repository browser.

Sites map