summaryrefslogtreecommitdiffstats
path: root/apis
diff options
context:
space:
mode:
authorSimon Rettberg2015-01-20 18:07:24 +0100
committerSimon Rettberg2015-01-20 18:07:24 +0100
commit1ff2bc4f3c694b7c76df8e57056c51ca39a23a34 (patch)
tree0eb19164af66b3d4e8bf639a710f323b631d23ee /apis
parentRework config module class structure. Still some TODOs though.... (diff)
downloadslx-admin-1ff2bc4f3c694b7c76df8e57056c51ca39a23a34.tar.gz
slx-admin-1ff2bc4f3c694b7c76df8e57056c51ca39a23a34.tar.xz
slx-admin-1ff2bc4f3c694b7c76df8e57056c51ca39a23a34.zip
config module structure completed. Many other fixes. Hidden pw field support.
Diffstat (limited to 'apis')
-rw-r--r--apis/cb.inc.php3
-rw-r--r--apis/update.inc.php19
2 files changed, 19 insertions, 3 deletions
diff --git a/apis/cb.inc.php b/apis/cb.inc.php
new file mode 100644
index 00000000..da5d8756
--- /dev/null
+++ b/apis/cb.inc.php
@@ -0,0 +1,3 @@
+<?php
+
+Trigger::checkCallbacks();
diff --git a/apis/update.inc.php b/apis/update.inc.php
index 878dc47f..d478c14a 100644
--- a/apis/update.inc.php
+++ b/apis/update.inc.php
@@ -188,13 +188,26 @@ function update_6()
// #######################
// ##### 2014-12-12
-// Rename config modules, add "has changed" column to modules
+// Rename config modules
function update_7()
{
- if (!tableHasColumn('configtgz_module', 'haschanged'))
- Database::exec("ALTER TABLE configtgz_module ADD `haschanged` TINYINT DEFAULT '0'");
Database::exec("UPDATE configtgz_module SET moduletype = 'Branding' WHERE moduletype = 'BRANDING'");
Database::exec("UPDATE configtgz_module SET moduletype = 'AdAuth' WHERE moduletype = 'AD_AUTH'");
Database::exec("UPDATE configtgz_module SET moduletype = 'CustomModule' WHERE moduletype = 'custom'");
return true;
}
+
+// #######################
+// ##### 2015-01-16
+// Extend config module db table, add argument feature to callbacks
+function update_8()
+{
+ tableDropColumn('configtgz_module', 'haschanged');
+ if (!tableHasColumn('configtgz_module', 'version'))
+ Database::exec("ALTER TABLE `configtgz_module` ADD `version` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0'");
+ if (!tableHasColumn('configtgz_module', 'status'))
+ Database::exec("ADD `status` ENUM( 'OK', 'MISSING', 'OUTDATED' ) NOT NULL DEFAULT 'MISSING'");
+ if (!tableHasColumn('callback', 'args'))
+ Database::exec("ALTER TABLE `callback` ADD `args` TEXT NOT NULL DEFAULT ''");
+ return true;
+}