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

Last change on this file since 9910 was 9784, checked in by mistic100, 14 years ago

[extensions] Front2Back

  • new admin page
  • some changes in config
File size: 509 bytes
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.