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