source: extensions/Slim/admin/maintain.inc.php @ 28581

Last change on this file since 28581 was 28581, checked in by Miklfe, 10 years ago

Slim 2.0 release1

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