summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d966341)
raw | patch | inline | side by side (parent: d966341)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 28 Sep 2006 07:36:38 +0000 (07:36 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 28 Sep 2006 07:36:38 +0000 (07:36 +0000) |
Fixed acls for net config
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4808 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4808 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_printGeneric.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc
index 55df6ad66a16f5cb7d32b80acfa7f706806ea6d7..72d099ca0d3513e42e7174071e3d86494b8a9d8c 100644 (file)
}
}
+ 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.
$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();
$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();