aboutsummaryrefslogtreecommitdiffstats
path: root/themes/smartpocket/admin/maintain.inc.php
blob: 2af937d384cfd592d36e5c4034717a20cfe7e57e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php

function theme_activate($id, $version, &$errors)
{
  global $prefixeTable, $conf;

  if (!isset($conf['smartpocket']))
  {
    $config = array(
      'loop'            => true,//true - false
      'autohide'            => 5000,//5000 - 0
    );
      
    $query = "
INSERT INTO " . CONFIG_TABLE . " (param,value,comment)
VALUES ('smartpocket' , '".pwg_db_real_escape_string(serialize($config))."' , 'loop#autohide');";
    pwg_query($query);
  }
}

function theme_delete()
{
  global $prefixeTable;

  $query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="smartpocket" ;';
  pwg_query($query);
}

?>