summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 194a2da)
raw | patch | inline | side by side (parent: 194a2da)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 9 Nov 2005 10:09:12 +0000 (10:09 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 9 Nov 2005 10:09:12 +0000 (10:09 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1889 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 6d495c7365707db1065e8dff99d45ba81f907e8f..39a869fd2b16f3b1121a2c1b6c1d63a6d40062c2 100644 (file)
$this->attrs= $attrs;
}
- print_a($_SERVER);
- $str = preg_replace("/".$_SERVER['SERVER_NAME'].".*$/i",$_SERVER['SERVER_NAME']."/ppd/",$_SERVER['HTTP_REFERER']);
+ if(preg_match("/https/i",$_SERVER['HTTP_REFERER'])){
+ $method="https://";
+ }else{
+ $method="http://";
+ }
+
+ $str = $method.$_SERVER['SERVER_NAME']."/ppd/";
$this->attrs['gotoPrinterPPD'] = $str.$this->attrs['gotoPrinterPPD'];
/* Append printer user