Changeset 9846 for extensions/NBC_UserAdvManager
- Timestamp:
- Mar 24, 2011, 6:47:53 PM (14 years ago)
- Location:
- extensions/NBC_UserAdvManager/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/NBC_UserAdvManager/trunk/include/upgradedb.inc.php
r9266 r9846 11 11 { 12 12 define('UAM_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'); 13 }14 if (!defined('UAM_ROOT'))15 {16 define('UAM_ROOT', dirname(__FILE__).'/');17 13 } 18 14 -
extensions/NBC_UserAdvManager/trunk/main.inc.php
r9295 r9846 2 2 /* 3 3 Plugin Name: UserAdvManager 4 Version: 2.20.0-RC 4 Version: 2.20.0-RC2 5 5 Description: Renforcer la gestion des utilisateurs - Enforce users management 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=216 … … 17 17 18 18 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 19 if (!defined('UAM_DIR')) define('UAM_DIR' , basename(dirname(__FILE__)));20 19 if (!defined('UAM_PATH')) define('UAM_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'); 21 20 -
extensions/NBC_UserAdvManager/trunk/maintain.inc.php
r9253 r9846 4 4 { 5 5 define('UAM_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'); 6 }7 if (!defined('UAM_ROOT'))8 {9 define('UAM_ROOT', dirname(__FILE__).'/');10 6 } 11 7 … … 55 51 VALUES ("UserAdvManager_Redir","0","UAM Redirections") 56 52 ;'; 53 pwg_query($q); 54 55 // Set current plugin version in config table 56 $plugin = PluginInfos(UAM_PATH); 57 $version = $plugin['version']; 58 $q = ' 59 INSERT INTO '.CONFIG_TABLE.' (param, value, comment) 60 VALUES ("UserAdvManager_Version","'.$version.'","UAM version check") 61 ;'; 62 57 63 pwg_query($q); 58 64
Note: See TracChangeset
for help on using the changeset viewer.