|
122 | 122 | } elseif ($isActive) {
|
123 | 123 | echo "<p>You are curently a <strong>user</strong> on the Unity Cluster</p>";
|
124 | 124 | } else {
|
125 |
| - echo "<p>You are currently not assigned to any PI, and will be |
126 |
| - <strong>unable to use the cluster</strong>. Go to the <a href='groups.php'>My PIs</a> |
127 |
| - page to join a PI, or click on the button below if you are a PI</p>"; |
128 |
| - echo "<p>Students should not request a PI account.</p>"; |
| 125 | + echo " |
| 126 | + <p> |
| 127 | + You are currently not assigned to any PI, and will be |
| 128 | + <strong>unable to use the cluster</strong>. |
| 129 | + Go to the |
| 130 | + <a href='groups.php'>My PIs</a> |
| 131 | + page to join a PI, or click on the button below if you are a PI. |
| 132 | + </p> |
| 133 | + <p>Students should not request a PI account.</p> |
| 134 | + "; |
129 | 135 | }
|
130 | 136 |
|
131 | 137 | if (!$isPI) {
|
132 | 138 | if ($SQL->accDeletionRequestExists($USER->getUID())) {
|
133 |
| - echo |
134 |
| - "<form action='' method='POST' id='piReq' |
135 |
| - onsubmit='return confirm(\"Are you sure you want to request a PI account?\")'> |
136 |
| - <input type='hidden' name='form_type' value='pi_request'>"; |
137 |
| - echo "<input type='submit' value='Request PI Account' disabled>"; |
138 |
| - echo |
139 |
| - "<label style='margin-left: 10px'> |
| 139 | + echo " |
| 140 | + <form |
| 141 | + action='' |
| 142 | + method='POST' |
| 143 | + id='piReq' |
| 144 | + onsubmit='return confirm(\"Are you sure you want to request a PI account?\")' |
| 145 | + > |
| 146 | + <input type='hidden' name='form_type' value='pi_request'/> |
| 147 | + <input type='submit' value='Request PI Account' disabled /> |
| 148 | + <label style='margin-left: 10px'> |
140 | 149 | You cannot request PI Account while you have requested account deletion.
|
141 |
| - </label>"; |
142 |
| - echo "</form>"; |
| 150 | + </label> |
| 151 | + </form> |
| 152 | + "; |
143 | 153 | } else {
|
144 |
| - echo |
145 |
| - "<form action='' method='POST' id='piReq' |
146 |
| - onsubmit='return confirm(\"Are you sure you want to request a PI account?\")'> |
147 |
| - <input type='hidden' name='form_type' value='pi_request'>"; |
| 154 | + echo " |
| 155 | + <form |
| 156 | + action='' |
| 157 | + method='POST' |
| 158 | + id='piReq' |
| 159 | + onsubmit='return confirm(\"Are you sure you want to request a PI account?\")' |
| 160 | + > |
| 161 | + <input type='hidden' name='form_type' value='pi_request'/> |
| 162 | + "; |
148 | 163 | if ($SQL->requestExists($USER->getUID())) {
|
149 |
| - echo "<input type='submit' value='Request PI Account' disabled>"; |
| 164 | + echo "<input type='submit' value='Request PI Account' disabled />"; |
150 | 165 | echo "<label style='margin-left: 10px'>Your request has been submitted and is currently pending</label>";
|
151 | 166 | } else {
|
152 |
| - echo "<input type='submit' value='Request PI Account'>"; |
| 167 | + echo "<input type='submit' value='Request PI Account'/>"; |
153 | 168 | }
|
154 | 169 | echo "</form>";
|
155 | 170 | }
|
|
169 | 184 | for ($i = 0; $sshPubKeys != null && $i < count($sshPubKeys); $i++) { // loop through keys
|
170 | 185 | echo
|
171 | 186 | "<div class='key-box'>
|
172 |
| - <textarea spellcheck='false' readonly>" . $sshPubKeys[$i] . "</textarea> |
173 |
| - <form action='' id='del-" . $i . "' |
174 |
| - onsubmit='return confirm(\"Are you sure you want to delete this SSH key?\");' method='POST'> |
175 |
| - <input type='hidden' name='delIndex' value='$i'> |
176 |
| - <input type='hidden' name='form_type' value='delKey'> |
177 |
| - <input type='submit' value='×'> |
178 |
| - </form> |
| 187 | + <textarea spellcheck='false' readonly>" . $sshPubKeys[$i] . "</textarea> |
| 188 | + <form |
| 189 | + action='' id='del-" . $i . "' |
| 190 | + onsubmit='return confirm(\"Are you sure you want to delete this SSH key?\");' |
| 191 | + method='POST' |
| 192 | + > |
| 193 | + <input type='hidden' name='delIndex' value='$i' /> |
| 194 | + <input type='hidden' name='form_type' value='delKey' /> |
| 195 | + <input type='submit' value='×' /> |
| 196 | + </form> |
179 | 197 | </div>";
|
180 | 198 | }
|
181 | 199 |
|
|
186 | 204 | <hr>
|
187 | 205 |
|
188 | 206 | <form action="" method="POST">
|
189 |
| -<input type="hidden" name="form_type" value="loginshell"> |
| 207 | +<input type="hidden" name="form_type" value="loginshell" /> |
190 | 208 | <select id="loginSelector" name="shellSelect">
|
191 | 209 | <?php
|
192 | 210 | foreach ($CONFIG["loginshell"]["shell"] as $shell) {
|
|
202 | 220 | type='text'
|
203 | 221 | placeholder='Enter login shell path (ie. /bin/bash)'
|
204 | 222 | name='shell'
|
205 |
| - > |
| 223 | + /> |
206 | 224 | ";
|
207 | 225 | ?>
|
208 | 226 | <br>
|
209 |
| -<input id='submitLoginShell' type='submit' value='Set Login Shell'> |
| 227 | +<input id='submitLoginShell' type='submit' value='Set Login Shell' /> |
210 | 228 | </form>
|
211 | 229 | <hr>
|
212 | 230 |
|
|
217 | 235 | if ($hasGroups) {
|
218 | 236 | echo "<p>You cannot request to delete your account while you are in a PI group.</p>";
|
219 | 237 | } else {
|
220 |
| - echo |
221 |
| - "<form action='' method='POST' id='accDel' |
222 |
| - onsubmit='return confirm(\"Are you sure you want to request an account deletion?\")'> |
223 |
| - <input type='hidden' name='form_type' value='account_deletion_request'>"; |
| 238 | + echo " |
| 239 | + <form |
| 240 | + action='' |
| 241 | + method='POST' |
| 242 | + id='accDel' |
| 243 | + onsubmit='return confirm(\"Are you sure you want to request an account deletion?\")' |
| 244 | + > |
| 245 | + <input type='hidden' name='form_type' value='account_deletion_request' /> |
| 246 | + "; |
224 | 247 | if ($SQL->accDeletionRequestExists($USER->getUID())) {
|
225 |
| - echo "<input type='submit' value='Request Account Deletion' disabled>"; |
| 248 | + echo "<input type='submit' value='Request Account Deletion' disabled />"; |
226 | 249 | echo "<label style='margin-left: 10px'>Your request has been submitted and is currently pending</label>";
|
227 | 250 | } else {
|
228 |
| - echo "<input type='submit' value='Request Account Deletion'>"; |
| 251 | + echo "<input type='submit' value='Request Account Deletion' />"; |
229 | 252 | }
|
230 | 253 | echo "</form>";
|
231 | 254 | }
|
|
0 commit comments