Last change
on this file since 9784 was
9784,
checked in by mistic100, 13 years ago
|
[extensions] Front2Back
- new admin page
- some changes in config
|
File size:
509 bytes
|
Rev | Line | |
---|
[9784] | 1 | <?php |
---|
| 2 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 3 | |
---|
| 4 | function plugin_install() |
---|
| 5 | { |
---|
| 6 | global $conf; |
---|
| 7 | |
---|
| 8 | if (!isset($conf['Front2Back'])) { |
---|
| 9 | $q = 'INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) |
---|
| 10 | VALUES ("Front2Back", ",thumbnail/verso/,pwg_high/verso/,", "Parametres Front2Back");'; |
---|
| 11 | pwg_query($q); |
---|
| 12 | } |
---|
| 13 | } |
---|
| 14 | |
---|
| 15 | function plugin_uninstall() |
---|
| 16 | { |
---|
| 17 | global $conf; |
---|
| 18 | |
---|
| 19 | if (isset($conf['Front2Back'])) { |
---|
| 20 | pwg_query('DELETE FROM ' . CONFIG_TABLE . ' WHERE param="Front2Back";'); |
---|
| 21 | } |
---|
| 22 | } |
---|
| 23 | |
---|
| 24 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.