source: extensions/SmartAlbums/main.inc.php @ 11239

Last change on this file since 11239 was 10980, checked in by mistic100, 13 years ago

test version

File size: 915 bytes
Line 
1<?php
2/*
3Plugin Name: SmartAlbums
4Version: auto
5Description: Easily create dynamic albums with tags, date and other criteria
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=544
7Author: Mistic
8Author URI: http://www.strangeplanet.fr
9*/
10
11if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
12global $prefixeTable;
13
14define('SMART_DIR', basename(dirname(__FILE__)));
15define('SMART_PATH', PHPWG_PLUGINS_PATH.SMART_DIR.'/');
16define('CATEGORY_FILTERS_TABLE', $prefixeTable.'category_filters');
17
18if (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.