Permalink
Browse files

*** empty log message ***

  • Loading branch information...
leo
leo committed Jun 28, 2002
1 parent 1901546 commit abafa2c5833e6bdc0b2615a02681f77dca26ebce
Showing with 1,878 additions and 6 deletions.
  1. +333 −0 license.txt
  2. +4 −4 run.sh
  3. +1 −1 src/apps/default/register.jsp
  4. +24 −0 src/org/snipsnap/app/Application.java
  5. +24 −0 src/org/snipsnap/config/CreateDB.java
  6. +24 −0 src/org/snipsnap/config/PostComment.java
  7. +24 −0 src/org/snipsnap/date/Month.java
  8. +24 −0 src/org/snipsnap/date/SDate.java
  9. +24 −0 src/org/snipsnap/exception/ChainedException.java
  10. +24 −0 src/org/snipsnap/exception/ExampleException.java
  11. +24 −0 src/org/snipsnap/jsp/SnipBean.java
  12. +28 −1 src/org/snipsnap/net/AppServer.java
  13. +24 −0 src/org/snipsnap/net/Layouter.java
  14. +24 −0 src/org/snipsnap/net/LoginServlet.java
  15. +24 −0 src/org/snipsnap/net/NewUserServlet.java
  16. +24 −0 src/org/snipsnap/net/SnipStoreServlet.java
  17. +24 −0 src/org/snipsnap/snip/Comments.java
  18. +24 −0 src/org/snipsnap/snip/HomePage.java
  19. +24 −0 src/org/snipsnap/snip/Snip.java
  20. +24 −0 src/org/snipsnap/snip/SnipSpace.java
  21. +24 −0 src/org/snipsnap/snip/filter/BoldFilter.java
  22. +24 −0 src/org/snipsnap/snip/filter/EscapeFilter.java
  23. +24 −0 src/org/snipsnap/snip/filter/Filter.java
  24. +24 −0 src/org/snipsnap/snip/filter/FilterPipe.java
  25. +24 −0 src/org/snipsnap/snip/filter/HeadingFilter.java
  26. +24 −0 src/org/snipsnap/snip/filter/ItalicFilter.java
  27. +24 −0 src/org/snipsnap/snip/filter/JavaCodeFilter.java
  28. +24 −0 src/org/snipsnap/snip/filter/KeyFilter.java
  29. +24 −0 src/org/snipsnap/snip/filter/LineFilter.java
  30. +24 −0 src/org/snipsnap/snip/filter/LinkTestFilter.java
  31. +24 −0 src/org/snipsnap/snip/filter/LinkTester.java
  32. +24 −0 src/org/snipsnap/snip/filter/ListFilter.java
  33. +24 −0 src/org/snipsnap/snip/filter/MarkFilter.java
  34. +24 −0 src/org/snipsnap/snip/filter/NewlineFilter.java
  35. +24 −0 src/org/snipsnap/snip/filter/ParagraphFilter.java
  36. +24 −0 src/org/snipsnap/snip/filter/SnipFormatter.java
  37. +24 −0 src/org/snipsnap/snip/filter/SqlCodeFilter.java
  38. +24 −0 src/org/snipsnap/snip/filter/UrlFilter.java
  39. +24 −0 src/org/snipsnap/snip/filter/XmlCodeFilter.java
  40. +24 −0 src/org/snipsnap/snip/filter/macro/AnnotationMacro.java
  41. +24 −0 src/org/snipsnap/snip/filter/macro/ApiMacro.java
  42. +24 −0 src/org/snipsnap/snip/filter/macro/CodeMacro.java
  43. +24 −0 src/org/snipsnap/snip/filter/macro/IsbnMacro.java
  44. +24 −0 src/org/snipsnap/snip/filter/macro/LinkMacro.java
  45. +24 −0 src/org/snipsnap/snip/filter/macro/Macro.java
  46. +24 −0 src/org/snipsnap/snip/filter/macro/MacroFilter.java
  47. +24 −0 src/org/snipsnap/snip/filter/macro/Preserved.java
  48. +24 −0 src/org/snipsnap/snip/filter/macro/TableMacro.java
  49. +24 −0 src/org/snipsnap/snip/filter/macro/UserSnipMacro.java
  50. +24 −0 src/org/snipsnap/snip/filter/macro/WeblogMacro.java
  51. +24 −0 src/org/snipsnap/snip/filter/regex/ActionMatch.java
  52. +24 −0 src/org/snipsnap/snip/filter/regex/ActionSubstitution.java
  53. +24 −0 src/org/snipsnap/snip/filter/regex/RegexFilter.java
  54. +24 −0 src/org/snipsnap/snip/filter/regex/RegexReplaceFilter.java
  55. +24 −0 src/org/snipsnap/snip/filter/regex/RegexTokenFilter.java
  56. +24 −0 src/org/snipsnap/test/AllTests.java
  57. +24 −0 src/org/snipsnap/test/filter/FilterTest.java
  58. +24 −0 src/org/snipsnap/test/snip/AllSnips.java
  59. +24 −0 src/org/snipsnap/test/snip/ChildrenTest.java
  60. +24 −0 src/org/snipsnap/test/snip/SnipSpaceTest.java
  61. +24 −0 src/org/snipsnap/test/snip/SnipTest.java
  62. +24 −0 src/org/snipsnap/user/User.java
  63. +24 −0 src/org/snipsnap/user/UserManager.java
  64. +24 −0 src/org/snipsnap/util/ConnectionManager.java
  65. +24 −0 src/org/snipsnap/util/Queue.java
  66. +24 −0 src/org/snipsnap/util/StringUtil.java
  67. +24 −0 src/org/snipsnap/util/Transliterate.java
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
8 run.sh
@@ -20,18 +20,18 @@ if [ ! -f $JAVA_HOME/lib/tools.jar ]; then
exit
fi
if [ ! -f $base/$jar/neotis.jar ]; then
echo "$jar/neotis.jar missing, please compile application first"
if [ ! -f $base/$jar/SnipSnap.jar ]; then
echo "$jar/SnipSnap.jar missing, please compile application first"
exit
fi
if [ ! -x $base/db/data ]; then
echo "No database found, creating one ..."
$JAVA_HOME/bin/java -cp lib/neotis.jar com.neotis.config.CreateDB
$JAVA_HOME/bin/java -cp lib/SnipSnap.jar com.neotis.config.CreateDB
fi
# put classpath together
CLASSPATH=lib/jakarta.jar:lib/javax.servlet.jar:lib/mckoidb.jar:lib/org.apache.jasper.jar:lib/org.mortbay.jetty.jar:$JAVA_HOME/lib/tools.jar
# execute application server
$JAVA_HOME/bin/java -cp $CLASSPATH:lib/neotis.jar com.neotis.net.AppServer
$JAVA_HOME/bin/java -cp $CLASSPATH:lib/SnipSnap.jar com.neotis.net.AppServer
@@ -17,7 +17,7 @@
<form method="POST" action="/exec/newuser">
<input name="referer" type="hidden" value="<%= request.getHeader("REFERER") %>">
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<table border="0" cellspacing="2" cellpadding="2">
<tr><td>User name: </td><td><input name="login" type="text" size="20" value="<%= login != null ? login : "" %>"></td></tr>
<tr><td>Email address: </td><td><input name="login" type="text" size="20" value="<%= email != null ? email : "" %>"></td></tr>
@@ -1,3 +1,27 @@
/*
* This file is part of "SnipSnap Wiki/Weblog".
*
* Copyright (c) 2002 Stephan J. Schmidt, Matthias L. Jugel
* All Rights Reserved.
*
* Please visit http://snipsnap.org/ for updates and contact.
*
* --LICENSE NOTICE--
* 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 2
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
* --LICENSE NOTICE--
*/
package com.neotis.app;
import com.neotis.user.User;
@@ -1,3 +1,27 @@
/*
* This file is part of "SnipSnap Wiki/Weblog".
*
* Copyright (c) 2002 Stephan J. Schmidt, Matthias L. Jugel
* All Rights Reserved.
*
* Please visit http://snipsnap.org/ for updates and contact.
*
* --LICENSE NOTICE--
* 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 2
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
* --LICENSE NOTICE--
*/
package com.neotis.config;
import com.neotis.app.Application;
@@ -1,3 +1,27 @@
/*
* This file is part of "SnipSnap Wiki/Weblog".
*
* Copyright (c) 2002 Stephan J. Schmidt, Matthias L. Jugel
* All Rights Reserved.
*
* Please visit http://snipsnap.org/ for updates and contact.
*
* --LICENSE NOTICE--
* 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 2
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
* --LICENSE NOTICE--
*/
package com.neotis.config;
import com.neotis.app.Application;
@@ -1,3 +1,27 @@
/*
* This file is part of "SnipSnap Wiki/Weblog".
*
* Copyright (c) 2002 Stephan J. Schmidt, Matthias L. Jugel
* All Rights Reserved.
*
* Please visit http://snipsnap.org/ for updates and contact.
*
* --LICENSE NOTICE--
* 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 2
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
* --LICENSE NOTICE--
*/
package com.neotis.date;
import java.util.Calendar;
@@ -1,3 +1,27 @@
/*
* This file is part of "SnipSnap Wiki/Weblog".
*
* Copyright (c) 2002 Stephan J. Schmidt, Matthias L. Jugel
* All Rights Reserved.
*
* Please visit http://snipsnap.org/ for updates and contact.
*
* --LICENSE NOTICE--
* 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 2
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
* --LICENSE NOTICE--
*/
package com.neotis.date;
import java.sql.Date;
@@ -1,3 +1,27 @@
/*
* This file is part of "SnipSnap Wiki/Weblog".
*
* Copyright (c) 2002 Stephan J. Schmidt, Matthias L. Jugel
* All Rights Reserved.
*
* Please visit http://snipsnap.org/ for updates and contact.
*
* --LICENSE NOTICE--
* 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 2
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
* --LICENSE NOTICE--
*/
package com.neotis.exception;
/**
@@ -1,3 +1,27 @@
/*
* This file is part of "SnipSnap Wiki/Weblog".
*
* Copyright (c) 2002 Stephan J. Schmidt, Matthias L. Jugel
* All Rights Reserved.
*
* Please visit http://snipsnap.org/ for updates and contact.
*
* --LICENSE NOTICE--
* 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 2
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
* --LICENSE NOTICE--
*/
package com.neotis.exception;
/**
@@ -1,3 +1,27 @@
/*
* This file is part of "SnipSnap Wiki/Weblog".
*
* Copyright (c) 2002 Stephan J. Schmidt, Matthias L. Jugel
* All Rights Reserved.
*
* Please visit http://snipsnap.org/ for updates and contact.
*
* --LICENSE NOTICE--
* 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 2
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
* --LICENSE NOTICE--
*/
package com.neotis.jsp;
import com.neotis.snip.Snip;
@@ -1,10 +1,36 @@
/*
* This file is part of "SnipSnap Wiki/Weblog".
*
* Copyright (c) 2002 Stephan J. Schmidt, Matthias L. Jugel
* All Rights Reserved.
*
* Please visit http://snipsnap.org/ for updates and contact.
*
* --LICENSE NOTICE--
* 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 2
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
* --LICENSE NOTICE--
*/
package com.neotis.net;
import org.mortbay.jetty.Server;
import org.mortbay.jetty.servlet.WebApplicationContext;
import org.mortbay.util.MultiException;
import org.mortbay.http.HttpContext;
import java.io.IOException;
import java.io.File;
/**
* Application Server
@@ -17,7 +43,7 @@
public static void main(String args[]) {
System.out.println("SnipSnap $Revision$");
System.out.println("Copyright (c) 2002 Stephan J. Schmidt, Matthias L. Jugel."
System.out.println("Copyright (c) 2002 Stephan J. Schmidt, Matthias L. Jugel. "
+"All Rights Reserved.");
System.out.println("See License Agreement for terms and conditions of use.");
startServer();
@@ -35,6 +61,7 @@ private static void startServer() {
try {
jettyServer = new Server("./conf/server.conf");
WebApplicationContext context = jettyServer.addWebApplication("/", "./app");
context.setAttribute("javax.servlet.context.tempdir", "./tmp/");
jettyServer.start();
} catch (MultiException e) {
System.err.println("AppServer: unable to start server: " + e);
@@ -1,3 +1,27 @@
/*
* This file is part of "SnipSnap Wiki/Weblog".
*
* Copyright (c) 2002 Stephan J. Schmidt, Matthias L. Jugel
* All Rights Reserved.
*
* Please visit http://snipsnap.org/ for updates and contact.
*
* --LICENSE NOTICE--
* 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 2
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
* --LICENSE NOTICE--
*/
package com.neotis.net;
import com.neotis.app.Application;
@@ -1,3 +1,27 @@
/*
* This file is part of "SnipSnap Wiki/Weblog".
*
* Copyright (c) 2002 Stephan J. Schmidt, Matthias L. Jugel
* All Rights Reserved.
*
* Please visit http://snipsnap.org/ for updates and contact.
*
* --LICENSE NOTICE--
* 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 2
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
* --LICENSE NOTICE--
*/
package com.neotis.net;
import com.neotis.app.Application;
@@ -1,3 +1,27 @@
/*
* This file is part of "SnipSnap Wiki/Weblog".
*
* Copyright (c) 2002 Stephan J. Schmidt, Matthias L. Jugel
* All Rights Reserved.
*
* Please visit http://snipsnap.org/ for updates and contact.
*
* --LICENSE NOTICE--
* 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 2
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
* --LICENSE NOTICE--
*/
package com.neotis.net;
import com.neotis.app.Application;
Oops, something went wrong.

0 comments on commit abafa2c

Please sign in to comment.