function GetParameters($params) { global $clr, $allowTransparency, $transparent, $locale; $locale = ValidateLocaleString(GetParameter($params, 'LOCALE')); $clr = ValidateColorString(GetParameter($params, 'CLR')); $allowTransparency = GetIntParameter($params, 'ALLOWTRANS') == 1; $transparent = GetIntParameter($params, 'TRANS') == 1; }
function GetParameters() { global $params, $selText, $locale; global $mapName, $sessionId, $bufferName, $lcolor, $ffcolor, $fbcolor, $layersParam, $popup; global $transparent, $distance, $units, $linestyle, $fillstyle, $thickness, $merge, $foretrans; $sessionId = ValidateSessionId(GetParameter($params, 'SESSION')); $locale = ValidateLocaleString(GetParameter($params, 'LOCALE')); $mapName = ValidateMapName(GetParameter($params, 'MAPNAME')); $lcolor = ValidateColorString(GetParameter($params, 'LCOLOR')); $ffcolor = ValidateColorString(GetParameter($params, 'FFCOLOR')); $fbcolor = ValidateColorString(GetParameter($params, 'FBCOLOR')); $popup = GetIntParameter($params, 'POPUP'); $transparent = GetIntParameter($params, 'TRANSPARENT'); $distance = GetDecimalFromLocalizedString(GetParameter($params, 'DISTANCE'), $locale); if (isset($params['MERGE'])) { $merge = 1; } $foretrans = GetDoubleParameter($params, 'FORETRANS'); $thickness = GetDoubleParameter($params, 'THICKNESS'); $bufferName = GetParameter($params, 'BUFFER'); $layersParam = GetParameter($params, 'LAYERS'); $units = GetParameter($params, 'UNITS'); $linestyle = GetParameter($params, 'LINESTYLE'); $fillstyle = GetParameter($params, 'FILLSTYLE'); $selText = GetParameter($params, 'SELECTION'); //unescape strings // if (ini_get("magic_quotes_sybase") == "1") { $selText = str_replace("''", "'", $selText); } else { if (get_magic_quotes_gpc() == "1") { //Unescape double quotes $selText = str_replace('\\"', '"', $selText); //remove additional backslash $selText = str_replace("\\", "", $selText); } } if ((int) $foretrans < 0 || (int) $foretrans > 100) { $foretrans = 50; } }
function GetParameters($params) { global $mapDefinition, $type; global $infoWidth, $showLegend, $showProperties, $sessionId; global $locale, $hlTgt, $hlTgtName, $showSlider; global $selectionColor, $mapImgFormat, $selImgFormat, $pointBufferSize; $sessionId = ValidateSessionId(GetParameter($params, 'SESSION')); $locale = ValidateLocaleString(GetParameter($params, 'LOCALE')); $hlTgt = ValidateHyperlinkTargetValue(GetParameter($params, 'HLTGT')); $hlTgtName = ValidateFrameName(GetParameter($params, 'HLTGTNAME')); $mapDefinition = ValidateResourceId(GetParameter($params, 'MAPDEFINITION')); $showLegend = GetIntParameter($params, 'SHOWLEGEND') == 1; $showProperties = GetIntParameter($params, 'SHOWPROP') == 1; $showSlider = GetIntParameter($params, 'SHOWSLIDER') == 1; $infoWidth = GetIntParameter($params, 'INFOWIDTH'); $type = GetParameter($params, 'TYPE'); $selectionColor = ValidateColorString(GetParameter($params, 'SELCOLOR'), 8); $mapImgFormat = GetParameter($params, 'MAPIMGFORMAT'); $selImgFormat = GetParameter($params, 'SELIMGFORMAT'); $pointBufferSize = GetIntParameter($params, 'POINTBUFFERSIZE'); }