source: trunk/themes/smartpocket/admin/maintain.inc.php @ 23718

Last change on this file since 23718 was 23718, checked in by flop25, 11 years ago

bug:2848
added two options for the slideshow

ToDo lang var

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