Dotclear

source: plugins/eventdata/_install.php @ 960

Revision 960, 844 bytes checked in by JcDenis, 14 years ago (diff)

First commit

Line 
1<?php
2# -- BEGIN LICENSE BLOCK ----------------------------------
3# This file is part of eventdata, a plugin for Dotclear 2.
4#
5# Copyright (c) 2009 JC Denis and contributors
6# jcdenis@gdwd.com
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# -- END LICENSE BLOCK ------------------------------------
12
13if (!defined('DC_CONTEXT_ADMIN')) return;
14
15# Get new version
16$version = $core->plugins->moduleInfo('eventdata','version');
17# Compare versions
18if (version_compare($core->getVersion('eventdata'),$version,'>=')) return;
19# Install
20try {
21     eventdataInstall::setTable($core);
22     eventdataInstall::setSettings($core);
23     eventdataInstall::setVersion($core);
24}
25catch (Exception $e) {
26     $core->error->add($e->getMessage());
27}
28return true;
29?>
Note: See TracBrowser for help on using the repository browser.

Sites map