source: extensions/blancmontxl/admin/maintain.inc.php @ 6299

Last change on this file since 6299 was 6286, checked in by repie38, 14 years ago

conf panel new option : use montblancxl icon set (option can't be set if montblancxl isn't installed)

File size: 662 bytes
Line 
1<?php
2
3function theme_activate($id, $version, &$errors)
4{
5  global $prefixeTable, $conf;
6
7  if (!isset($conf['BlancmontXL']))
8  {
9    $config = array(
10      'home'       => true,
11      'categories' => true,
12      'picture'    => false,
13      'other'      => true,
14          'ico'        => false,
15      );
16     
17    $query = '
18INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
19VALUES ("BlancmontXL" , "'.addslashes(serialize($config)).'" , "BlancmontXL parameters");';
20
21    pwg_query($query);
22  }
23}
24
25function theme_deactivate()
26{
27  global $prefixeTable;
28
29  $query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="BlancmontXL" LIMIT 1;';
30  pwg_query($query);
31}
32
33?>
Note: See TracBrowser for help on using the repository browser.