Update of /cvsroot/openfirst/forum
In directory sc8-pr-cvs1:/tmp/cvs-serv14239/forum
Modified Files:
thread.php
Log Message:
Fixed Bug#16. Checks for "http://" in image location before appending $basepath.
Index: thread.php
===================================================================
RCS file: /cvsroot/openfirst/forum/thread.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** thread.php 6 Jan 2004 14:38:20 -0000 1.8
--- thread.php 6 Jan 2004 14:54:18 -0000 1.9
***************
*** 200,204 ****
$ret = "<h4>$username</h4><div>$user->description</div>";
if ($user->picturelocation != "") {
! $ret .= '<div><img src="'.$GLOBALS["basepath"]."/members/".$user->picturelocation.'"></div>';
}
if ($user->membertype == "administrator") {
--- 200,208 ----
$ret = "<h4>$username</h4><div>$user->description</div>";
if ($user->picturelocation != "") {
! if (stristr($user->picturelocation,"http://")) {
! $ret .= '<div><img src="'.$user->picturelocation.'"></div>';
! } else {
! $ret .= '<div><img src="'.$GLOBALS["basepath"]."/members/".$user->picturelocation.'"></div>';
! }
}
if ($user->membertype == "administrator") {
|