Commit a392fc84 authored by Dries's avatar Dries
Browse files

- Re-added update_sql() and moved it to the bottom.

parent 1c83d517
...@@ -2405,4 +2405,15 @@ function update_132() { ...@@ -2405,4 +2405,15 @@ function update_132() {
return $ret; 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");
}
}
?> ?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment