Code

Added http://servername/ppd/ to gotoPrinterPPD
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 9 Nov 2005 10:02:23 +0000 (10:02 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 9 Nov 2005 10:02:23 +0000 (10:02 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1888 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_printGeneric.inc

index 7c32d07de5bfa91288bee819269b7170d2694fec..6d495c7365707db1065e8dff99d45ba81f907e8f 100644 (file)
@@ -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 
      */