array('regexp'=>'/^[0-9]{1,2}$/i'))) !== FALSE) $type = $_GET['type']; else $error = true; } else $type = 0; if(isset($_GET['player'])) { $player = 'http://media.telecoms.com/jwplayer/player.swf'; }else{ $player = 'http://media.telecoms.com/video_page/vPlayer.swf'; } if($error) { echo 'URL has an error. Please check the URL.'; exit(); } switch($type) { case 0: $video = 'http://media.telecoms.com/cdn/'.$video; break; case 1: $video = 'http://cdn.informatm.com/videos/'.$video; break; } ?> PLAY VIDEO