Google
Web alhem.net
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

utils.h

Go to the documentation of this file.
00001 // utils.h 00002 /* 00003 Copyright (C) 2001-2004 Anders Hedstrom (grymse@alhem.net) 00004 00005 This program is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU General Public License 00007 as published by the Free Software Foundation; either version 2 00008 of the License, or (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software 00017 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 */ 00019 #ifndef _UTILS_H 00020 #define _UTILS_H 00021 00022 #include <stdlib.h> 00023 #include <mysql/mysql.h> 00024 #include <libmysqlwrapped.h> 00025 #include <libfd.h> 00026 #include <string> 00027 #include <libcgi++.h> 00028 00029 00030 void zap(char *,char); 00031 char *fget(char *,int,FILE *); 00032 char *datetime(void); 00033 char *expiredatetime(void); 00034 void textareain(char *); 00035 #ifndef WIN32 00036 void strlwr(char *); 00037 #endif 00038 void set_cookie(Cookies *cs,char *n,char *v); 00039 void set_cookie(Cookies *cs,char *n,long v); 00040 //void dbsafestr2(char *s); 00041 #ifndef WIN32 00042 void strupr(char *s); 00043 #endif 00044 void strupr(std::string&); 00045 int syscall(char *s); 00046 int name_ok(char *); 00047 void remove_br(char *s); 00048 //void nbprintf(char *format, ...); 00049 void pack_and_set_cookies(Cookies *); 00050 void unpack_cookie(Cookies *); 00051 00052 #endif // _UTILS_H

Generated on Thu Feb 10 22:42:34 2005 for Distributed URL Classification Tool by doxygen 1.3.7