Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: SmartAlbums |
---|
4 | Version: auto |
---|
5 | Description: Easily create dynamic albums with tags, date and other criteria |
---|
6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=544 |
---|
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 | add_event_handler('loc_begin_cat_modify', 'smart_init_cat_modify'); |
---|
21 | function smart_init_cat_modify() |
---|
22 | { |
---|
23 | include_once(SMART_PATH.'init_cat_modify.php'); |
---|
24 | smart_cat_modify(); |
---|
25 | } |
---|
26 | |
---|
27 | add_event_handler('loc_begin_cat_list', 'smart_init_cat_list'); |
---|
28 | function smart_init_cat_list() |
---|
29 | { |
---|
30 | include_once(SMART_PATH.'init_cat_list.php'); |
---|
31 | smart_cat_list(); |
---|
32 | } |
---|
33 | } |
---|
34 | |
---|
35 | |
---|
36 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.