Example #1
0
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;
}
Example #2
0
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;
}
Example #3
0
function string_check($value)
{
    return COM_string_decode($value);
}
Example #4
0
function COM_input_edit($fldname, $length = -1)
{
    return COM_string_decode($_POST[$fldname], $length);
}
Example #5
0
function string_check($value)
{
    return COM_string_decode($value);
    //remove dis-allowed chars
}