Last change
on this file since 19775 was
19775,
checked in by julien1311, 11 years ago
|
some bug fixes/improvements
still buggy
|
-
Property svn:eol-style set to
LF
|
File size:
905 bytes
|
Line | |
---|
1 | <?php |
---|
2 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
3 | |
---|
4 | function plugin_install() { |
---|
5 | include_once(dirname(__FILE__).'/install/config_default.inc.php'); |
---|
6 | include_once(dirname(__FILE__).'/install/functions.inc.php'); |
---|
7 | |
---|
8 | $query = 'INSERT INTO '.CONFIG_TABLE.' (param,value,comment) VALUES ("file_uploader" ,"'.pwg_db_real_escape_string(serialize($config_default)).'", "File Uploader plugin parameters");'; |
---|
9 | pwg_query($query); |
---|
10 | |
---|
11 | file_uploader_folder($file_uploader_galleries_folder, $file_uploader_galleries_dir); |
---|
12 | } |
---|
13 | |
---|
14 | function plugin_activate() { |
---|
15 | include_once(dirname(__FILE__).'/install/config_default.inc.php'); |
---|
16 | include_once(dirname(__FILE__).'/install/functions.inc.php'); |
---|
17 | |
---|
18 | file_uploader_folder($file_uploader_galleries_folder, $file_uploader_galleries_dir); |
---|
19 | } |
---|
20 | |
---|
21 | function plugin_uninstall() { |
---|
22 | $query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE (param="file_uploader");'; |
---|
23 | pwg_query($query); |
---|
24 | } |
---|
25 | |
---|
26 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.