diff --git a/htdocs/admin.php b/htdocs/admin.php index 59dc565..5e5b16e 100644 --- a/htdocs/admin.php +++ b/htdocs/admin.php @@ -38,11 +38,28 @@ if (!empty($_POST['delete'])) { print ''; } +if (!empty($_POST['isactive'])) { + $active = ($_POST['isactive'] == "TRUE") ? true : false; + try { + $domain->update($active); + header('Location: admin.php?domain='.$domain->getName()); + } catch (Exception $e) { + print '