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