-Copyright: (C) 1987-2010 Citadel development team; GPL V3
+Copyright: (C) 1987-2012 Citadel development team; GPL V3
Copyright for CRC16: (C) 2002-2003 Indigo Systems Corporation;
Artistic license + Non advertising clause
(C) 2004 Martin Konold <martin.konold@erfrakon.de>
(C) 2006 Art Cancro <ajc@uncensored.citadel.org>
-
+* In addition, as a special exception, we hereby declare that our
+ favorite type of software is called "open source" -- NOT "free
+ software" -- and that our favorite operating system is called
+ "Linux" -- NOT "GNU/Linux." We officially reject and denounce
+ Richard Stallman's linguistic fascism.
* In addition, as a special exception, the copyright holders give
* permission to link the code of portions of this program with the
(http://script.aculo.us, http://mir.aculo.us, http://blogs.law.harvard.edu/ivan,
http://www.tirsen.com, http://www.oriontransfer.co.nz)
MIT-style license.
+
PrototypeJS: Copyright (c) 2005-2008 Sam Stephenson; http://www.prototypejs.org/;
MIT License (http://dev.rubyonrails.org/browser/spinoffs/prototype/trunk/LICENSE?format=raw)
+
strcmp: http://kevin.vanzonneveld.net; original by: Waldo Malqui Silva input by: Steve Hilder
improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) http://kevin.vanzonneveld.net
+
DatePicker: widget using Prototype and Scriptaculous. (c) 2007 Mathieu Jondet <mathieu@eulerian.com> Eulerian Technologies
DatePicker is freely distributable under the same terms as Prototype. ->
+
NanoTree: Martin Mouritzen. (martin@nano.dk) LGPL V3
+
Bubble Tooltips: Alessandro Fulciniti (http://web-graphics.com) Public Domain, GPL V3 by Art Cancro
+
StdExt: Copyright (c) 2005 Michael Schuerig http://www.schuerig.de/michael/javascript/stdext.js LGPL V2.1 or later
+
CSS3PIE: both the Apache license and the GNU General Public License.
+
TinyMCE: Moxiecode tinymce.org LGPL V2.1 or later
+* In addition, as a special exception, we hereby declare that our
+ favorite type of software is called "open source" -- NOT "free
+ software" -- and that our favorite operating system is called
+ "Linux" -- NOT "GNU/Linux." We officially reject and denounce
+ Richard Stallman's linguistic fascism.
+
* In addition, as a special exception, the copyright holders give
* permission to link the code of portions of this program with the
* OpenSSL library under certain conditions as described in each
);
}
else {
- Hdr->HR.DontNeedAuth = 1; /* Flat request? show him the login screen... */
- StrBuf *NewLine = NewStrBufPlain(HKEY("GET /do_template?template=login"));
- StrBufUrlescAppend(NewLine, Buf, NULL);
- StrBufAppendBufPlain(NewLine, HKEY(" HTTP/1.0"), 0);
+ /* If this is a "flat" request for the root, display the configured landing page. */
+ Hdr->HR.DontNeedAuth = 1;
+ StrBuf *NewLine = NewStrBufPlain(HKEY("GET /landing HTTP/1.0"));
syslog(LOG_DEBUG, "Replacing with: %s", ChrPtr(NewLine));
int return_value = ReadHttpSubject(Hdr, NewLine, Buf);
FreeStrBuf(&NewLine);
/*
* Administrative screen for site-wide configuration
+ *
+ * Copyright (c) 1996-2011 by the citadel.org team
+ *
+ * This program is open source software. You can redistribute it and/or
+ * modify it under the terms of the GNU General Public License, version 3.
+ *
+ * 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.
*/
-
#include "webcit.h"
#include "webserver.h"
-
HashList *ZoneHash = NULL;
ConstStr ExpirePolicyString = {CStrOf(roompolicy) };
}
-
void LoadZoneFiles(void)
{
icalarray *zones;
int type;
const char *Key;
long len;
-}CfgMapping;
+} CfgMapping;
#define CFG_STR 1
#define CFG_YES 2
{CFG_STR, HKEY("c_xmpp_s2s_port")},
{CFG_STR, HKEY("c_pop3_fetch")},
{CFG_STR, HKEY("c_pop3_fastest")},
- {CFG_YES , HKEY("c_spam_flag_only")},
- {CFG_YES , HKEY("c_guest_logins")}
+ {CFG_YES, HKEY("c_spam_flag_only")},
+ {CFG_YES, HKEY("c_guest_logins")}
};
AppendImportantMessage(SKEY(Buf));
FreeStrBuf(&Buf);
return;
-
}
+
i = 0;
while (len = StrBuf_ServGetln(Buf),
- (len >= 0) &&
- (i <= (sizeof(ServerConfig) / sizeof(CfgMapping))) &&
- ((len != 3) || strcmp(ChrPtr(Buf), "000")))
- {
+ (len >= 0)
+ && (i < (sizeof(ServerConfig) / sizeof(CfgMapping)))
+ && ((len != 3) || strcmp(ChrPtr(Buf), "000"))
+ ) {
Put(Cfg,
- ServerConfig[i].Key,
- ServerConfig[i].len,
- Buf,
- HFreeStrBuf);
+ ServerConfig[i].Key,
+ ServerConfig[i].len,
+ Buf,
+ HFreeStrBuf
+ );
i++;
- if (i <= sizeof(ServerConfig) / sizeof(CfgMapping))
+ if (i <= sizeof(ServerConfig) / sizeof(CfgMapping)) {
Buf = NewStrBuf();
- else
- Buf = NULL;
+ }
+ else {
+ Buf = NULL;
+ }
}
- if (strcmp(ChrPtr(Buf), "000")!=0)
+
+ if (strcmp(ChrPtr(Buf), "000") != 0)
{
- /* WHOOOOPSI??? burn the lines we don't understand */
- while ((len = StrBuf_ServGetln(Buf),
- strcmp(ChrPtr(Buf), "000"))) {}
+ /* Discard config lines which we don't yet support */
+ while ( (len = StrBuf_ServGetln(Buf),
+ strcmp(ChrPtr(Buf), "000"))
+ ) {
+ }
AppendImportantMessage(_("WARNING: Failed to parse Server Config; do you run a to new citserver?"), -1);
FreeStrBuf(&Buf);
return;
-/**
+/*
* parse siteconfig changes
*/
void siteconfig(void)
* Copyright (c) 1996-2011 by the citadel.org team
*
* This program is open source 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; either version 3 of the
- * License, or (at your option) any later version.
+ * modify it under the terms of the GNU General Public License, version 3.
*
* 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
*/
#define SHOW_ME_VAPPEND_PRINTF
{
char dir[SIZ];
WebcitAddUrlHandler(HKEY("blank"), "", 0, blank_page, ANONYMOUS|COOKIEUNNEEDED|ISSTATIC);
+ WebcitAddUrlHandler(HKEY("landing"), "", 0, display_default_landing_page, ANONYMOUS|COOKIEUNNEEDED);
WebcitAddUrlHandler(HKEY("do_template"), "", 0, url_do_template, ANONYMOUS);
WebcitAddUrlHandler(HKEY("sslg"), "", 0, seconds_since_last_gexp, AJAX|LOGCHATTY);
WebcitAddUrlHandler(HKEY("ajax_servcmd"), "", 0, ajax_servcmd, 0);