Thread: BHD Heartbeat
View Single Post
  #8  
Old 12-31-2018, 08:49 AM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,921

Sorry just got back from Christmas break... You're right, it should be:

Code:
if(file_exists("./mapimages/".strtolower($Server['MissionFile']).".jpg")) {
	echo "<img src=\"./mapimages/".strtolower($Server['MissionFile']).".jpg\" />";
} else {
	echo "<img src=\"./mapimages/nophoto.jpg\" />";
}
The map photos should be in the directory called mapimages and should be named like mapname.bms.jpg (Make sure the .bms or whatever is part of the file name)

If you need some more help I can ftp in and help you out.
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote