www/url_handlers.c: Do some re-indentation

In admin_pending_activations() re-indent some split lines using vim's
default indentation levels.

Signed-off-by: Andrew Clayton <andrew@opentechlabs.co.uk>
www/url_helpers.[ch]: Coding style fix's

Re-indent function parameter lists that are split across multiple lines.

Signed-off-by: Andrew Clayton <andrew@opentechlabs.co.uk>
www: Allow to renew and delete pending account activations

Allow to renew or delete pending account activations from
/admin/pending_activations/

Renewing sets the activation expiry to be KEY_EXP seconds into the
future.

Deteting removes the pending activation _and_ the account from the
passwd table.

Signed-off-by: Andrew Clayton <andrew@opentechlabs.co.uk>
www/url_handlers.c: Simply csrf check in admin_add_user()

Simplify the logic to check for a POST request and a valid csrf token in
admin_add_user()

The checks can be done in a single if ()

Signed-off-by: Andrew Clayton <andrew@opentechlabs.co.uk>
www/url_handlers.c: Re-work IS_POST() & csrf logic in prefs_fmap()

Tidy up the logic to check for a POST request and valid csrf token or a
GET request.

If we get a POST request but no valid csrf token, we just fall through
and treat it like a GET.

Signed-off-by: Andrew Clayton <andrew@opentechlabs.co.uk>
www/url_handlers.c: Re-work IS_POST() & csrf logic in admin_edit_user()

Tidy up the logic to check for a POST request and valid csrf token or a
GET request.

If we get a POST request but no valid csrf token, we just fall through
and treat it like a GET.

Signed-off-by: Andrew Clayton <andrew@opentechlabs.co.uk>
www/url_handlers.c: Re-work IS_POST() & csrf logic in prefs_edit_user()

Tidy up the logic to check for a POST request and valid csrf token or a
GET request.

If we get a POST request but no valid csrf token, we just fall through
and treat it like a GET.

Signed-off-by: Andrew Clayton <andrew@opentechlabs.co.uk>
www/url_handlers.c: Re-work the csrf check in process_receipt_approval()

Combine the IS_POST and valid csrf checks into a single if () statement.

Signed-off-by: Andrew Clayton <andrew@opentechlabs.co.uk>