Dotclear

source: plugins/smiliesEditor/_install.php @ 2153

Revision 2153, 1.0 KB checked in by Osku, 14 years ago (diff)

Plugin smiliesEditor - O2: add an option to download smilies dir (backup).

Line 
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
14if (!defined('DC_CONTEXT_ADMIN')) { exit; }
15 
16$m_version = $core->plugins->moduleInfo('smiliesEditor','version');
17 
18$i_version = $core->getVersion('smiliesEditor');
19 
20if (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);
31return true;
32?>
Note: See TracBrowser for help on using the repository browser.

Sites map