aboutsummaryrefslogtreecommitdiffstats
path: root/themes/smartpocket/admin/maintain.inc.php
diff options
context:
space:
mode:
authorflop25 <flop25@piwigo.org>2013-06-30 21:15:06 +0000
committerflop25 <flop25@piwigo.org>2013-06-30 21:15:06 +0000
commit18cfd1bb208eb12cd1be736780d813fb2de6830e (patch)
treedf9b2b4ad981c6bdd1b5f0425e5b6678b39ec08b /themes/smartpocket/admin/maintain.inc.php
parent19ae5b7e2ecd0948f202ac72e714b87808db7ccb (diff)
bug:2848
added two options for the slideshow ToDo lang var git-svn-id: http://piwigo.org/svn/trunk@23718 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'themes/smartpocket/admin/maintain.inc.php')
-rw-r--r--themes/smartpocket/admin/maintain.inc.php29
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