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

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

private items are not displayed in SmartAlbums (according to user permissions)

File size: 1004 bytes
RevLine 
[10871]1<?php
2/*
3Plugin Name: SmartAlbums
4Version: auto
[10980]5Description: Easily create dynamic albums with tags, date and other criteria
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=544
[10871]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
[11334]18if (script_basename() == 'index')
[10871]19{
[11334]20  add_event_handler('loc_end_section_init', 'smart_init_page_items');
21  include_once(SMART_PATH.'include/init_page_items.php');
22}
23else if (script_basename() == 'admin')
24{
[11290]25  load_language('plugin.lang', SMART_PATH);
26 
[11334]27  add_event_handler('loc_begin_cat_modify', 'smart_cat_modify'); 
28  include_once(SMART_PATH.'include/init_cat_modify.php');
[10871]29 
[11334]30  add_event_handler('loc_begin_cat_list', 'smart_cat_list');
31  include_once(SMART_PATH.'include/init_cat_list.php');
[10871]32}
33
34?>
Note: See TracBrowser for help on using the repository browser.