From 194a2dac42dd0fd884f87f9bff58e257f38244a9 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 9 Nov 2005 10:02:23 +0000 Subject: [PATCH] Added http://servername/ppd/ to gotoPrinterPPD git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1888 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_printGeneric.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc index 7c32d07de..6d495c736 100644 --- a/plugins/admin/systems/class_printGeneric.inc +++ b/plugins/admin/systems/class_printGeneric.inc @@ -59,6 +59,9 @@ class printgeneric extends plugin $this->base= preg_replace ("/^[^,]+,[^,]+,[^,]+,/", "", $this->dn); } + if(isset($this->gotoPrinterPPD)){ + $this->gotoPrinterPPD = preg_replace("/http.*ppd\//i","",$this->gotoPrinterPPD); + } /* In case of gotoWorkstation this tab is calles from workstation plugin * in case of gotoTerminal it is called from a terminal tab @@ -511,6 +514,9 @@ class printgeneric extends plugin $this->attrs= $attrs; } + print_a($_SERVER); + $str = preg_replace("/".$_SERVER['SERVER_NAME'].".*$/i",$_SERVER['SERVER_NAME']."/ppd/",$_SERVER['HTTP_REFERER']); + $this->attrs['gotoPrinterPPD'] = $str.$this->attrs['gotoPrinterPPD']; /* Append printer user */ -- 2.30.2