Last change
on this file since 30983 was
10574,
checked in by ddtddt, 14 years ago
|
[extensions] - AddInfousers - First release
|
-
Property svn:eol-style set to
LF
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
754 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
4 | |
---|
5 | function plugin_install() |
---|
6 | { |
---|
7 | global $prefixeTable; |
---|
8 | |
---|
9 | if (!defined('ADDINFOUSERS_TABLE')) define('ADDINFOUSERS_TABLE', $prefixeTable.'AddInfo_users'); |
---|
10 | $query = "CREATE TABLE IF NOT EXISTS ". ADDINFOUSERS_TABLE ." ( |
---|
11 | id SMALLINT( 5 ) UNSIGNED NOT NULL , |
---|
12 | info1 VARCHAR( 255 ) NOT NULL , |
---|
13 | info2 VARCHAR( 255 ) NOT NULL , |
---|
14 | info3 VARCHAR( 255 ) NOT NULL , |
---|
15 | info4 VARCHAR( 255 ) NOT NULL , |
---|
16 | info5 VARCHAR( 255 ) NOT NULL , |
---|
17 | info6 VARCHAR( 255 ) NOT NULL , |
---|
18 | info7 VARCHAR( 255 ) NOT NULL , |
---|
19 | PRIMARY KEY (id))DEFAULT CHARSET=utf8;"; |
---|
20 | $result = pwg_query($query); |
---|
21 | |
---|
22 | } |
---|
23 | |
---|
24 | function plugin_uninstall() |
---|
25 | { |
---|
26 | global $prefixeTable; |
---|
27 | |
---|
28 | $q = 'DROP TABLE ' . $prefixeTable . 'AddInfo_users;'; |
---|
29 | pwg_query($q); |
---|
30 | } |
---|
31 | |
---|
32 | |
---|
33 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.