diff --git a/plugins/personal/connectivity/class_proxyAccount.inc b/plugins/personal/connectivity/class_proxyAccount.inc
index 036798990778a41aa03675efc243771460ae6a93..ff407a20e1192069b8023006609dd61a6331742d 100644 (file)
/* Prepare templating */
$smarty= get_smarty();
- $smarty->assign("proxyAccountACL", chkacl($this->acl, "proxyAccount"));
- $smarty->assign("gosaProxyAcctFlagsACL", chkacl($this->acl, "gosaProxyAcctFlags"));
+ $smarty->assign("proxyAccountACL", chkacl($this->acl, "proxyAccount"));
+ $smarty->assign("gosaProxyAcctFlagsACL", chkacl($this->acl, "gosaProxyAcctFlags"));
$smarty->assign("gosaProxyWorkingStartACL", chkacl($this->acl, "gosaProxyWorkingStart"));
- $smarty->assign("gosaProxyWorkingStopACL", chkacl($this->acl, "gosaProxyWorkingStop"));
- $smarty->assign("gosaProxyQuotaACL", chkacl($this->acl, "gosaProxyQuota"));
-
- /* Show checkbox? */
- if ($this->parent != NULL){
- $smarty->assign("tabbed", "1");
- } else {
- $smarty->assign("tabbed", "0");
- }
+ $smarty->assign("gosaProxyWorkingStopACL", chkacl($this->acl, "gosaProxyWorkingStop"));
+ $smarty->assign("gosaProxyQuotaACL", chkacl($this->acl, "gosaProxyQuota"));
/* Assign radio boxes */
foreach (array("F", "T", "B", "N") as $val){
$smarty->assign("filter$val", "");
/* Same as above */
- $smarty->assign($val."state", "disabled");
+ if($_SESSION['js']==1){
+ $smarty->assign($val."state", "disabled");
+ }else{
+ $smarty->assign($val."state", "");
+ }
}
}
@DEBUG (DEBUG_LDAP, __LINE__, __FUNCTION__, __FILE__,
$this->attributes, "Save");
$ldap->cd($this->dn);
- $ldap->modify($this->attrs);
- show_ldap_error($ldap->get_error());
+ $this->cleanup();
+ $ldap->modify ($this->attrs);
+
+ show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/proxy account with dn '%s' failed."),$this->dn));
/* Optionally execute a command after we're done */
$this->handle_post_events("remove");
/* Check values */
function check()
{
- $message= array();
+ /* Call common method to give check the hook */
+ $message= plugin::check();
/* We've got only one value to check for positive integer or emtpy field */
if ($this->is_account){
}
}
+ if(isset($_POST['proxy'])){
+ $this->is_account = TRUE;
+ }else{
+ $this->is_account = FALSE;
+ }
+
/* Save flag value */
if ($this->is_account){
if (chkacl ($this->acl, "gosaProxyAcctFlags") == ""){
/* Write back to ldap */
$ldap= $this->config->get_ldap_link();
$ldap->cd($this->dn);
- $ldap->modify($this->attrs);
+ $this->cleanup();
+ $ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error());
+ show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/proxy account with dn '%s' failed."),$this->dn));
/* Optionally execute a command after we're done */
if ($this->initially_was_account == $this->is_account){