1 | <?php /* -*- tab-width: 5; indent-tabs-mode: t; c-basic-offset: 5 -*- */ |
---|
2 | /***************************************************************\ |
---|
3 | * This is 'My URL handlers', a plugin for Dotclear 2 * |
---|
4 | * * |
---|
5 | * Copyright (c) 2007-2008 * |
---|
6 | * Oleksandr Syenchuk and contributors. * |
---|
7 | * * |
---|
8 | * This is an open source software, distributed under the GNU * |
---|
9 | * General Public License (version 2) terms and conditions. * |
---|
10 | * * |
---|
11 | * You should have received a copy of the GNU General Public * |
---|
12 | * License along with 'My URL handlers' (see COPYING.txt); * |
---|
13 | * if not, write to the Free Software Foundation, Inc., * |
---|
14 | * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * |
---|
15 | \***************************************************************/ |
---|
16 | |
---|
17 | $label = 'myURLhandlers'; |
---|
18 | $m_version = $core->plugins->moduleInfo($label,'version'); |
---|
19 | $i_version = $core->getVersion($label); |
---|
20 | |
---|
21 | if (version_compare($i_version,$m_version,'>=')) { |
---|
22 | unset($label,$m_version,$i_version); return; |
---|
23 | } |
---|
24 | |
---|
25 | $settings =& $core->blog->settings; |
---|
26 | $settings->setNamespace(strtolower($label)); |
---|
27 | $settings->put('url_handlers','','string','Personalized URL handlers',false); |
---|
28 | |
---|
29 | $core->setVersion($label,$m_version); |
---|
30 | unset($label,$m_version,$i_version); |
---|
31 | return true; |
---|
32 | ?> |
---|