From 9f7265a82dd6dd1e379a62cd36f163b2428cd446 Mon Sep 17 00:00:00 2001 From: Simon Leary Date: Tue, 15 Apr 2025 13:54:23 -0400 Subject: [PATCH] get rid of policy page / priv.php by default, allow external link instead --- defaults/config.ini.default | 2 +- resources/templates/footer.php | 2 +- tools/docker-dev/sql/bootstrap.sql | 3 +-- webroot/panel/new_account.php | 4 ++-- webroot/priv.php | 16 ---------------- 5 files changed, 5 insertions(+), 22 deletions(-) delete mode 100644 webroot/priv.php diff --git a/defaults/config.ini.default b/defaults/config.ini.default index 6bcc5b95..8c56b24d 100644 --- a/defaults/config.ini.default +++ b/defaults/config.ini.default @@ -11,6 +11,7 @@ name = "Unity Cluster" ; Name of the website url = "https://127.0.0.1:8000/" ; URL of the website description = "The Unity Web Portal is a lightweight HPC cluster front-end" ; Description of the website logo = "logo.png" ; path to logo file, in the webroot/assets/branding folder +terms_of_service_url = "https://github.com" ; this can be external or a portal page created with "content management" [ldap] uri = "ldap://identity" ; URI of remote LDAP server @@ -100,4 +101,3 @@ url = "https://hooks.slack.com/services/T04BB3N3M26/B050A55CBNX/IGm1YA0VhjczAfs5 [page] ; which sql objects to use for the content on these pages home = "home" support = "support" -policy = "policy" diff --git a/resources/templates/footer.php b/resources/templates/footer.php index cb8e8aca..228c2e79 100644 --- a/resources/templates/footer.php +++ b/resources/templates/footer.php @@ -19,7 +19,7 @@
Unity Web Portal Version ">  | - /priv.php">Site Policy + ">Terms of Service
diff --git a/tools/docker-dev/sql/bootstrap.sql b/tools/docker-dev/sql/bootstrap.sql index 53fdbb0b..0edfeaf3 100644 --- a/tools/docker-dev/sql/bootstrap.sql +++ b/tools/docker-dev/sql/bootstrap.sql @@ -175,8 +175,7 @@ CREATE TABLE `pages` ( -- INSERT INTO `pages` (`id`, `page`, `content`) VALUES -(1, 'support', '

Docmentation and FAQ

\r\n

You can find our documentation here. We also have an FAQ page which could help answer quick questions.\r\n\r\n

Office Hours

\r\n

We offer office hours every week on Tuesdays 2-4 PM in-person at W.E.B. DuBois Library 786 or remote on Zoom. Be sure to check the /index.php\">cluster notes page for up-to-date information on any canceled/delayed office hours.

\r\n\r\n

Support Email

\r\n

You can create a support ticket by emailing hpc@umass.edu. We will do our best to reply as fast as possible!

'), -(2, 'policy', '

By using resources associated with Unity, you agree to comply with the following conditions of use. This is an extension of the University of Massachussetts Amherst Information Technology Acceptable Use Policy, which can be found here.

\r\n\r\n
    \r\n
  1. You will not use Unity resources for illicit financial gain, such as virtual currency mining, or any unlawful purpose, nor attempt to breach or circumvent any Unity administrative or security controls. You will comply with all applicable laws, working with your home institution and the specific Unity service providers utilized to determine what constraints may be placed on you by any relevant regulations such as export control law or HIPAA.
  2. \r\n
  3. You will respect intellectual property rights and observe confidentiality agreements.
  4. \r\n
  5. You will protect the access credentials (e.g., passwords, private keys, and/or tokens) issued to you or generated to access Unity resources; these are issued to you for your sole use.
  6. \r\n
  7. You will immediately report any known or suspected security breach or loss or misuse of Unity access credentials to hpc@it.umass.edu.
  8. \r\n
  9. You will have only one Unity User account and will keep your profile information up-to-date.
  10. \r\n
  11. Use of resources and services through Unity is at your own risk. There are no guarantees that resources and services will be available, that they will suit every purpose, or that data will never be lost or corrupted. Users are responsible for backing up critical data.
  12. \r\n
  13. Logged information, including information provided by you for registration purposes, is used for administrative, operational, accounting, monitoring and security purposes. This information may be disclosed, via secured mechanisms, only for the same purposes and only as far as necessary to other organizations cooperating with Unity .
  14. \r\n
\r\n\r\n

The Unity team reserves the right to restrict access to any individual/group found to be in breach of the above.

'); +(1, 'support', '

Docmentation and FAQ

\r\n

You can find our documentation here. We also have an FAQ page which could help answer quick questions.\r\n\r\n

Office Hours

\r\n

We offer office hours every week on Tuesdays 2-4 PM in-person at W.E.B. DuBois Library 786 or remote on Zoom. Be sure to check the /index.php\">cluster notes page for up-to-date information on any canceled/delayed office hours.

\r\n\r\n

Support Email

\r\n

You can create a support ticket by emailing hpc@umass.edu. We will do our best to reply as fast as possible!

'); -- -------------------------------------------------------- diff --git a/webroot/panel/new_account.php b/webroot/panel/new_account.php index 51ddbb9f..986f97f2 100644 --- a/webroot/panel/new_account.php +++ b/webroot/panel/new_account.php @@ -74,8 +74,8 @@ echo "
"; echo ""; + I have read and accept the + Unity Terms of Service"; echo "
"; echo ""; diff --git a/webroot/priv.php b/webroot/priv.php deleted file mode 100644 index 702d6acf..00000000 --- a/webroot/priv.php +++ /dev/null @@ -1,16 +0,0 @@ - - -

Unity Cluster Site Policy

-
- -getPage($CONFIG["page"]["policy"])["content"]; -?> - -