Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 19 additions & 26 deletions webroot/panel/account.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,39 +131,33 @@
}

if (!$isPI) {
echo "
<form
action=''
method='POST'
id='piReq'
onsubmit='return confirm(\"Are you sure you want to request a PI account?\")'
>
<input type='hidden' name='form_type' value='pi_request'/>
";
if ($SQL->accDeletionRequestExists($USER->getUID())) {
echo "<input type='submit' value='Request PI Account' disabled />";
echo "
<form
action=''
method='POST'
id='piReq'
onsubmit='return confirm(\"Are you sure you want to request a PI account?\")'
>
<input type='hidden' name='form_type' value='pi_request'/>
<input type='submit' value='Request PI Account' disabled />
<label style='margin-left: 10px'>
You cannot request PI Account while you have requested account deletion.
You cannot request PI Account while you have requested account deletion.
</label>
</form>
";
} else {
} elseif ($SQL->requestExists($USER->getUID())) {
echo "<input type='submit' value='Request PI Account' disabled />";
echo "
<form
action=''
method='POST'
id='piReq'
onsubmit='return confirm(\"Are you sure you want to request a PI account?\")'
>
<input type='hidden' name='form_type' value='pi_request'/>
<label style='margin-left: 10px'>
Your request has been submitted and is currently pending
</label>
";
if ($SQL->requestExists($USER->getUID())) {
echo "<input type='submit' value='Request PI Account' disabled />";
echo "<label style='margin-left: 10px'>Your request has been submitted and is currently pending</label>";
} else {
echo "<input type='submit' value='Request PI Account'/>";
}
echo "</form>";
} else {
echo "<input type='submit' value='Request PI Account'/>";
}
echo "</form>";
}
?>

Expand Down Expand Up @@ -210,7 +204,6 @@
</select>
<br>
<input id='submitLoginShell' type='submit' value='Set Login Shell' />
<label id='labelSubmitLoginShell'> <!-- value set by JS --> </label>
</form>
<hr>

Expand Down
Loading