1 | <?php |
---|
2 | # -- BEGIN LICENSE BLOCK ---------------------------------- |
---|
3 | # |
---|
4 | # This file is part of smiliesEditor, a plugin for Dotclear 2. |
---|
5 | # |
---|
6 | # Copyright (c) 2009-2010 Osku and contributors |
---|
7 | # |
---|
8 | # Licensed under the GPL version 2.0 license. |
---|
9 | # A copy of this license is available in LICENSE file or at |
---|
10 | # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
---|
11 | # |
---|
12 | # -- END LICENSE BLOCK ------------------------------------ |
---|
13 | |
---|
14 | if (!defined('DC_CONTEXT_ADMIN')) { exit; } |
---|
15 | |
---|
16 | $m_version = $core->plugins->moduleInfo('smiliesEditor','version'); |
---|
17 | |
---|
18 | $i_version = $core->getVersion('smiliesEditor'); |
---|
19 | |
---|
20 | if (version_compare($i_version,$m_version,'>=')) { |
---|
21 | return; |
---|
22 | } |
---|
23 | |
---|
24 | $core->blog->settings->setNamespace('smilieseditor'); |
---|
25 | $s =& $core->blog->settings; |
---|
26 | $s->put('smilies_bar_flag',false,'boolean','Show smilies toolbar',true,true); |
---|
27 | $s->put('smilies_preview_flag',false,'boolean','Show smilies on preview',true,true); |
---|
28 | $s->put('smilies_toolbar','','string','Smilies displayed in toolbar',true,true); |
---|
29 | |
---|
30 | $core->setVersion('smiliesEditor',$m_version); |
---|
31 | return true; |
---|
32 | ?> |
---|