|
Revision 12678, 0.5 KB
(checked in by patdenice, 18 months ago)
|
|
Add GThumb+ plugin
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | |
|---|
| 3 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
|---|
| 4 | |
|---|
| 5 | function plugin_install() |
|---|
| 6 | { |
|---|
| 7 | include(dirname(__FILE__).'/config_default.inc.php'); |
|---|
| 8 | |
|---|
| 9 | $query = ' |
|---|
| 10 | INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) |
|---|
| 11 | VALUES ("GThumb" , "'.addslashes(serialize($config_default)).'" , "GThumb plugin parameters");'; |
|---|
| 12 | pwg_query($query); |
|---|
| 13 | } |
|---|
| 14 | |
|---|
| 15 | function plugin_uninstall() |
|---|
| 16 | { |
|---|
| 17 | include_once(dirname(__FILE__).'/functions.inc.php'); |
|---|
| 18 | gtdeltree(GTHUMB_CACHE_DIR); |
|---|
| 19 | |
|---|
| 20 | $query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="GThumb" LIMIT 1;'; |
|---|
| 21 | pwg_query($query); |
|---|
| 22 | } |
|---|
| 23 | |
|---|
| 24 | ?> |
|---|