|
1 | 1 | <?php |
2 | 2 |
|
3 | | -require_once "../../resources/autoload.php"; |
| 3 | +require_once __DIR__ . "/../../resources/autoload.php"; |
4 | 4 |
|
5 | 5 | use UnityWebPortal\lib\UnitySite; |
6 | 6 |
|
|
114 | 114 | } elseif ($isActive) { |
115 | 115 | echo "<p>You are curently a <strong>user</strong> on the Unity Cluster</p>"; |
116 | 116 | } else { |
117 | | - echo "<p>You are currently not assigned to any PI, and will be |
118 | | - <strong>unable to use the cluster</strong>. Go to the <a href='groups.php'>My PIs</a> |
| 117 | + echo "<p>You are currently not assigned to any PI, and will be |
| 118 | + <strong>unable to use the cluster</strong>. Go to the <a href='groups.php'>My PIs</a> |
119 | 119 | page to join a PI, or click on the button below if you are a PI</p>"; |
120 | 120 | echo "<p>Students should not request a PI account.</p>"; |
121 | 121 | } |
122 | 122 |
|
123 | 123 | if (!$isPI) { |
124 | 124 | if ($SQL->accDeletionRequestExists($USER->getUID())) { |
125 | 125 | echo |
126 | | - "<form action='' method='POST' id='piReq' |
| 126 | + "<form action='' method='POST' id='piReq' |
127 | 127 | onsubmit='return confirm(\"Are you sure you want to request a PI account?\")'> |
128 | 128 | <input type='hidden' name='form_type' value='pi_request'>"; |
129 | 129 | echo "<input type='submit' value='Request PI Account' disabled>"; |
|
134 | 134 | echo "</form>"; |
135 | 135 | } else { |
136 | 136 | echo |
137 | | - "<form action='' method='POST' id='piReq' |
| 137 | + "<form action='' method='POST' id='piReq' |
138 | 138 | onsubmit='return confirm(\"Are you sure you want to request a PI account?\")'> |
139 | 139 | <input type='hidden' name='form_type' value='pi_request'>"; |
140 | 140 | if ($SQL->requestExists($USER->getUID())) { |
|
162 | 162 | echo |
163 | 163 | "<div class='key-box'> |
164 | 164 | <textarea spellcheck='false' readonly>" . $sshPubKeys[$i] . "</textarea> |
165 | | - <form action='' id='del-" . $i . "' |
| 165 | + <form action='' id='del-" . $i . "' |
166 | 166 | onsubmit='return confirm(\"Are you sure you want to delete this SSH key?\");' method='POST'> |
167 | 167 | <input type='hidden' name='delIndex' value='$i'> |
168 | 168 | <input type='hidden' name='form_type' value='delKey'> |
|
181 | 181 |
|
182 | 182 | <input type="hidden" name="form_type" value="loginshell"> |
183 | 183 |
|
184 | | - <select id="loginSelector" name= "shellSelect"> |
| 184 | + <select id="loginSelector" name= "shellSelect"> |
185 | 185 |
|
186 | 186 | <option value="" disabled hidden>Select Login Shell...</option> |
187 | 187 |
|
|
208 | 208 | <?php |
209 | 209 |
|
210 | 210 | if ($found_selector) { |
211 | | - echo "<input id='customLoginBox' type='text' |
| 211 | + echo "<input id='customLoginBox' type='text' |
212 | 212 | placeholder='Enter login shell path (ie. /bin/bash)' name='shell'>"; |
213 | 213 | } else { |
214 | | - echo "<input id='customLoginBox' type='text' |
| 214 | + echo "<input id='customLoginBox' type='text' |
215 | 215 | placeholder='Enter login shell path (ie. /bin/bash)' name='shell' value='$cur_shell'>"; |
216 | 216 | } |
217 | 217 |
|
|
231 | 231 | echo "<p>You cannot request to delete your account while you are in a PI group.</p>"; |
232 | 232 | } else { |
233 | 233 | echo |
234 | | - "<form action='' method='POST' id='accDel' |
| 234 | + "<form action='' method='POST' id='accDel' |
235 | 235 | onsubmit='return confirm(\"Are you sure you want to request an account deletion?\")'> |
236 | 236 | <input type='hidden' name='form_type' value='account_deletion_request'>"; |
237 | 237 | if ($SQL->accDeletionRequestExists($USER->getUID())) { |
|
0 commit comments