From c5d81fdf69f80ff35679fa84e021f9f620764be1 Mon Sep 17 00:00:00 2001 From: heper Date: Sat, 31 Oct 2015 16:00:49 +0100 Subject: [PATCH] convert services_rfc2136 to fa please double check the added act==toggle code --- src/usr/local/www/services_rfc2136.php | 29 ++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/src/usr/local/www/services_rfc2136.php b/src/usr/local/www/services_rfc2136.php index a73880a2d4..5eef2a07ec 100644 --- a/src/usr/local/www/services_rfc2136.php +++ b/src/usr/local/www/services_rfc2136.php @@ -55,6 +55,19 @@ if ($_GET['act'] == "del") { header("Location: services_rfc2136.php"); exit; } +else if ($_GET['act'] == "toggle") { + if ($a_rfc2136[$_GET['id']]) { + if (isset($a_rfc2136[$_GET['id']]['enable'])) { + unset($a_rfc2136[$_GET['id']]['enable']); + } else { + $a_rfc2136[$_GET['id']]['enable'] = true; + } + write_config(); + + header("Location: services_rfc2136.php"); + exit; + } +} $pgtitle = array(gettext("Services"), gettext("RFC 2136 clients")); include("head.inc"); @@ -157,9 +170,17 @@ foreach ($a_rfc2136 as $rfc2136): - - - + + + + + + + ')"> +