source:
extensions/Photo_add_by/maintain.inc.php
@
28369
Last change on this file since 28369 was 27458, checked in by , 11 years ago | |
---|---|
File size: 427 bytes |
Rev | Line | |
---|---|---|
[21222] | 1 | <?php |
2 | ||
3 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); | |
4 | ||
5 | ||
6 | function plugin_install() | |
7 | { | |
[27458] | 8 | |
[21222] | 9 | } |
10 | ||
[21630] | 11 | function plugin_activate() |
12 | { | |
13 | global $conf; | |
[27458] | 14 | if (!isset($conf['Photo_add_by'])) |
15 | { | |
16 | conf_update_param('Photo_add_by', 'datecreate'); | |
17 | } | |
18 | if (!isset($conf['Photo_add_by_show'])) | |
19 | { | |
20 | conf_update_param('Photo_add_by_show', '0'); | |
21 | } | |
22 | ||
23 | ||
[21630] | 24 | } |
25 | ||
26 | ||
[21222] | 27 | function plugin_uninstall() |
28 | { | |
[27458] | 29 | conf_delete_param('Photo_add_by_show','Photo_add_by'); |
[21222] | 30 | } |
31 | ?> |
Note: See TracBrowser
for help on using the repository browser.