source: extensions/see_photos_by_user/maintain.inc.php @ 27533

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