source: extensions/regenerateWebsize/main.inc.php @ 14736

Last change on this file since 14736 was 10358, checked in by patdenice, 14 years ago

Add Websize Renegeration plugin.

File size: 773 bytes
Line 
1<?php
2/*
3Plugin Name: Websize Regeneration
4Version: auto
5Description: Regenerate "websize" photos if HD is exists.
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=529
7Author: P@t
8Author URI: http://www.gauchon.com
9*/
10
11if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
12define('REGENERATE_WEBSIZE_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/');
13
14add_event_handler('loc_begin_element_set_global', 'rgws_element_set_global_add_action');
15add_event_handler('ws_add_methods', 'add_regenerate_websize_method');
16
17function rgws_element_set_global_add_action()
18{
19  include(REGENERATE_WEBSIZE_PATH.'element_set_global_action.php');
20}
21
22function add_regenerate_websize_method($arr)
23{
24  include_once(REGENERATE_WEBSIZE_PATH.'ws_functions.inc.php');
25}
26
27?>
Note: See TracBrowser for help on using the repository browser.