From 04e6ae6e65ff254cb84d917db3ceb05ebd986b9e Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 28 Sep 2006 07:36:38 +0000 Subject: [PATCH] Fixed missing ppd config error. Fixed acls for net config git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4808 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_printGeneric.inc | 37 +++++++++++++------- 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc index 55df6ad66..72d099ca0 100644 --- a/plugins/admin/systems/class_printGeneric.inc +++ b/plugins/admin/systems/class_printGeneric.inc @@ -150,6 +150,17 @@ class printgeneric extends plugin } } + function set_acl_base($base) + { + plugin::set_acl_base($base); + $this->netConfigDNS->set_acl_base($base); + } + + function set_acl_category($cat) + { + plugin::set_acl_category($cat); + $this->netConfigDNS->set_acl_category($cat); + } /* Detect type of printer. * Printer can be stand alone, belong to a workstation or belong to a terminal. @@ -704,6 +715,19 @@ class printgeneric extends plugin $this->PPDdialogToSave->save_ppd(); } + if(preg_match("/https/i",$_SERVER['HTTP_REFERER'])){ + $method="https://"; + }else{ + $method="http://"; + } + + /* If no ppd is selected, remove this attribute */ + if(!empty($this->gotoPrinterPPD)) { + $this->gotoPrinterPPD = $method.str_replace("//","/",$_SERVER['SERVER_NAME']."/ppd/".$this->gotoPrinterPPD); + }else{ + $this->gotoPrinterPPD = array(); + } + $dn= $this->dn; plugin::save(); $ldap= $this->config->get_ldap_link(); @@ -723,19 +747,6 @@ class printgeneric extends plugin $this->attrs= $attrs; } - if(preg_match("/https/i",$_SERVER['HTTP_REFERER'])){ - $method="https://"; - }else{ - $method="http://"; - } - - /* If no ppd is selected, remove this attribute */ - if(!empty($this->gotoPrinterPPD)) { - $this->attrs['gotoPrinterPPD'] = $method.str_replace("//","/",$_SERVER['SERVER_NAME']."/ppd/".$this->gotoPrinterPPD); - }else{ - $this->attrs['gotoPrinterPPD'] = array(); - } - /* Append printer user */ $this->attrs['gotoUserPrinter']=array(); -- 2.30.2