"Cache-Control: no-store\r\n"
"Expires: -1\r\n"
,
- SERVER);
+ PACKAGE_STRING);
begin_burst();
wprintf("<ul>");
dnl Process this file with autoconf to produce a configure script.
dnl $Id$
-AC_INIT(webserver.c)
-
-
-PACKAGE=webcit
-VERSION=7.22
-AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [our package name])
-AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [our package version])
-AC_SUBST(PACKAGE)
-AC_SUBST(VERSION)
+AC_INIT([WebCit], [7.22], [http://www.citadel.org/])
AC_SUBST(PROG_SUBDIRS)
AC_DEFINE(PROG_SUBDIRS, [], [Program dirs])
wprintf(
"Server: %s / %s\r\n"
"Connection: close\r\n",
- SERVER, serv_info.serv_software
+ PACKAGE_STRING, serv_info.serv_software
);
}
wprintf("Content-type: text/html\r\n"
"Server: %s\r\n"
"Connection: close\r\n",
- SERVER);
+ PACKAGE_STRING);
begin_burst();
wprintf("\r\n\r\n<html>\n"
wprintf("Content-type: text/plain\r\n"
"Server: %s\r\n"
"Connection: close\r\n",
- SERVER);
+ PACKAGE_STRING);
begin_burst();
serv_printf("MSG2 %ld|3", msgnum);
/** RFC2045 requires this, and some clients look for it... */
serv_puts("MIME-Version: 1.0");
- serv_puts("X-Mailer: " SERVER);
+ serv_puts("X-Mailer: " PACKAGE_STRING);
/** If there are attachments, we have to do multipart/mixed */
if (WC->first_attachment != NULL) {
wprintf("Last-Modified: %s\r\n", date);
/* if (*msgn) wprintf("ETag: %s\r\n\r\n", msgn); */
wprintf("Content-Type: application/rss+xml\r\n");
- wprintf("$erver: %s\r\n", SERVER);
+ wprintf("$erver: %s\r\n", PACKAGE_STRING);
wprintf("Connection: close\r\n");
wprintf("\r\n");
if (!strcasecmp(request_method, "HEAD"))
if (now) {
wprintf(" <pubDate>%s</pubDate>\n", date);
}
- wprintf(" <generator>%s</generator>\n", SERVER);
+ wprintf(" <generator>%s</generator>\n", PACKAGE_STRING);
wprintf(" <docs>http://blogs.law.harvard.edu/tech/rss</docs>\n");
wprintf(" <ttl>30</ttl>\n");
_("You are connected to %s, running %s with %s, and located in %s. Your system administrator is %s."),
serv_info.serv_humannode,
serv_info.serv_software,
- SERVER,
+ PACKAGE_STRING,
serv_info.serv_bbs_city,
serv_info.serv_sysadm);
escputs(message);
wprintf("Content-type: text/html; charset=utf-8\r\n"
"Server: %s / %s\n"
"Connection: close\r\n",
- SERVER, serv_info.serv_software
+ PACKAGE_STRING, serv_info.serv_software
);
}
"Server: %s\r\n"
"Connection: close\r\n",
content_type,
- SERVER);
+ PACKAGE_STRING);
#ifdef HAVE_ZLIB
/** If we can send the data out compressed, please do so. */
"Cache-Control: no-cache\r\n"
"Expires: -1\r\n"
,
- SERVER);
+ PACKAGE_STRING);
begin_burst();
}
#endif
-#ifdef WEBCIT_WITH_CALENDAR_SERVICE
/* Work around PACKAGE/VERSION defs that are (not supposed to be?) in ical.h */
#ifdef PACKAGE
# define CTDL_PACKAGE PACKAGE
# undef PACKAGE
#endif
+
+#ifdef PACKAGE_STRING
+# define CTDL_PACKAGE_STRING PACKAGE_STRING
+//# undef PACKAGE_STRING
+#endif
+
#ifdef VERSION
# define CTDL_VERSION VERSION
# undef VERSION
#endif
+
#include <ical.h>
-#ifdef CTDL_PACKAGE
-# ifdef PACKAGE
-# undef PACKAGE
-# endif
-# define PACKAGE CTDL_PACKAGE
-# undef CTDL_PACKAGE
-#endif
-#ifdef CTDL_VERSION
-# ifdef VERSION
-# undef VERSION
-# endif
-# define VERSION CTDL_VERSION
-# undef CTDL_VERSION
-#endif
-#endif
+
+#undef PACKAGE
+#undef VERSION
+#undef PACKAGE_NAME
+#undef PACKAGE_STRING
+#undef PACKAGE_TARNAME
+#undef PACKAGE_VERSION
+#undef PACKAGE_BUGREPORT
+#include "sysdep.h"
#define SLEEPING 180 /* TCP connection timeout */
#define WEBCIT_TIMEOUT 900 /* WebCit session timeout */
#define PORT_NUM 2000 /* port number to listen on */
-#define SERVER "WebCit v7.22" /* who's in da house */
#define DEVELOPER_ID 0
#define CLIENT_ID 4
#define CLIENT_VERSION 722 /* This version of WebCit */
}
/** Tell 'em who's in da house */
- lprintf(1, SERVER "\n");
+ lprintf(1, PACKAGE_STRING "\n");
lprintf(1, "Copyright (C) 1996-2007 by the Citadel development team.\n"
"This software is distributed under the terms of the "
"GNU General Public License.\n\n"