Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | function theme_activate($id, $version, &$errors) |
---|
4 | { |
---|
5 | global $conf; |
---|
6 | |
---|
7 | if (!isset($conf['Slimi'])) |
---|
8 | { |
---|
9 | $config = array( |
---|
10 | 'lytebox_slimi' => '1', |
---|
11 | 'bg_slimi' => '#FFA800', |
---|
12 | 'bd_slimi' => '#4F4F4F', |
---|
13 | 'title_slimi' => '#4F4F4F', |
---|
14 | ); |
---|
15 | |
---|
16 | $query = " |
---|
17 | INSERT INTO " . CONFIG_TABLE . " (param,value,comment) |
---|
18 | VALUES ('Slimi' , '".pwg_db_real_escape_string(serialize($config))."' , 'Slimi theme parameters');"; |
---|
19 | |
---|
20 | pwg_query($query); |
---|
21 | } |
---|
22 | } |
---|
23 | |
---|
24 | function theme_deactivate() |
---|
25 | { |
---|
26 | $query = "DELETE FROM " . CONFIG_TABLE . " WHERE param='Slimi';"; |
---|
27 | pwg_query($query); |
---|
28 | } |
---|
29 | |
---|
30 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.