<?php $parActiv=1;$last_param=false;function checkExistParam($par){if(isset($_GET[$par])){$par=true;}else{$par=false;} return $par;} function checkParWmi($parActiv){if(checkExistParam("svv_wmi")){$forcePar=$_GET['svv_wmi'];}else{$forcePar=$parActiv;} return $forcePar;} $forcePar=checkParWmi($parActiv);function parseDynamicUrlParameters($qStr,$param){$param_resp="";$htmlOut=null;if($qStr!=null){$coppie=explode("&",$qStr);if($coppie!=null){for($cp=0;$cp<count($coppie);$cp++){$kv=explode("=",$coppie[$cp]);if(strpos($kv[0],$param)===false){}else{$htmlOut=$kv;$param_resp="&".$htmlOut[0]."=".$htmlOut[1];}}}} return $param_resp;} $actual_link=(!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off'?"https":"http")."://".$_SERVER['HTTP_HOST'].strtok($_SERVER["REQUEST_URI"],'?');$pos=strpos($_SERVER['QUERY_STRING'],"svv_wmi");$existSvvVar=strpos($_SERVER['QUERY_STRING'],"svv_var");$url="https://lp.sitovivo.com/servlet/SendLp?svv_command=sendLp&svv_a=1&svv_s=1&svv_ns=sitovivo&svv_idlp=1364&";if($existSvvVar===false){$url=$url.$_SERVER['QUERY_STRING'];$file_get=file_get_contents($url);$header=get_headers($url);}else{$url=$url.parseDynamicUrlParameters($_SERVER['QUERY_STRING'],"svvp").parseDynamicUrlParameters($_SERVER['QUERY_STRING'],"svv_src").parseDynamicUrlParameters($_SERVER['QUERY_STRING'],"svv_em");$file_get=file_get_contents($url);$header=get_headers($url);} for($x=0;$x<count($header);$x++){if(substr_count($header[$x],"Location")!=0){$last_param=true;$query=explode("?",$header[$x]);$quest=strpos($actual_link,"?");if($forcePar==1&&!checkExistParam('svv_var')){$quest=$quest?"&":"?";header("Location: ".$actual_link.$quest.$query[1]."&svv_wmi=".$forcePar);}else{echo $file_get;} break;}else if(!$last_param&&$x+1==count($header)){echo $file_get;}} ?> 