Changeset 9369 for extensions/PWG_Stuffs/main.inc.php
- Timestamp:
- Feb 24, 2011, 4:45:43 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PWG_Stuffs/main.inc.php
r7402 r9369 2 2 /* 3 3 Plugin Name: PWG Stuffs 4 Version: 2.0.q4 Version: auto 5 5 Description: Insert modules on your gallery 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=190 … … 8 8 Author URI: http://www.gauchon.com 9 9 */ 10 11 define('STUFFS_VERSION', '2.1.m'); 10 12 11 13 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); … … 16 18 define('STUFFS_PATH' , PHPWG_PLUGINS_PATH . STUFFS_DIR . '/'); 17 19 define('STUFFS_TABLE' , $prefixeTable . 'stuffs'); 20 21 // Need upgrade? 22 if ($plugin['version'] != STUFFS_VERSION) 23 include('admin/upgrade.inc.php'); 18 24 19 25 function stuffs_admin_menu($menu) … … 27 33 function set_stuffs_on_index() 28 34 { 29 35 global $page; 30 36 31 37 if (isset($page['section']) and $page['section'] == 'categories') 32 38 { 33 39 include_once(STUFFS_PATH . 'include/stuffs.inc.php'); 34 40 } 35 41 } 36 42 37 43 function set_stuffs_on_picture() 38 44 { 39 45 include_once(STUFFS_PATH . 'include/stuffs.inc.php'); 40 46 } 41 47
Note: See TracChangeset
for help on using the changeset viewer.