Dotclear

source: plugins/databasespy/_install.php @ 1573

Revision 1573, 817 bytes checked in by JcDenis, 14 years ago (diff)

databasespy 0.4:

  • First lab release
Line 
1<?php
2# -- BEGIN LICENSE BLOCK ----------------------------------
3# This file is part of databasespy, 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 versions
16$new = $core->plugins->moduleInfo('databasespy','version');
17$old = $core->getVersion('databasespy');
18# Compare versions
19if (version_compare($old,$new,'>=')) return;
20# Set new version
21try {
22     $core->setVersion('databasespy',$new);
23}
24catch (Exception $e) {
25     $core->error->add($e->getMessage());
26}
27return true;
28?>
Note: See TracBrowser for help on using the repository browser.

Sites map