diff --git a/tools/docker-dev/sql/bootstrap.sql b/tools/docker-dev/sql/bootstrap.sql index 88cf04b5..0baec680 100644 --- a/tools/docker-dev/sql/bootstrap.sql +++ b/tools/docker-dev/sql/bootstrap.sql @@ -2,10 +2,10 @@ -- version 4.9.5deb2 -- https://www.phpmyadmin.net/ -- --- Host: localhost:3306 --- Generation Time: Sep 22, 2022 at 08:36 PM --- Server version: 10.3.34-MariaDB-0ubuntu0.20.04.1 --- PHP Version: 7.4.3 +-- Host: 127.0.0.1 +-- Generation Time: Jul 11, 2023 at 04:05 PM +-- Server version: 10.3.37-MariaDB-0ubuntu0.20.04.1 +-- PHP Version: 7.4.3-4ubuntu2.17 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; @@ -24,6 +24,33 @@ SET time_zone = "+00:00"; -- -------------------------------------------------------- +-- +-- Table structure for table `account_deletion_requests` +-- + +CREATE TABLE `account_deletion_requests` ( + `id` int(11) NOT NULL, + `timestamp` timestamp NOT NULL DEFAULT current_timestamp(), + `uid` varchar(1000) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `audit_log` +-- + +CREATE TABLE `audit_log` ( + `id` int(11) NOT NULL, + `timestamp` timestamp NOT NULL DEFAULT current_timestamp(), + `operator` varchar(1000) NOT NULL, + `operator_ip` varchar(1000) NOT NULL, + `action_type` varchar(1000) NOT NULL, + `recipient` varchar(1000) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + +-- -------------------------------------------------------- + -- -- Table structure for table `events` -- @@ -34,7 +61,7 @@ CREATE TABLE `events` ( `action` varchar(300) NOT NULL, `entity` varchar(300) NOT NULL, `timestamp` timestamp NOT NULL DEFAULT current_timestamp() -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -------------------------------------------------------- @@ -47,7 +74,7 @@ CREATE TABLE `notices` ( `date` timestamp NOT NULL DEFAULT current_timestamp(), `title` varchar(300) NOT NULL, `message` longtext NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -- Dumping data for table `notices` @@ -67,7 +94,7 @@ CREATE TABLE `pages` ( `id` int(11) NOT NULL, `page` varchar(300) NOT NULL, `content` longtext NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -- Dumping data for table `pages` @@ -75,8 +102,7 @@ CREATE TABLE `pages` ( INSERT INTO `pages` (`id`, `page`, `content`) VALUES (1, 'support', '
You can find our documentation here. We also have an FAQ page which could help answer quick questions.\r\n\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\nYou 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\nThe Unity team reserves the right to restrict access to any individual/group found to be in breach of the above.
'), -(3, 'home', 'Home page content
Other line
'); +(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\nThe Unity team reserves the right to restrict access to any individual/group found to be in breach of the above.
'); -- -------------------------------------------------------- @@ -89,56 +115,50 @@ CREATE TABLE `requests` ( `request_for` varchar(1000) NOT NULL, `uid` varchar(1000) NOT NULL, `timestamp` timestamp NOT NULL DEFAULT current_timestamp() -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -------------------------------------------------------- -- --- Table structure for table `audit_log` +-- Table structure for table `sitevars` -- -CREATE TABLE `audit_log` ( +CREATE TABLE `sitevars` ( `id` int(11) NOT NULL, - `timestamp` timestamp NOT NULL DEFAULT current_timestamp(), - `operator` varchar(1000) NOT NULL, - `operator_ip` varchar(1000) NOT NULL, - `action_type` varchar(1000) NOT NULL, - `recipient` varchar(1000) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- -------------------------------------------------------- + `name` varchar(1000) NOT NULL, + `value` varchar(1000) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -------------------------------------------------------- -- --- Table structure for table `account_deletion_requests` +-- Table structure for table `sso_log` -- -CREATE TABLE `account_deletion_requests` ( - `id` int(11) NOT NULL, - `timestamp` timestamp NOT NULL DEFAULT current_timestamp(), - `uid` varchar(1000) NOT NULL, -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- -------------------------------------------------------- - --- -------------------------------------------------------- +CREATE TABLE `sso_log` ( + `id` int(10) NOT NULL, + `uid` varchar(300) NOT NULL, + `firstname` varchar(300) NOT NULL, + `lastname` varchar(300) NOT NULL, + `mail` varchar(300) NOT NULL, + `org` varchar(300) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- --- Table structure for table `sitevars` +-- Indexes for dumped tables -- -CREATE TABLE `sitevars` ( - `id` int(11) NOT NULL, - `name` varchar(1000) NOT NULL, - `value` varchar(1000) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - --- -------------------------------------------------------- +-- +-- Indexes for table `account_deletion_requests` +-- +ALTER TABLE `account_deletion_requests` + ADD PRIMARY KEY (`id`); -- --- Indexes for dumped tables +-- Indexes for table `audit_log` -- +ALTER TABLE `audit_log` + ADD PRIMARY KEY (`id`); -- -- Indexes for table `events` @@ -165,32 +185,32 @@ ALTER TABLE `requests` ADD PRIMARY KEY (`id`); -- --- Indexes for table `sso_log` +-- Indexes for table `sitevars` -- -ALTER TABLE `sso_log` +ALTER TABLE `sitevars` ADD PRIMARY KEY (`id`); -- --- Indexes for table `audit_log` +-- Indexes for table `sso_log` -- -ALTER TABLE `audit_log` +ALTER TABLE `sso_log` ADD PRIMARY KEY (`id`); -- --- Indexes for table `audit_log` +-- AUTO_INCREMENT for dumped tables -- -ALTER TABLE `account_deletion_requests` - ADD PRIMARY KEY (`id`); -- --- Indexes for table `sitevars` +-- AUTO_INCREMENT for table `account_deletion_requests` -- -ALTER TABLE `sitevars` - ADD PRIMARY KEY (`id`); +ALTER TABLE `account_deletion_requests` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- --- AUTO_INCREMENT for dumped tables +-- AUTO_INCREMENT for table `audit_log` -- +ALTER TABLE `audit_log` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `events` @@ -217,31 +237,16 @@ ALTER TABLE `requests` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1031; -- --- AUTO_INCREMENT for table `sso_log` --- -ALTER TABLE `sso_log` - MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; - --- --- AUTO_INCREMENT for table `audit_log` --- -ALTER TABLE `audit_log` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -COMMIT; - --- --- --- AUTO_INCREMENT for table `account_deletion_requests` +-- AUTO_INCREMENT for table `sitevars` -- -ALTER TABLE `account_deletion_requests` +ALTER TABLE `sitevars` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -COMMIT; -- --- AUTO_INCREMENT for table `sitevars` +-- AUTO_INCREMENT for table `sso_log` -- -ALTER TABLE `sitevars` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; +ALTER TABLE `sso_log` + MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; diff --git a/webroot/panel/account.php b/webroot/panel/account.php index b22c2d37..70bd0983 100644 --- a/webroot/panel/account.php +++ b/webroot/panel/account.php @@ -114,6 +114,7 @@ echo "You are currently not assigned to any PI, and will be unable to use the cluster. Go to the My PIs page to join a PI, or click on the button below if you are a PI
"; + echo "Students should not request a PI account.
"; } if (!$isPI) { diff --git a/webroot/panel/modal/new_key.php b/webroot/panel/modal/new_key.php index 96ada521..40c509fc 100644 --- a/webroot/panel/modal/new_key.php +++ b/webroot/panel/modal/new_key.php @@ -63,18 +63,11 @@ } }); - $("div#key_generate > button").click(function() { + function generateKey(type) { var pubSection = "