diff options
Diffstat (limited to '')
-rw-r--r-- | themes/smartpocket/admin/maintain.inc.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/themes/smartpocket/admin/maintain.inc.php b/themes/smartpocket/admin/maintain.inc.php new file mode 100644 index 000000000..2af937d38 --- /dev/null +++ b/themes/smartpocket/admin/maintain.inc.php @@ -0,0 +1,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); +} + +?>
\ No newline at end of file |