Пример #1
0
function action($www, $response)
{
    $www->query('message:edit', array('message_id' => post::hidden('id'), 'author' => post::text('author'), 'message' => post::textarea('message')));
    $response->location('/');
}
Пример #2
0
function action($www, $response)
{
    $www->query('message:create', array('author' => post::text('author'), 'message' => post::textarea('message'), 'ip' => $www->variable('user:ip')));
    $response->location('/');
}