Revision 2489,
926 bytes
checked in by Tomtom33, 13 years ago
(diff) |
referer 0.3.4:
- Dotclear 2.2 compliance
- Updated licence blocks
|
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 | |
---|
13 | if (!defined('DC_CONTEXT_ADMIN')) { return; } |
---|
14 | |
---|
15 | $m_version = $core->plugins->moduleInfo('referer','version'); |
---|
16 | |
---|
17 | $i_version = $core->getVersion('referer'); |
---|
18 | |
---|
19 | if (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); |
---|
28 | |
---|
29 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.