From 73c7f57ad7c1f3d0b2e149b511652301dcf05c5d Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 27 May 2005 16:42:06 +0000 Subject: [PATCH] Reverted to orginal handling, because the new implementation doesn't work here... git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@490 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../connectivity/class_proxyAccount.inc | 35 ++----------- plugins/personal/connectivity/proxy.tpl | 51 +++++-------------- 2 files changed, 16 insertions(+), 70 deletions(-) diff --git a/plugins/personal/connectivity/class_proxyAccount.inc b/plugins/personal/connectivity/class_proxyAccount.inc index fe4ca325d..727082d23 100644 --- a/plugins/personal/connectivity/class_proxyAccount.inc +++ b/plugins/personal/connectivity/class_proxyAccount.inc @@ -48,14 +48,8 @@ class proxyAccount extends plugin foreach (array("F", "T", "B", "N") as $val){ if (is_integer(strpos($this->gosaProxyAcctFlags, "$val"))) { $smarty->assign("filter$val", "checked"); - - // Create state variable for checkbox (Used in proxy.tpl) - $smarty->assign($val."state", ""); } else { $smarty->assign("filter$val", ""); - - // Create state variable for checkbox (Used in proxy.tpl) - $smarty->assign($val."state", "disabled"); } } @@ -116,26 +110,6 @@ class proxyAccount extends plugin } - /* Check values */ - function check() - { - $message= array(); - - /* We've got only one value to check for positive integer or emtpy field */ - if ($this->is_account){ - if (isset($_POST["quota_size"])){ - if ($_POST["quota_size"] == ""){ - $message[]= _("Numerical value for Quota Setting is empty."); - } - else if ($_POST["quota_size"] <= 0){ - $message[]= _("Numerical value for Quota Setting is not valid."); - } - } - } - - return $message; - } - /* Save data to object */ function save_object() { @@ -180,17 +154,14 @@ class proxyAccount extends plugin /* Save quota values */ if (chkacl ($this->acl, "gosaProxyQuota") == ""){ $old= $this->gosaProxyQuota; - if(isset($_POST["quota_size"]) && isset($_POST["quota_unit"])){ - $this->gosaProxyQuota= $_POST["quota_size"].$_POST["quota_unit"]; - } + $this->gosaProxyQuota= $_POST["quota_size"].$_POST["quota_unit"]; $this->is_modified= ($old != $this->gosaProxyQuota)?TRUE:$this->is_modified; $old= $this->gosaProxyQuotaPeriod; - if(isset($_POST["gosaProxyQuotaPeriod"])){ - $this->gosaProxyQuotaPeriod = $_POST["gosaProxyQuotaPeriod"]; - } + $this->gosaProxyQuotaPeriod = $_POST["gosaProxyQuotaPeriod"]; $this->is_modified= ($old != $this->gosaProxyQuotaPeriod)?TRUE:$this->is_modified; } } + } diff --git a/plugins/personal/connectivity/proxy.tpl b/plugins/personal/connectivity/proxy.tpl index 24650cc0d..fcb63344b 100644 --- a/plugins/personal/connectivity/proxy.tpl +++ b/plugins/personal/connectivity/proxy.tpl @@ -1,53 +1,33 @@ -

{if $tabbed eq 1} - {/if}{t}Proxy account{/t}

- +

{if $tabbed eq 1}{/if}{t}Proxy account{/t}

- -
+ +
{t}Filter unwanted content (i.e. pornographic or violence related){/t}
- + {t}Limit proxy access to working time{/t}
@@ -58,24 +38,19 @@  
- {html_options values=$hours output=$hours selected=$starthour}  :  - {html_options values=$minutes output=$minutes selected=$startminute}  -  - {html_options values=$hours output=$hours selected=$stophour}  :  - {html_options values=$minutes output=$minutes selected=$stopminute} - + {t}Restrict proxy usage by quota{/t}
-- 2.30.2
- +   - {html_options options=$quota_unit selected=$quota_u} - {t}per{/t} - {html_options options=$quota_time selected=$gosaProxyQuotaPeriod}