source: extensions/stripped-slide/admin/maintain.inc.php @ 17895

Last change on this file since 17895 was 12974, checked in by Zaphod, 13 years ago

version 1.1.0

File size: 603 bytes
Line 
1<?php
2
3function 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 = "
14INSERT INTO " . CONFIG_TABLE . " (param,value,comment)
15VALUES ('stripped-slide' , '".pwg_db_real_escape_string(serialize($config))."' , 'stripped-slide theme parameters');";
16
17    pwg_query($query);
18  }
19}
20
21function theme_deactivate()
22{
23  global $prefixeTable;
24
25  $query = "DELETE FROM " . CONFIG_TABLE . " WHERE param='stripped-slide';";
26  pwg_query($query);
27}
28
29?>
Note: See TracBrowser for help on using the repository browser.