Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | if (!defined('PHPWG_ROOT_PATH')) |
---|
4 | die('Hacking attempt!'); |
---|
5 | |
---|
6 | function plugin_activate() { |
---|
7 | |
---|
8 | global $conf; |
---|
9 | |
---|
10 | if (!isset($conf['see_photos_by_user_nbphotos'])) { |
---|
11 | conf_update_param('see_photos_by_user_nbphotos', '0'); |
---|
12 | } |
---|
13 | if (!isset($conf['see_photos_by_user_limit'])) { |
---|
14 | conf_update_param('see_photos_by_user_limit', '1000'); |
---|
15 | } |
---|
16 | if (!isset($conf['see_photos_by_user_order'])) { |
---|
17 | conf_update_param('see_photos_by_user_order', 'username ASC'); |
---|
18 | } |
---|
19 | if (!isset($conf['see_photos_by_user_show'])) { |
---|
20 | conf_update_param('see_photos_by_user_show', '1'); |
---|
21 | } |
---|
22 | if (!isset($conf['see_photos_by_user_color'])) { |
---|
23 | conf_update_param('see_photos_by_user_color', '#ffffff'); |
---|
24 | } |
---|
25 | } |
---|
26 | |
---|
27 | function plugin_install() { |
---|
28 | } |
---|
29 | |
---|
30 | function plugin_uninstall() { |
---|
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'); |
---|
34 | conf_delete_param('see_photos_by_user_show'); |
---|
35 | conf_delete_param('see_photos_by_user_color'); |
---|
36 | } |
---|
37 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.