Changeset 11344 for extensions/pwgCumulus/include/admin_main.inc.php
- Timestamp:
- Jun 13, 2011, 10:54:28 PM (13 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
extensions/pwgCumulus/include/admin_main.inc.php
r11226 r11344 20 20 // +-----------------------------------------------------------------------+ 21 21 22 /* 23 Plugin Name: pwgCumulus 24 Version: 0.5.3 25 Description: add an amazing tag cloud 26 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=263 27 Author: nikrou 28 Author URI: http://www.nikrou.net/ 29 */ 22 $plugin_main = file_get_contents(dirname(__FILE__) . '/../main.inc.php'); 23 $version = ''; 30 24 31 if ( !defined('PHPWG_ROOT_PATH')) {32 die('Hacking attempt!');25 if (preg_match('`Version: (.*)`', $plugin_main, $matches)) { 26 $version = trim($matches[1]); 33 27 } 34 28 35 include_once(dirname(__FILE__).'/init.php'); 36 ?> 29 $template->assign('PWG_CUMULUS_PLUGIN_VERSION', $version);
Note: See TracChangeset
for help on using the changeset viewer.