Last change
on this file since 24879 was
24879,
checked in by mistic100, 11 years ago
|
create plugin PublicAdmin
(only photo:name, photo:comment and photo:author are editable for now)
|
File size:
436 bytes
|
Line | |
---|
1 | <?php |
---|
2 | defined('PHPWG_ROOT_PATH') or die('Hacking attempt!'); |
---|
3 | |
---|
4 | function publicadmin_install() |
---|
5 | { |
---|
6 | global $conf; |
---|
7 | |
---|
8 | if (empty($conf['publicadmin'])) |
---|
9 | { |
---|
10 | $conf['publicadmin'] = serialize(array()); |
---|
11 | |
---|
12 | conf_update_param('publicadmin', $conf['publicadmin']); |
---|
13 | } |
---|
14 | } |
---|
15 | |
---|
16 | function publicadmin_uninstall() |
---|
17 | { |
---|
18 | global $conf; |
---|
19 | |
---|
20 | pwg_query('DELETE FROM `'. CONFIG_TABLE .'` WHERE param = "publicadmin";'); |
---|
21 | unset($conf['publicadmin']); |
---|
22 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.