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

dbd.h

Go to the documentation of this file.
00001 // dbd.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 #include <stdio.h> 00020 #include <string> 00021 #include <mysql/mysql.h> 00022 #include <libmysqlwrapped.h> 00023 #include <libfd.h> 00024 #include "ExecSocket.h" 00025 00026 extern FILE *out; 00027 extern ExecSocket *g_pSocket; 00028 extern char tmp_path[1000]; 00029 extern bool g_bSize; 00030 00031 00032 void post_form(Database& db,Query& q,char *sql,db::Item * = NULL); 00033 void search(Database&,Query&,char *,Form *,Cookies *); 00034 00035 void run(Database&,FILE *,const std::string& input_data = ""); 00036 00037 #ifdef WIN32 00038 #define _DOTPATH "c:\\program files\\att\\graphviz\\bin\\dot.exe" 00039 #endif 00040 00041 #define LIVEDB 00042 00043 #define TITLE "fd" 00044 #define APACHEDLPATH "/usr/local/apache/www.alhem.net/htdocs/download" 00045 00046 // ... 00047 00048 #ifdef WIN32 00049 #define COOKIE_DOMAIN "127.0.0.1" 00050 #define COOKIE_PATH "/" 00051 #else 00052 #define COOKIE_DOMAIN ".alhem.net" 00053 #define COOKIE_PATH "/cgi-bin/dbd" 00054 #endif 00055 00056 #define MYSQLADMIN "/usr/local/mysql/bin/mysqladmin --user=root" 00057 #define MYSQL_program "/usr/local/mysql/bin/mysql --user=root" 00058 #define MYSQLDUMP "/usr/local/mysql/bin/mysqldump --user=root" 00059 00060 #define APACHEPATH "/download" 00061 00062 #define UF_AUTOCREATENUM 1 00063 #define UF_SHOWLINKED 2 00064 00065 #define FF_ALLOWNULL 1 00066 #define FF_AUTO_INCREMENT 2 00067 #define FF_BINARY 4 00068 #define FF_UNSIGNED 8 00069 #define FF_ZEROFILL 16 00070 00071 // cookieflags 00072 00073 #define CF_EXPAND_DB 1 00074 #define CF_EXPAND_TBL 2 00075 #define CF_EXPAND_FLD 4 00076 #define CF_EXPAND_INDEX 8 00077 #define CF_EXPAND_APP 16 00078

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