Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: SmartAlbums |
---|
4 | Version: auto |
---|
5 | Description: Easy create dynamic albums with tags, date and other criteria |
---|
6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid= |
---|
7 | Author: Mistic |
---|
8 | Author URI: http://www.strangeplanet.fr |
---|
9 | */ |
---|
10 | |
---|
11 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
12 | global $prefixeTable; |
---|
13 | |
---|
14 | define('SMART_DIR', basename(dirname(__FILE__))); |
---|
15 | define('SMART_PATH', PHPWG_PLUGINS_PATH.SMART_DIR.'/'); |
---|
16 | define('CATEGORY_FILTERS_TABLE', $prefixeTable.'category_filters'); |
---|
17 | |
---|
18 | if (script_basename() == 'admin') |
---|
19 | { |
---|
20 | include_once(SMART_PATH.'init_cat_modify.php'); |
---|
21 | |
---|
22 | add_event_handler('loc_begin_cat_modify', 'smart_cat_modify'); |
---|
23 | } |
---|
24 | |
---|
25 | |
---|
26 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.