Last change
on this file since 6269 was
3673,
checked in by plg, 15 years ago
|
first import for the Community plugin : basic feature to declare a list of
non admin users able to add photos with web API.
|
File size:
514 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | if (!defined("COMMUNITY_PATH")) |
---|
4 | { |
---|
5 | define('COMMUNITY_PATH', PHPWG_PLUGINS_PATH.basename(dirname(__FILE__))); |
---|
6 | } |
---|
7 | |
---|
8 | include_once (COMMUNITY_PATH.'/include/constants.php'); |
---|
9 | |
---|
10 | function plugin_install() |
---|
11 | { |
---|
12 | $query = " |
---|
13 | CREATE TABLE IF NOT EXISTS ".COMMUNITY_TABLE." ( |
---|
14 | user_id smallint(5) NOT NULL default '0', |
---|
15 | permission_level tinyint NOT NULL default 1, |
---|
16 | PRIMARY KEY (user_id) |
---|
17 | ) |
---|
18 | ;"; |
---|
19 | pwg_query($query); |
---|
20 | } |
---|
21 | |
---|
22 | function plugin_uninstall() |
---|
23 | { |
---|
24 | $query = 'DROP TABLE '.COMMUNITY_TABLE.';'; |
---|
25 | pwg_query($query); |
---|
26 | } |
---|
27 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.