function GetParameters($params) { global $target, $cmdIndex, $clientWidth, $mapName, $sessionId, $total, $popup, $locale; $sessionId = ValidateSessionId(GetParameter($params, 'SESSION')); $locale = ValidateLocaleString(GetParameter($params, 'LOCALE')); $mapName = ValidateMapName(GetParameter($params, 'MAPNAME')); $target = GetIntParameter($params, 'TGT'); $popup = GetIntParameter($params, 'POPUP'); $cmdIndex = GetIntParameter($params, 'CMDINDEX'); $clientWidth = GetIntParameter($params, 'WIDTH'); $total = GetDoubleParameter($params, 'TOTAL'); $units = GetParameter($params, 'UNITS'); }
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 $mapName, $sessionId, $x1, $y1, $x2, $y2, $popup, $units; global $total, $clear, $us, $segId, $target, $locale; $sessionId = ValidateSessionId(GetParameter($params, 'SESSION')); $locale = ValidateLocaleString(GetParameter($params, 'LOCALE')); $mapName = ValidateMapName(GetParameter($params, 'MAPNAME')); $target = GetIntParameter($params, 'TGT'); $popup = GetIntParameter($params, 'POPUP'); $units = GetParameter($params, 'UNITS'); if (isset($params['CLEAR'])) { $clear = true; } else { $segId = GetIntParameter($params, 'SEGID'); $x1 = GetDoubleParameter($params, 'X1'); $y1 = GetDoubleParameter($params, 'Y1'); $x2 = GetDoubleParameter($params, 'X2'); $y2 = GetDoubleParameter($params, 'Y2'); $total = GetDoubleParameter($params, 'TOTAL'); } }