annotate src/global/web/Terms.java @ 3:1010f557927f

allow setting salt for backup file
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 25 Mar 2019 18:38:18 -0600
parents 7ecd1a4ef557
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
1
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
2 package global.web;
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
3
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
4 import fschmidt.util.servlet.JtpContext;
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
5 import global.HtmlGlobalUtils;
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
6
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
7 import javax.servlet.ServletException;
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
8 import javax.servlet.http.HttpServlet;
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
9 import javax.servlet.http.HttpServletRequest;
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
10 import javax.servlet.http.HttpServletResponse;
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
11 import java.io.IOException;
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
12 import java.io.PrintWriter;
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
13
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
14
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
15 public final class Terms extends HttpServlet {
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
16
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
17 public static String path(boolean back) {
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
18 return "/Terms.jtp";
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
19 }
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
20
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
21 protected void service(HttpServletRequest request,HttpServletResponse response)
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
22 throws ServletException, IOException
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
23 {
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
24 JtpContext jtpContext = (JtpContext)getServletContext().getAttribute(JtpContext.attrName);
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
25 jtpContext.setEtag(request,response);
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
26 PrintWriter out = response.getWriter();
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
27
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
28 out.print( "\r\n<!DOCTYPE html>\r\n<html lang=\"en\">\r\n <head>\r\n " );
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
29 HtmlGlobalUtils.head(request, response, "Terms of Use");
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
30 out.print( "\r\n <meta name=\"robots\" content=\"noindex,nofollow\"/>\r\n </head>\r\n <body lato>\r\n " );
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
31 HtmlGlobalUtils.header(request,response);
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
32 out.print( "\r\n <div content center paddingTop>\r\n <h1 oswald>Terms of Use</h1>\r\n\r\n <div class=\"terms\" style=\"margin: .83em 1em;text-align: justify\">\r\n <h2 oswald>This is a Contract and License</h2>\r\n <p class=\"first-para\">\r\n By using Nabble, you accept the terms of this license and contract between you and Nabble, LLC.\r\n This document was last updated on August 17, 2012.\r\n </p>\r\n\r\n <h2 oswald>Your Content in our Services</h2>\r\n <p class=\"first-para\">\r\n Nabble agrees that you retain ownership of any intellectual property rights that you hold in content that you submit to us.\r\n In short, what belongs to you stays yours.\r\n You are responsible for your content, and you may edit or delete your content.\r\n Nabble does not moderate sites and does not review, approve or endorse any content.\r\n </p>\r\n\r\n <p>\r\n When you upload or otherwise submit content to our servers, you give Nabble a worldwide license to use, host, store,\r\n reproduce, modify, communicate and publish such content. Your content can be public or private depending on the configuration\r\n of the subdomain where it was submitted. This configuration is controlled by other users who administer that subdomain, and they can freely make your\r\n content public or private at any time.\r\n Nabble does not make private content public. If you own a Nabble site (subdomain) and want to keep your content private, it will stay private.\r\n </p>\r\n\r\n <p>\r\n Since it is possible that a user may post offensive content or content that is harmful to minors,\r\n Nabble wants to make sure that you are aware that filtering software and services are available to prevent access to such content.\r\n This feature is available in Internet security software made by Symantec, Inc. and McAfee, Inc. as well as from major Internet Service Providers.\r\n In order to see a list of current vendors, please use an Internet search engine to search for \"parental control software\" or \"filtering software.\"\r\n </p>\r\n\r\n <h2 oswald>Privacy and Copyright Protection</h2>\r\n\r\n <p class=\"first-para\">\r\n Nabble’s <a href=\"/PrivacyPolicy.jtp\">privacy policy</a> explains how we treat your personal data and protect your privacy when you use our services.\r\n By using our services, you agree that Nabble can use such data in accordance with our privacy policy.\r\n </p>\r\n\r\n <p>\r\n Copyright owners who believe that a Nabble user has posted infringing content may provide notice in compliance with the requirements\r\n of the Digital Millennium Copyright Act to Weizhen Lin, 1568 Grackle Way, Sunnyvale CA 94087, Telephone:\r\n 408-464-4439, email " );
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
33 out.print( (encodeNabbleEmail("DMCA")) );
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
34 out.print( ".\r\n <b>There will be no response to communications that do not involve copyright infringement.</b>\r\n Communications related to privacy, violation of our Terms of Use or other abuse must be submitted by email to\r\n " );
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
35 out.print( (encodeNabbleEmail("abuse")) );
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
36 out.print( ".\r\n </p>\r\n\r\n <h2 oswald>Deletion of Content/Termination of Account</h2>\r\n <p class=\"first-para\">Nabble reserves the right to delete or block access to any content that you post if Nabble determines that your content is inappropriate for any reason, including Nabble's determination that the content infringes on another's intellectual property rights. Nabble provides the following examples of inappropriate content as a guideline, but this list is not all inclusive and it is subject to change:</p>\r\n\r\n <ul>\r\n <li>Content that violates the laws of California or the United States;</li>\r\n <li>Content that infringes intellectual property rights;</li>\r\n <li>Content that violates the privacy rights of others;</li>\r\n <li>Mass advertising (e.g., spam);</li>\r\n <li>Viruses and the like;</li>\r\n <li>Statements intended to perpetrate a fraud; and,</li>\r\n <li>Illegal pornography.</li>\r\n </ul>\r\n\r\n <p>Posting of inappropriate content may lead to the termination of your account. Repeated copyright infringement will lead to the termination of your account.</p>\r\n\r\n <p>Nabble reserves the right to delete accounts that it determines are inactive without notice.</p>\r\n\r\n <h2 oswald>Limited Warranty and Disclaimer of Warranties.</h2>\r\n <p class=\"first-para\">NABBLE MAKES NO EXPRESS, IMPLIED OR STATUTORY WARRANTIES, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, OR ARISING FROM A COURSE OF DEALING, TRADE USAGE OR TRADE PRACTICE.</p>\r\n\r\n <h2 oswald>Limitation of Liability</h2>\r\n <p class=\"first-para\">In no event will Nabble be liable for any lost revenue, profit or data, or for special, indirect, consequential, incidental, or punitive damages however caused and regardless of the theory of liability arising out of the use of or inability to use Nabble or arising out of any content posted on Nabble even if Nabble has been advised of the possibility of such damages.</p>\r\n\r\n <h2 oswald>Trademarks/Service Marks</h2>\r\n <p class=\"first-para\">Nabble is a service mark of Nabble, LLC. Nothing contained on this Web site should be construed as granting any license or right to use any Nabble trademark or service mark without the express written permission of Nabble, LLC.</p>\r\n\r\n <h2 oswald>Choice of Law and Forum</h2>\r\n <p class=\"first-para\">Any action related to this Agreement will be governed by California law and controlling U.S. federal law. Any legal action brought concerning this Agreement or any dispute hereunder shall be brought only in the courts of the State of California, in the City and County of San Francisco or in the federal courts located in such state and county. Both parties submit to venue and jurisdiction in these courts.</p>\r\n\r\n <h2 oswald>Entire Agreement: Severability</h2>\r\n <p class=\"first-para\">These Terms of Use constitute the entire agreement with respect to your access to and use of this Web site. If any provision of these Terms and Conditions is unlawful, void or unenforceable, then that provision shall be deemed severable from the remaining provisions and shall not affect their validity and enforceability.</p>\r\n\r\n <h2 oswald>Changes to Terms of Use</h2>\r\n <p class=\"first-para\">This Web site and these Terms of Use may be changed by Nabble with or without notice. Please review this page regularly for changes. Continued use of this Web site following any change constitutes your acceptance of the change.</p>\r\n\r\n <p><strong>BY USING NABBLE, YOU ACCEPT OUR TERMS OF USE. IF YOU DO NOT AGREE, THEN DO NOT USE NABBLE.</strong></p>\r\n </div>\r\n </div>\r\n " );
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
37 HtmlGlobalUtils.footer(request,response);
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
38 out.print( "\r\n </body>\r\n</html>\r\n" );
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
39
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
40 }
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
41
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
42 private static String encodeNabbleEmail(String alias) {
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
43 return alias + "<span class=\"invisible\">[please remove </span><span class=\"invisible\">this part]</span>&#64;nabble&#46;com";
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
44 }
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
45 }
7ecd1a4ef557 add content
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
46