Last change
on this file since 27438 was
27438,
checked in by ddtddt, 10 years ago
|
[extensions] - see_photos_by_user - bug update
|
File size:
799 bytes
|
Rev | Line | |
---|
[27391] | 1 | <?php |
---|
| 2 | |
---|
| 3 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 4 | |
---|
| 5 | function plugin_activate() |
---|
| 6 | { |
---|
[27428] | 7 | if (!isset($conf['see_photos_by_user_nbphotos'])) |
---|
[27391] | 8 | { |
---|
| 9 | conf_update_param('see_photos_by_user_nbphotos', '0'); |
---|
| 10 | } |
---|
[27428] | 11 | if (!isset($conf['see_photos_by_user_limit'])) |
---|
[27391] | 12 | { |
---|
| 13 | conf_update_param('see_photos_by_user_limit', '1000'); |
---|
| 14 | } |
---|
[27428] | 15 | if (!isset($conf['see_photos_by_user_order'])) |
---|
[27391] | 16 | { |
---|
| 17 | conf_update_param('see_photos_by_user_order', 'username ASC'); |
---|
| 18 | } |
---|
[27438] | 19 | if (!isset($conf['see_photos_by_user_show'])) |
---|
[27428] | 20 | { |
---|
| 21 | conf_update_param('see_photos_by_user_show', '1'); |
---|
| 22 | } |
---|
[27391] | 23 | } |
---|
| 24 | |
---|
| 25 | function plugin_install() |
---|
| 26 | { |
---|
| 27 | } |
---|
| 28 | |
---|
| 29 | function plugin_uninstall() |
---|
| 30 | { |
---|
| 31 | conf_delete_param('see_photos_by_user_nbphotos'); |
---|
| 32 | conf_delete_param('see_photos_by_user_limit'); |
---|
| 33 | conf_delete_param('see_photos_by_user_order'); |
---|
[27438] | 34 | conf_delete_param('see_photos_by_user_show'); |
---|
[27391] | 35 | } |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.