source: extensions/Slide/admin/maintain.inc.php @ 26915

Last change on this file since 26915 was 21579, checked in by Miklfe, 11 years ago
File size: 555 bytes
Line 
1<?php
2
3function theme_activate($id, $version, &$errors)
4        {
5        global $conf;
6
7        if (!isset($conf['Slide']))
8                {
9                $config = array(
10                                                'style_slide'           => '2',
11                                                'color_theme'           => '1'
12                                                );
13                 
14                $query = "
15        INSERT INTO " . CONFIG_TABLE . " (param,value,comment)
16        VALUES ('Slide' , '".pwg_db_real_escape_string(serialize($config))."' , 'Slide theme parameters');";
17
18                pwg_query($query);
19                }
20        }
21
22function theme_deactivate()
23        {
24    $query = "DELETE FROM " . CONFIG_TABLE . " WHERE param='Slide';";
25        pwg_query($query);
26        }
27
28?>
Note: See TracBrowser for help on using the repository browser.