|
Revision 12974, 0.6 KB
(checked in by Zaphod, 16 months ago)
|
|
version 1.1.0
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | |
|---|
| 3 | function theme_activate($id, $version, &$errors) |
|---|
| 4 | { |
|---|
| 5 | global $prefixeTable, $conf; |
|---|
| 6 | |
|---|
| 7 | if (!isset($conf['stripped-slide'])) |
|---|
| 8 | { |
|---|
| 9 | $config = array( |
|---|
| 10 | 'maxHeight' => '600', |
|---|
| 11 | ); |
|---|
| 12 | |
|---|
| 13 | $query = " |
|---|
| 14 | INSERT INTO " . CONFIG_TABLE . " (param,value,comment) |
|---|
| 15 | VALUES ('stripped-slide' , '".pwg_db_real_escape_string(serialize($config))."' , 'stripped-slide theme parameters');"; |
|---|
| 16 | |
|---|
| 17 | pwg_query($query); |
|---|
| 18 | } |
|---|
| 19 | } |
|---|
| 20 | |
|---|
| 21 | function theme_deactivate() |
|---|
| 22 | { |
|---|
| 23 | global $prefixeTable; |
|---|
| 24 | |
|---|
| 25 | $query = "DELETE FROM " . CONFIG_TABLE . " WHERE param='stripped-slide';"; |
|---|
| 26 | pwg_query($query); |
|---|
| 27 | } |
|---|
| 28 | |
|---|
| 29 | ?> |
|---|