28 lines
607 B
PHP
28 lines
607 B
PHP
<?php require "../../common/html.php"; ?>
|
|
|
|
<form method="post">
|
|
<label for="domain">Domaine</label>
|
|
<br>
|
|
<select required="" name="domain" id="domain">
|
|
<option value="" disabled="" selected="">---</option>
|
|
<?php
|
|
if (isset($_SESSION['username']))
|
|
foreach(regListUserDomains($_SESSION['username']) as $domain)
|
|
echo " <option value='" . $domain . "'>" . $domain . "</option>\n";
|
|
?>
|
|
|
|
</select>
|
|
<br>
|
|
<input value="Effacer" type="submit">
|
|
</form>
|
|
|
|
<?php
|
|
|
|
switchToFormProcess();
|
|
|
|
regCheckDomainPossession($_POST['domain']);
|
|
|
|
regDeleteDomain($_POST['domain']);
|
|
|
|
success("Domaine effacé du registre.");
|