X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/5e34540b562f91c7b383a307c32e1a159266dd11..5b14453f9fc5ae923c613e2154ede85637462469:/server/cgi.c diff --git a/server/cgi.c b/server/cgi.c index 5e475ed..5abf145 100644 --- a/server/cgi.c +++ b/server/cgi.c @@ -1,6 +1,6 @@ /* * This file is part of DisOrder. - * Copyright (C) 2004, 2005, 2006 Richard Kettlewell + * Copyright (C) 2004, 2005, 2006, 2008 Richard Kettlewell * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -603,6 +603,11 @@ const char *cgi_label(const char *key) { return label; } +int cgi_label_exists(const char *key) { + read_options(); + return kvp_get(labels, key) ? 1 : 0; +} + char **cgi_columns(const char *name, int *ncolumns) { struct column *c;