Last change
on this file since 27447 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
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
4 | |
---|
5 | function plugin_activate() |
---|
6 | { |
---|
7 | |
---|
8 | global $conf; |
---|
9 | |
---|
10 | if (!isset($conf['see_photos_by_user_nbphotos'])) |
---|
11 | { |
---|
12 | conf_update_param('see_photos_by_user_nbphotos', '0'); |
---|
13 | } |
---|
14 | if (!isset($conf['see_photos_by_user_limit'])) |
---|
15 | { |
---|
16 | conf_update_param('see_photos_by_user_limit', '1000'); |
---|
17 | } |
---|
18 | if (!isset($conf['see_photos_by_user_order'])) |
---|
19 | { |
---|
20 | conf_update_param('see_photos_by_user_order', 'username ASC'); |
---|
21 | } |
---|
22 | if (!isset($conf['see_photos_by_user_show'])) |
---|
23 | { |
---|
24 | conf_update_param('see_photos_by_user_show', '1'); |
---|
25 | } |
---|
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'); |
---|
37 | conf_delete_param('see_photos_by_user_show'); |
---|
38 | } |
---|
39 | |
---|
40 | |
---|
41 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.