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

Last change on this file since 19020 was 19020, checked in by Miklfe, 11 years ago
File size: 550 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                                                );
13                 
14                $query = "
15        INSERT INTO " . CONFIG_TABLE . " (param,value,comment)
16        VALUES ('Slim' , '".pwg_db_real_escape_string(serialize($config))."' , 'Slim theme parameters');";
17
18                pwg_query($query);
19                }
20        }
21
22function theme_deactivate()
23        {
24    $query = "DELETE FROM " . CONFIG_TABLE . " WHERE param='Slim';";
25        pwg_query($query);
26        }
27
28?>
Note: See TracBrowser for help on using the repository browser.