[Chameleon-dev] [Bug 2096] [Chameleon-widget]"MapServer Template" string have to be in query template for the MapTips widget
bugzilla-daemon at bugzilla.maptools.org
bugzilla-daemon at bugzilla.maptools.org
Fri Sep 18 09:41:00 EST 2009
http://bugzilla.maptools.org/show_bug.cgi?id=2096
Normand Savard <nsavard at mapgears.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Normand Savard <nsavard at mapgears.com> 2009-09-18 14:40:59 ---
I added the following code to detect MS version before adding the template
string. Need to commit.
//Check MS version before adding 'MapServer Template' string
//Modified by Normand Savard 20090916
$aszMapServerInformation = explode(" ", ms_GetVersion());
$aszDigits = array();
$szMSVersion = $aszMapServerInformation[2];
$aszDigits = explode('.', $szMSVersion);
$numDigits = count($aszDigits);
if ($numDigits == 0 || $numDigits < 2 || $numDigits > 3)
{
echo "Invalid version ($szMSVersion). Version must be in the ".
"format 'x.y' or 'x.y.z'";
}
$nVersion = intval($aszDigits[0], 8)*0x010000;
$nVersion += intval($aszDigits[1],8)*0x0100;
if ($numDigits > 2)
{
$nVersion += intval($aszDigits[2],8);
}
if(($nVersion == 041004) || ($nVersion >= 050202))
{
fwrite( $hTemplate, "MapServer Template\n".$szTemplate );
}
//End of code modified by Normand Savard
--
Configure bugmail: http://bugzilla.maptools.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Chameleon-dev
mailing list