$ git clone http://thingshare.ion.nu/thingshare.git
commit fdaf8b6b058ef09edb102db95fbdec1cf2734c83
Author: Alicia <...>
Date:   Tue Jan 5 22:46:16 2021 +0100

    Added some legal texts.

diff --git a/foot.php b/foot.php
index efecc36..9f6a5a2 100644
--- a/foot.php
+++ b/foot.php
@@ -7,6 +7,9 @@
       <h4>Contact</h4>
       E-mail address: <a href="mailto:<?=EMAIL?>"><?=EMAIL?></a>
     </div>
+    <div class="footnote">
+       Content displayed on Thingshare is property of respective creator, not of Thingshare or its operators
+    </div>
   </div>
 </body>
 </html>
diff --git a/register.php b/register.php
index 2672174..451bc77 100644
--- a/register.php
+++ b/register.php
@@ -32,7 +32,7 @@ if(isset($_POST['user']) && isset($_POST['email']) && isset($_POST['pass']) && i
   $pass=$_POST['pass'];
   $pass2=$_POST['pass2'];
   // Error checks
-  if(!isset($_POST['tos'])){$error=_('Agreeing to the terms of service is mandatory');}
+  if(!isset($_POST['tos'])){$error=_('Agreeing to the terms of service is mandatory for membership');}
   if(substr_count($email, '@')!=1){$error=sprintf(_('%s does not appear to be a valid e-mail address'), $email);}
   if($pass!=$pass2){$error=_('The passwords don\'t match');}
   if(strlen($pass)<8){$error=_('Please use a safe password. Less than 8 characters is too short');}
@@ -76,7 +76,7 @@ if($form)
     <input type="text" name="email" placeholder="E-mail address" value="<?=$email?>" /><br />
     <input type="password" name="pass" placeholder="Password" value="<?=$pass?>" /><br />
     <input type="password" name="pass2" placeholder="Password again" value="<?=$pass2?>" /><br />
-    <label><input type="checkbox" name="tos"<?=(isset($_POST['tos'])?' checked':'')?> /> I agree to the terms of service which disclaim any and all liability, responsibility, and accountability (TODO: Write a real ToS document)</label><br />
+    <label><input type="checkbox" name="tos"<?=(isset($_POST['tos'])?' checked':'')?> /> I agree to the <a href="termsofservice.html" target="_blank">terms of service</a></label><br />
     <button><?=_('Create account')?></button>
   </center>
 <form>
diff --git a/style.css b/style.css
index 7f763f1..882e9fe 100644
--- a/style.css
+++ b/style.css
@@ -149,6 +149,10 @@ div.c2 {
 div.top {
   vertical-align:top;
 }
+div.footnote {
+  font-size:10px;
+  text-align:center;
+}
 table {
   width:100%;
 }
diff --git a/termsofservice.html.sample b/termsofservice.html.sample
new file mode 100644
index 0000000..a3a9b6a
--- /dev/null
+++ b/termsofservice.html.sample
@@ -0,0 +1,43 @@
+<!DOCTYPE html>
+<html><head><title>Terms of Service</title></head><body>
+<h1>Terms of Service</h1>
+<p>
+<h3>Definitions</h3>
+<b>&quot;Thingshare instances&quot;</b> refer to services made to interoperate with Thingshare and may or may not be derived from the Thingshare codebase.<br />
+<b>&quot;Uploaded content&quot;</b> refers to any data provided to the service by users, including but not limited to files, descriptions, filenames, usernames, messages and tags.<br />
+<b>&quot;Remote content&quot;</b> refers to content provided by third party Thingshare instances, either through RPC requests or direct web references such as hyperlinks and images.
+</p>
+<br />
+<p>
+This service is provided 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.
+</p>
+<p>
+This service uses cookies to maintain account sessions, and logs web requests. Neither of these are intended to be shared with third parties.<br />
+Remote content from other Thingshare instances may be referenced and those instances may also store cookies and log web requests.
+</p>
+<p>
+Uploaded content is the sole responsibility of the uploader and must conform to local and international laws. Report abuse by e-mail to abuse <i>at</i> this domain.<br />
+The site operator takes no responsibility for uploaded content nor remote content.<br />
+Uploaded content may be removed at any time, as a whole or in part, for any reason, at the discretion of the operator of the service or delegates thereof.<br />
+User accounts may be removed or disabled at any time, for any reason, at the discretion of the operator of the service or delegates thereof.
+</p>
+<p>
+Uploaded content will be accessible to the public on this service and may also be accessible through other Thingshare instances.
+</p>
+<p>
+You understand and agree that we will not be liable to you or any third party for any loss of profits, use, goodwill, or data, or for any incidental, indirect, special, consequential or exemplary damages, however arising, that result from
+<ul>
+  <li>the use, disclosure, or display of your uploaded content;</li>
+  <li>your use or inability to use the Service;</li>
+  <li>any modification, suspension or discontinuance of the Service;</li>
+  <li>the Service generally or the software or systems that make the Service available;</li>
+  <li>unauthorized access to or alterations of your transmissions or data;</li>
+  <li>statements or conduct of any third party on the Service;</li>
+  <li>any other user interactions that you input or receive through your use of the Service; or</li>
+  <li>any other matter relating to the Service.</li>
+</ul>
+Our liability is limited whether or not we have been informed of the possibility of such damages, and even if a remedy set forth in this Agreement is found to have failed of its essential purpose. We will have no liability for any failure or delay.
+</p>
+</body></html>