Last change
on this file since 6366 was
6366,
checked in by repie38, 15 years ago
|
nicer code for icon dir option, and add of montblancxl icon set
|
File size:
670 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | function 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 | 'icon_dir' => 'blancmontxl', |
---|
15 | ); |
---|
16 | |
---|
17 | $query = ' |
---|
18 | INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) |
---|
19 | VALUES ("BlancmontXL" , "'.addslashes(serialize($config)).'" , "BlancmontXL parameters");'; |
---|
20 | |
---|
21 | pwg_query($query); |
---|
22 | } |
---|
23 | } |
---|
24 | |
---|
25 | function 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.