Last change
on this file since 19472 was
19472,
checked in by julien1311, 12 years ago
|
first version
|
-
Property svn:eol-style set to
LF
|
File size:
508 bytes
|
Line | |
---|
1 | <?php |
---|
2 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
3 | |
---|
4 | function plugin_install() { |
---|
5 | include(dirname(__FILE__).'/config_default.inc.php'); |
---|
6 | |
---|
7 | $query = 'INSERT INTO '.CONFIG_TABLE.' (param,value,comment) VALUES ("file_uploader" ,"'.addslashes(serialize($config_default)).'", "File Uploader plugin parameters");'; |
---|
8 | pwg_query($query); |
---|
9 | } |
---|
10 | |
---|
11 | function plugin_activate() { |
---|
12 | |
---|
13 | } |
---|
14 | |
---|
15 | function plugin_uninstall() { |
---|
16 | $query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE (param="file_uploader");'; |
---|
17 | pwg_query($query); |
---|
18 | } |
---|
19 | |
---|
20 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.