cvs: pres2 / display.php
| From: | Rasmus Lerdorf | Date: | Wed, 16 Nov 2005 07:24:22 +0000 |
| Subject: | cvs: pres2 / display.php | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1221@lists.php.net to get a copy of this message | ||
rasmus Wed Nov 16 02:24:22 2005 EDT
Modified files:
/pres2 display.php
Log:
Don't see why this is hardcoded to localhost
http://cvs.php.net/diff.php/pres2/display.php?r1=1.29&r2=1.30&ty=u
Index: pres2/display.php
diff -u pres2/display.php:1.29 pres2/display.php:1.30
--- pres2/display.php:1.29 Fri Oct 7 06:19:36 2005
+++ pres2/display.php Wed Nov 16 02:24:19 2005
@@ -1621,7 +1621,7 @@
switch($example->type) {
case 'genimage':
$fn = tempnam("/tmp","pres2");
- $img = file_get_contents("http://localhost/".$this->baseDir.$this->slideDir.$example->filename,"r");
+ $img = file_get_contents("http://".$_SERVER['HTTP_HOST']."/".$this->baseDir.$this->slideDir.$example->filename,"r");
$fp_out = fopen($fn,"wb");
fwrite($fp_out,$img);
fclose($fp_out);