Dotclear

source: plugins/referer/trunk/_install.php @ 3328

Revision 3328, 922 bytes checked in by brol, 9 years ago (diff)

voir changelog

Line 
1<?php
2# -- BEGIN LICENSE BLOCK ----------------------------------
3# This file is part of referer, a plugin for Dotclear.
4#
5# Copyright (c) 2008-2010 Tomtom
6# http://blog.zenstyle.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('referer','version');
16
17$i_version = $core->getVersion('referer');
18
19if (version_compare($i_version,$m_version,'>=')) {
20     //return;
21}
22
23$core->blog->settings->addNamespace('referer');
24$core->blog->settings->referer->put('last_referer',serialize(array()),'string','Last referers',false);
25$core->blog->settings->referer->put('top_referer',serialize(array()),'string','Top referers',false);
26
27$core->setVersion('referer',$m_version);
Note: See TracBrowser for help on using the repository browser.

Sites map