diff --git a/admin/edit-active-admin.php b/admin/edit-active-admin.php deleted file mode 100644 index dce19d1..0000000 --- a/admin/edit-active-admin.php +++ /dev/null @@ -1,43 +0,0 @@ - -// Copyright (c) 2022 High5! -// License Info: LICENSE.TXT -// -// File: edit-active.php -// -// Template File: message.tpl -// -// Template Variables: -// -// tMessage -// -// Form POST \ GET Variables: -// -// fUsername -// -require("../variables.inc.php"); -require("../config.inc.php"); -require("../functions.inc.php"); -include("../languages/" . check_language() . ".lang"); - -if ($_SERVER['REQUEST_METHOD'] == "GET") { - if (isset($_GET['username'])) $fUsername = escape_string($_GET['username']); - - $result = db_query("UPDATE admin SET active=1-active WHERE username='$fUsername'"); - if ($result['rows'] != 1) { - $error = 1; - $tMessage = $PALANG['pAdminEdit_admin_result_error']; - } - - if ($error != 1) { - header("Location: list-admin.php"); - exit; - } -} -include("../templates/header.tpl"); -include("../templates/admin_menu.tpl"); -include("../templates/message.tpl"); -include("../templates/footer.tpl"); -?> diff --git a/admin/edit-active-domain.php b/admin/edit-active-domain.php deleted file mode 100644 index 88dca99..0000000 --- a/admin/edit-active-domain.php +++ /dev/null @@ -1,43 +0,0 @@ - -// Copyright (c) 2022 High5! -// License Info: LICENSE.TXT -// -// File: edit-active.php -// -// Template File: message.tpl -// -// Template Variables: -// -// tMessage -// -// Form POST \ GET Variables: -// -// fDomain -// -require("../variables.inc.php"); -require("../config.inc.php"); -require("../functions.inc.php"); -include("../languages/" . check_language() . ".lang"); - -if ($_SERVER['REQUEST_METHOD'] == "GET") { - if (isset($_GET['domain'])) $fDomain = escape_string($_GET['domain']); - - $result = db_query("UPDATE domain SET active=1-active WHERE domain='$fDomain'"); - if ($result['rows'] != 1) { - $error = 1; - $tMessage = $PALANG['pAdminEdit_domain_result_error']; - } - - if ($error != 1) { - header("Location: list-domain.php"); - exit; - } -} -include("../templates/header.tpl"); -include("../templates/admin_menu.tpl"); -include("../templates/message.tpl"); -include("../templates/footer.tpl"); -?> diff --git a/admin/edit-active.php b/admin/edit-active.php deleted file mode 100644 index 63c1c6f..0000000 --- a/admin/edit-active.php +++ /dev/null @@ -1,47 +0,0 @@ - -// Copyright (c) 2022 High5! -// License Info: LICENSE.TXT -// -// File: edit-active.php -// -// Template File: message.tpl -// -// Template Variables: -// -// tMessage -// -// Form POST \ GET Variables: -// -// fUsername -// fDomain -// -require("../variables.inc.php"); -require("../config.inc.php"); -require("../functions.inc.php"); -include("../languages/" . check_language() . ".lang"); - -if ($_SERVER['REQUEST_METHOD'] == "GET") { - if (isset($_GET['username'])) $fUsername = escape_string($_GET['username']); - if (isset($_GET['domain'])) $fDomain = escape_string($_GET['domain']); - - $result = db_query("UPDATE mailbox SET active=1-active WHERE username='$fUsername' AND domain='$fDomain'"); - if ($result['rows'] != 1) { - $error = 1; - $tMessage = $PALANG['pEdit_mailbox_result_error']; - } else { - db_log($CONF['admin_email'], $fDomain, "edit active", $fUsername); - } - - if ($error != 1) { - header("Location: list-virtual.php?domain=$fDomain"); - exit; - } -} -include("../templates/header.tpl"); -include("../templates/admin_menu.tpl"); -include("../templates/message.tpl"); -include("../templates/footer.tpl"); -?> diff --git a/templates/admin_list-admin.tpl b/templates/admin_list-admin.tpl index c713c51..cb01b55 100644 --- a/templates/admin_list-admin.tpl +++ b/templates/admin_list-admin.tpl @@ -6,7 +6,6 @@ if (count($list_admins) > 0) { echo " " . $PALANG['pAdminList_admin_username'] . "\n"; echo " " . $PALANG['pAdminList_admin_count'] . "\n"; echo " " . $PALANG['pAdminList_admin_modified'] . "\n"; - echo " " . $PALANG['pAdminList_admin_active'] . "\n"; echo "  \n"; echo " \n"; @@ -17,7 +16,6 @@ if (count($list_admins) > 0) { echo " " . $row['domain_count'] . ""; echo " " . $row['modified'] . ""; $active = ($row['active'] == 1) ? $PALANG['YES'] : $PALANG['NO']; - echo " " . $active . ""; echo " " . $PALANG['edit'] . ""; echo " " . $PALANG['del'] . ""; echo " \n";