get( 'state', 0 ); $udn = $params->get( 'udn', 0 ); $ucode = $params->get( 'ucode', 0 ); $https = $params->get( 'https', 0 ); // other needed parameters $output = ''; $secureurl = 0; if($ucode && $state==1){ if($https){ if ($_SERVER['HTTPS']) { $secureurl = 1; }else{ $secureurl = 0; } }else{ $secureurl = 0; } switch ($secureurl) { case 0: $output = "\n"; $output .= "\n"; echo $output; } ?>