source: extensions/PwgCarbon/admin/maintain.inc.php @ 21019

Last change on this file since 21019 was 18843, checked in by Miklfe, 12 years ago
File size: 791 bytes
Line 
1<?php
2
3function theme_activate($id, &$errors)
4{
5  global $conf;
6
7  if (!isset($conf['PwgCarbon']))
8  {
9    $config = array(
10                                                'color_bg'                              => '4',
11                                                'color_theme'                   => '4', 
12                                                'th'                                    => '1',
13                                                'bg'                                    => '1',
14                                                'hd'                                    => '4',
15                                                'thumbreflex'                   => '1',
16                                                'imgtheme'                              => '1',
17                                                'colormenu'                             => '0', 
18                                                'lytebox'                               => '0',
19                                                'menuident'                             => '1',
20                                        );
21     
22    $query = "
23INSERT INTO " . CONFIG_TABLE . " (param,value,comment)
24VALUES ('PwgCarbon' , '".pwg_db_real_escape_string(serialize($config))."' , 'PwgCarbon theme parameters');";
25
26    pwg_query($query);
27  }
28}
29
30function theme_deactivate()
31{
32
33  $query = "DELETE FROM " . CONFIG_TABLE . " WHERE param='PwgCarbon';";
34  pwg_query($query);
35}
36
37?>
Note: See TracBrowser for help on using the repository browser.