function update_activity(&$state, &$response) { global $_DB; $activity = COM_string_decode($_GET["act"], -1); $sql = "UPDATE " . $_DB->prefix . "b02_activity SET description=:desc\n\t\t\tWHERE activity_id=" . $_GET["actupd"] . ";"; $stmt = $_DB->prepare($sql); $stmt->bindValue(':desc', $activity, PDO::PARAM_STR); $stmt->execute(); $response = "."; //tell server_call we're done return true; }
function update_comment(&$state, &$response) { global $_DB; log_list($state, $state->row); //find this row's records $record = reset($state->records); if ($record["column"] >= $state->columns[COL_OPEN]) { $sql = "UPDATE " . $_DB->prefix . "b10_eventlog\n\t\t\t\tSET comments='" . COM_string_decode($_GET["com"], -1) . "' WHERE eventlog_id=" . $record['ID'] . ";"; $_DB->exec($sql); } $response = "."; //tell server_call we're done return true; }
function string_check($value) { return COM_string_decode($value); }
function COM_input_edit($fldname, $length = -1) { return COM_string_decode($_POST[$fldname], $length); }
function string_check($value) { return COM_string_decode($value); //remove dis-allowed chars }