+sub postsmsupdate : Local {
+ my ( $self, $c ) = @_;
+ my $dbh = $c->model;
+
+ my $callme = $c->req->param('callme') || 0;
+ my $sms = html_escape $c->req->param('sms');
+ my $smsnote = $c->req->param('smsnote');
+ $dbh->do(q{
+UPDATE users SET sms = $1, call_if_needed = $2, sms_note = $3 WHERE uid = $4
+ },undef, $sms, $callme, $smsnote, $c->user->id);
+
+ $c->res->redirect($c->uri_for(''));
+}
+