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

Last change on this file since 11290 was 11290, checked in by mistic100, 13 years ago
File size: 961 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  load_language('plugin.lang', SMART_PATH);
21 
22  add_event_handler('loc_begin_cat_modify', 'smart_init_cat_modify'); 
23  function smart_init_cat_modify()
24  {
25    include_once(SMART_PATH.'init_cat_modify.php');
26    smart_cat_modify();
27  }
28 
29  add_event_handler('loc_begin_cat_list', 'smart_init_cat_list');
30  function smart_init_cat_list()
31  {
32    include_once(SMART_PATH.'init_cat_list.php');
33    smart_cat_list();
34  }
35}
36
37?>
Note: See TracBrowser for help on using the repository browser.