source: extensions/pwgCumulus/include/admin_main.inc.php @ 27153

Last change on this file since 27153 was 21469, checked in by nikrou, 11 years ago

Make plugin compatible with piwigo 2.5

File size: 1.7 KB
Line 
1<?php
2// +-----------------------------------------------------------------------+
3// | pwgCumulus  - a plugin for Piwigo                                     |
4// +-----------------------------------------------------------------------+
5// | Copyright(C) 2009-2013 Nicolas Roudaire        http://www.nikrou.net  |
6// +-----------------------------------------------------------------------+
7// | This program is free software; you can redistribute it and/or modify  |
8// | it under the terms of the GNU General Public License version 2 as     |
9// | published by  the Free Software Foundation                            |
10// |                                                                       |
11// | This program is distributed in the hope that it will be useful, but   |
12// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
13// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
14// | General Public License for more details.                              |
15// |                                                                       |
16// | You should have received a copy of the GNU General Public License     |
17// | along with this program; if not, write to the Free Software           |
18// | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,            |
19// | MA 02110-1301 USA                                                     |
20// +-----------------------------------------------------------------------+
21
22if (!defined('PHPWG_ROOT_PATH')) {
23  die('Hacking attempt!');
24}
25
26$plugin_main = file_get_contents(dirname(__FILE__) . '/../main.inc.php');
27$version = '';
28
29if (preg_match('`Version: (.*)`', $plugin_main, $matches)) {
30  $version = trim($matches[1]);
31}
32
33$template->assign('PWG_CUMULUS_PLUGIN_VERSION', $version);
Note: See TracBrowser for help on using the repository browser.