diff options
Diffstat (limited to 'lurker/render/parse.h')
-rw-r--r-- | lurker/render/parse.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/lurker/render/parse.h b/lurker/render/parse.h new file mode 100644 index 0000000..0189a6a --- /dev/null +++ b/lurker/render/parse.h @@ -0,0 +1,41 @@ +/* $Id: parse.h 1649 2009-10-19 14:35:01Z terpstra $ + * + * parse.h - Deal with CGI ugliness + * + * Copyright (C) 2002 - Wesley W. Terpstra + * + * License: GPL + * + * Authors: 'Wesley W. Terpstra' <wesley@terpstra.ca> + * + * 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 + * the Free Software Foundation; version 2.1. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#ifndef PARSE_H +#define PARSE_H + +#include <string> +#include <map> + +using namespace std; + +string decipherHalf(const string& str); + +map<string, string> getParams(); +map<string, string> getCookies(); + +string uriEncode(const string& str); +int redirectUrl(const string& url); + +#endif |