Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef CBOOK
- #define CBOOK
- #define CBOOK_CONFFILE "cbook.conf"
- #define DQUERY_STATE_KEY 0
- #define DQUERY_STATE_VALUE 1
- #define DURI_STATE_WAIT 0
- #define DURI_STATE_FIRST 1
- #define DURI_STATE_SECOND 2
- #include <stdio.h>
- #include <stdlib.h>
- #include <stdarg.h>
- #include <string.h>
- #include <ctype.h>
- #include <confuse.h>
- #include <glib.h>
- #include <my_global.h>
- #include <mysql.h>
- struct {
- char *mysqlHostname;
- char *mysqlUsername;
- char *mysqlPassword;
- char *mysqlDatabase;
- char *siteName;
- } config;
- MYSQL *mysql;
- GHashTable *queryHash;
- char *rasprintf(const char *f, ...);
- char *htmlEscape(char *s);
- void printHtml(char *s);
- void parseConf();
- void myerror();
- char *myescape(char *q);
- void fail(const char *s);
- void myquery(const char *f, ...);
- void createDatabase();
- void pageHeader(char *title);
- void pageFooter();
- void pageHome();
- void pageSessions();
- void parseQueryString();
- void printQueryHash();
- void printQueryHashHelper(gpointer key, gpointer value, gpointer user);
- char *urlDecode(char *s);
- static const char *constDays[] = { "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement