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

Last change on this file since 27442 was 27442, checked in by ddtddt, 10 years ago

[extensions] - see_photos_by_user - bug desactivate plug - link direct user only for autorise user

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