source: extensions/Front2Back/maintain.inc.php @ 9784

Revision 9784, 509 bytes checked in by mistic100, 9 years ago (diff)

[extensions] Front2Back

  • new admin page
  • some changes in config
Line 
1<?php
2if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
3
4function 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
15function 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.