Store static portal files in repo and install with Makefile
authorClinton Ebadi <clinton@unknownlamer.org>
Tue, 25 Feb 2014 10:20:24 +0000 (05:20 -0500)
committerClinton Ebadi <clinton@unknownlamer.org>
Tue, 25 Feb 2014 10:20:24 +0000 (05:20 -0500)
Makefile
app/app.sml
etc/tos.agree.html [new file with mode: 0644]
etc/tos.agree.minor.html [new file with mode: 0644]
etc/tos.body.html [new file with mode: 0644]

index df903ac..305103a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 include Makefile.common
 
-all: install-scripts header.mlt footer.mlt
+all: install-scripts install-static header.mlt footer.mlt
 
 clean:
        rm header.mlt
@@ -19,3 +19,6 @@ install-scripts: scripts/*
        install -m 750 -o hcoop scripts/hcoop_header $(prefix)/bin
        install -m 750 -o hcoop scripts/hcoop_footer $(prefix)/bin
        install -m 750 -o hcoop scripts/hcoop_html $(prefix)/bin
+
+install-static: etc/*
+       install -m 650 -o hcoop etc/tos.*.html $(prefix)/etc/static
index 28d88dd..52b9877 100644 (file)
@@ -46,9 +46,9 @@ fun readFile fname =
        before TextIO.closeIn inf
     end
 
-fun readTosBody () = readFile "/home/hcoop/public_html/tos.body.html"
-fun readTosAgree () = readFile "/home/hcoop/public_html/tos.agree.html"
-fun readTosMinorAgree () = readFile "/home/hcoop/public_html/tos.agree.minor.html"
+fun readTosBody () = readFile (Config.staticFilesRoot ^ "tos.body.html")
+fun readTosAgree () = readFile (Config.staticFilesRoot ^ "tos.agree.html")
+fun readTosMinorAgree () = readFile (Config.staticFilesRoot ^ "tos.agree.minor.html")
 
 fun sendMail (to, subj, intro, footer, id) =
     let
diff --git a/etc/tos.agree.html b/etc/tos.agree.html
new file mode 100644 (file)
index 0000000..dee2da8
--- /dev/null
@@ -0,0 +1 @@
+I agree to the terms outlined here, and I agree to accept any new conditions introduced by modifications to these terms if I do not ask the Provider to terminate my account within the one week notice period for changes. I certify that any personal information I have provided to the Provider is accurate, including that I am the person listed above as "real name" and that I am at least 18 years of age.
\ No newline at end of file
diff --git a/etc/tos.agree.minor.html b/etc/tos.agree.minor.html
new file mode 100644 (file)
index 0000000..e9ca7ad
--- /dev/null
@@ -0,0 +1 @@
+I agree to the terms outlined here, with a partial waiver to the "third parties" section allowing transferral of services to the the person given as "real name." I agree to accept any new conditions introduced by modifications to these terms if I or the person given as "real name" do not ask the Provider to terminate my account within the one week notice period for changes. I certify that any personal information I have provided to the Provider is accurate, including that I am the person listed as "legal guardian" above, that I am at least 18 years of age, and that I am the legal guardian of the person whose name is given as "real name."
\ No newline at end of file
diff --git a/etc/tos.body.html b/etc/tos.body.html
new file mode 100644 (file)
index 0000000..0a583eb
--- /dev/null
@@ -0,0 +1,37 @@
+<p>By accepting membership in HCOOP, Inc., you agree to the following terms of service:</p>
+
+<ol>
+       <li>The term <b>Provider</b> will be used to refer to HCOOP, Inc..</li>
+       <li><b>Members</b> will be taken to be the members of HCOOP, Inc., as defined in its bylaws.</li>
+       <li><b>You</b> will refer to the individual agreeing to these terms, who will be counted among the Members.</li>
+       <li><b>Our resources</b> and <b>our equipment</b> refer to the computers and computer/networking equipment operated by the Provider.</li>
+</ol>
+
+<p>The Provider may impose upon the users reasonable rules and regulations regarding the use of the services from time to time. Any such necessary rules will be reflected in changes to these terms of service.</p>
+
+<p>The major legal obligation of the Provider is to honor the following contracts with our current hosting providers:</p>
+
+<ul>
+               <li> <a href="https://peer1.net/">Peer 1</a> [<a href="http://www.peer1.com/aboutus/aup.php">AUP</a>, <a href="http://www.peer1.com/aboutus/tos.php">TOS</a>]</li>
+       <li><a href="http://linode.com">Linode</a> [<a href="http://www.linode.com/tos.cfm">TOS</a>]</li>
+</ul>
+
+<p><b>You will take no action to cause the Provider to be in breach of any of these agreements. In the event that a breach takes place due to your actions involving domains, web sites, e-mail, or other service usage under your control, you agree to, along with other members sharing responsibility for the breach, pay all legal costs associated with the violation, pay all service or repair fees requested by the above organizations to deal with the violation, and generally assume all responsibility for the violation.</b> The below cases will inexhaustively list some requirements on you, including what is permitted and your responsibilities should you do something unpermitted.</p>
+
+<p>You shall remain solely responsible for your use of our resources. You are also responsible for any and all content which is displayed, downloaded, uploaded or transmitted through your accounts, including your UNIX login(s). Content includes home pages, web pages, domain names, e-mail, stored data and any other data stored on or transmitted through our equipment. You are responsible for domains delegated to you through automated means, including UNIX filesystem permissions, which means that you may be held responsible for the actions of others related to domains you have given them permission to access, or for the actions of others related to daemons running on ports that have been assigned to you. This list is provided without limitation.</p>
+
+<p><b>The Provider reserves the right to refuse service or access to anyone at any time for any reason.</b></p>
+
+<p>An inexhaustive list of prohibited uses of our resources includes: any material that violates the copyright, trademark, or intellectual property law of the United States; child pornography; forging TCP-IP packet headers in an email or posting; DOS (denial of service) attacks, mail-bombing, network flooding, and any attempt to attack any network or network equipment; monitoring data, packets, or traffic on a network without the written permission of that network's owner; probing, scanning, or testing for system vulnerabilities.</p>
+
+<p>You are responsible for the expenses and costs attributed to correcting, cleaning up, and repairing any damage that results from your actions in violation of this policy.</p>
+
+<h3><u>Third Parties</u></h3>
+
+<p>The services provided to you may not be transferred to third parties. You may not provide third parties with services that utilize any part of our equipment or other resources without the Provider's approval. Should you violate this requirement, you will be held responsible for all actions of such third parties. The HCOOP, Inc. Board of Directors has the final say on the difference between what constitutes a transferal of services and what constitutes normal "client" use of an Internet service.</p>
+
+<h3><u>Indemnification and Disclaimer</u></h3>
+
+<p>You agree to indemnify the Provider for any violation of the Provider's service agreement, law or acceptable use policy (AUP) by you that results in loss to the Provider. You also agree to hold the Provider harmless of any claims against you or the Provider for violations of this policy. If the Provider shall be enjoined in a lawsuit because of your activity, you shall be responsible for any damages awarded against the Provider, plus costs and reasonable attorney's fees.</p>
+
+The Provider reserves the right to change this agreement at any time. The current version/form of this agreement will be available 24/7 at <tt><a href="http://hcoop.net/tos.html">http://hcoop.net/tos.html</a></tt>. Members will be provided at least one week's notice before any changes are made, to be conveyed to their e-mail addresses on record.