Dotclear

source: plugins/entryCSS/_install.php @ 1199

Revision 1199, 915 bytes checked in by annso, 15 years ago (diff)

new plugin: entryCSS

  • Property svn:executable set to *
Line 
1<?php
2# -- BEGIN LICENSE BLOCK ----------------------------------
3# This file is part of entryCSS, a plugin for Dotclear.
4#
5# Copyright (c) 2009 - annso
6# contact@as-i-am.fr
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$m_version = $core->plugins->moduleInfo('entryCSS','version');
16
17$i_version = $core->getVersion('entryCSS');
18
19if (version_compare($i_version,$m_version,'>=')) {
20     return;
21}
22 
23# Ajout du champ dans la base de donnée
24$s = new dbStruct($core->con,$core->prefix);
25
26$s->post
27     ->post_css('text', 0, true)
28     ;
29
30# Mise à jour du schéma
31$si = new dbStruct($core->con,$core->prefix);
32$changes = $si->synchronize($s);
33
34$core->setVersion('entryCSS',$m_version);
35return true;
36?>
Note: See TracBrowser for help on using the repository browser.

Sites map