summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-04-14 19:57:11 +0000
committerDries Buytaert <dries@buytaert.net>2005-04-14 19:57:11 +0000
commita392fc848e714985b273fb720711b427526ff910 (patch)
treefdf9de37c2f80d373d7f36b11b9ed73f05da2ac8
parent1c83d517410a013aba23bb44e4620cff7d9e9824 (diff)
downloadbrdo-a392fc848e714985b273fb720711b427526ff910.tar.gz
brdo-a392fc848e714985b273fb720711b427526ff910.tar.bz2
- Re-added update_sql() and moved it to the bottom.
-rw-r--r--database/updates.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/database/updates.inc b/database/updates.inc
index 4aed4ee69..fa6c26657 100644
--- a/database/updates.inc
+++ b/database/updates.inc
@@ -2405,4 +2405,15 @@ function update_132() {
return $ret;
}
+function update_sql($sql) {
+ $edit = $_POST["edit"];
+ $result = db_query($sql);
+ if ($result) {
+ return array('1', nl2br(htmlentities($sql)) ." ", "<div style=\"color: green;\">OK</div>\n");
+ }
+ else {
+ return array('0', nl2br(htmlentities($sql)) ." ", "<div style=\"color: red;\">FAILED</div>\n");
+ }
+}
+
?>