aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/functions.inc.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index 7eee41d57..18bad9d0e 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -1060,6 +1060,24 @@ SELECT param, value
}
}
+function conf_update_param($param, $value)
+{
+ $query = '
+DELETE
+ FROM '.CONFIG_TABLE.'
+ WHERE param = "'.$param.'"
+;';
+ pwg_query($query);
+
+ $query = '
+INSERT
+ INTO '.CONFIG_TABLE.'
+ SET param = "'.$param.'"
+ , value = "'.$value.'"
+;';
+ pwg_query($query);
+}
+
/**
* Prepends and appends a string at each value of the given array.
*