Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: Websize Regeneration |
---|
4 | Version: auto |
---|
5 | Description: Regenerate "websize" photos if HD is exists. |
---|
6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=529 |
---|
7 | Author: P@t |
---|
8 | Author URI: http://www.gauchon.com |
---|
9 | */ |
---|
10 | |
---|
11 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
12 | define('REGENERATE_WEBSIZE_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/'); |
---|
13 | |
---|
14 | add_event_handler('loc_begin_element_set_global', 'rgws_element_set_global_add_action'); |
---|
15 | add_event_handler('ws_add_methods', 'add_regenerate_websize_method'); |
---|
16 | |
---|
17 | function rgws_element_set_global_add_action() |
---|
18 | { |
---|
19 | include(REGENERATE_WEBSIZE_PATH.'element_set_global_action.php'); |
---|
20 | } |
---|
21 | |
---|
22 | function 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.