No more robots.txt, we now welcome spiders
authorArt Cancro <ajc@citadel.org>
Tue, 14 Sep 2010 22:15:39 +0000 (18:15 -0400)
committerArt Cancro <ajc@citadel.org>
Tue, 14 Sep 2010 22:15:39 +0000 (18:15 -0400)
webcit/html2html.c
webcit/roomviews.c
webcit/static.c
webcit/static/robots.txt [deleted file]
webcit/webcit.c
webcit/webserver.c

index a7bb2eb5af5e3c37e7058e5e8673a7a5dcdaefa9..aff7eec7b8849c6bc67c9f7a803afeeff37320c4 100644 (file)
@@ -16,6 +16,7 @@
  *
  * 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
  */
 
 #include "webcit.h"
index 6585835c95af3a67a9d88ba06a4a94963cef983a..45e2ead95ea3064b93ca1f10f1b81b4159e70217 100644 (file)
@@ -1,5 +1,21 @@
 /*
  * Lots of different room-related operations.
+ *
+ * Copyright (c) 1996-2010 by the citadel.org team
+ *
+ * This program is free 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.
+ *
+ * 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
  */
 
 #include "webcit.h"
@@ -17,24 +33,25 @@ ROOM_VIEWS exchangeable_views[VIEW_MAX][VIEW_MAX] = {       /* the different kinds of
 {VIEW_MAX, VIEW_MAX, VIEW_MAX, VIEW_MAX, VIEW_MAX, VIEW_MAX, VIEW_WIKI, VIEW_MAX, VIEW_MAX, VIEW_MAX}, 
 {VIEW_MAX, VIEW_MAX, VIEW_MAX, VIEW_CALENDAR, VIEW_MAX, VIEW_MAX, VIEW_MAX, VIEW_MAX/*VIEW_CALBRIEF*/, VIEW_MAX, VIEW_MAX},
 {VIEW_MAX, VIEW_MAX, VIEW_MAX, VIEW_MAX, VIEW_MAX, VIEW_MAX, VIEW_MAX, VIEW_MAX, VIEW_JOURNAL, VIEW_MAX }, 
+{VIEW_MAX, VIEW_MAX, VIEW_MAX, VIEW_MAX, VIEW_MAX, VIEW_MAX, VIEW_MAX, VIEW_MAX, VIEW_DRAFTS, VIEW_MAX }, 
 {VIEW_MAX, VIEW_MAX, VIEW_MAX, VIEW_MAX, VIEW_MAX, VIEW_MAX, VIEW_MAX, VIEW_MAX, VIEW_MAX, VIEW_BLOG }, 
        };
 /* the brief calendar view is disabled: VIEW_CALBRIEF */
 
 ROOM_VIEWS allowed_default_views[VIEW_MAX] = {
-       1, /* VIEW_BBS          Bulletin board view */
-       1, /* VIEW_MAILBOX              Mailbox summary */
-       1, /* VIEW_ADDRESSBOOK  Address book view */
-       1, /* VIEW_CALENDAR             Calendar view */
-       1, /* VIEW_TASKS                Tasks view */
-       1, /* VIEW_NOTES                Notes view */
-       1, /* VIEW_WIKI         Wiki view */
-       0, /* VIEW_CALBRIEF             Brief Calendar view */
-       0, /* VIEW_JOURNAL              Journal view */
-       0  /* VIEW_BLOG         Blog view (not yet implemented) */
+       1, /* VIEW_BBS                  Bulletin board                  */
+       1, /* VIEW_MAILBOX              Mailbox summary                 */
+       1, /* VIEW_ADDRESSBOOK          Address book                    */
+       1, /* VIEW_CALENDAR             Calendar by month or day        */
+       1, /* VIEW_TASKS                Task list                       */
+       1, /* VIEW_NOTES                Sticky notes                    */
+       1, /* VIEW_WIKI                 Wiki                            */
+       0, /* VIEW_CALBRIEF             Calendar list of events         */
+       0, /* VIEW_JOURNAL              Journal                         */
+       0, /* VIEW_DRAFTS               Drafts                          */
+       1  /* VIEW_BLOG                 Blog                            */
 };
 
-
 /*
  * Initialize the viewdefs with localized strings
  */
@@ -48,6 +65,7 @@ void initialize_viewdefs(void) {
        viewdefs[VIEW_WIKI] = _("Wiki");
        viewdefs[VIEW_CALBRIEF] = _("Calendar List");
        viewdefs[VIEW_JOURNAL] = _("Journal");
+       viewdefs[VIEW_DRAFTS] = _("Drafts");
        viewdefs[VIEW_BLOG] = _("Blog");
 }
 
@@ -260,7 +278,4 @@ InitModule_ROOMVIEWS
        RegisterNamespace("ROOM:INFO:VIEW", 0, 1, tmplput_ROOM_VIEW, NULL, CTX_ROOMS);
 
        RegisterNamespace("ROOM:INFO:COLLECTIONTYPE", 0, 1, tmplput_ROOM_COLLECTIONTYPE, NULL, CTX_ROOMS);
-
-
-
 }
index 46770bf1220de5bec6d05e2d02b291bc66262715..1a83993d1d44c51d84d826241d2846b988550e35 100644 (file)
@@ -300,7 +300,6 @@ InitModule_STATIC
        LoadStaticDir(static_dirs[2], StaticFilemappings[2], "");
        LoadStaticDir(static_dirs[3], StaticFilemappings[3], "");
 
-       WebcitAddUrlHandler(HKEY("robots.txt"), "", 0, output_flat_static, ANONYMOUS|COOKIEUNNEEDED|ISSTATIC|LOGCHATTY);
        WebcitAddUrlHandler(HKEY("favicon.ico"), "", 0, output_flat_static, ANONYMOUS|COOKIEUNNEEDED|ISSTATIC|LOGCHATTY);
        WebcitAddUrlHandler(HKEY("static"), "", 0, output_static_0, ANONYMOUS|COOKIEUNNEEDED|ISSTATIC|LOGCHATTY);
        WebcitAddUrlHandler(HKEY("static.local"), "", 0, output_static_1, ANONYMOUS|COOKIEUNNEEDED|ISSTATIC|LOGCHATTY);
diff --git a/webcit/static/robots.txt b/webcit/static/robots.txt
deleted file mode 100644 (file)
index 8fe8379..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-# WebCit deals exclusively in dynamic content and cannot be spidered.  Go away.
-User-agent: *
-Disallow: /
index 507f6a36537c45dd254735d6e198fc9421064580..16c533b973d238b2872f5903d84f10225e595cb4 100644 (file)
@@ -2,7 +2,24 @@
  * This is the main transaction loop of the web service.  It maintains a
  * persistent session to the Citadel server, handling HTTP WebCit requests as
  * they arrive and presenting a user interface.
+ *
+ * Copyright (c) 1996-2010 by the citadel.org team
+ *
+ * This program is free 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.
+ *
+ * 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
 #include <stdio.h>
 #include <stdarg.h>
index 87b83afad5b71d5a5e9987f265e28c6e47d3fb01..0fcb030f5ba24b07885939c46ab2917216c4186d 100644 (file)
@@ -4,8 +4,20 @@
  * connection is established, it calls context_loop() from context_loop.c.
  *
  * Copyright (c) 1996-2010 by the citadel.org developers.
- * This program is released under the terms of the GNU General Public License v3.
  *
+ * This program is free 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.
+ *
+ * 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
  */
 
 #include "webcit.h"