default='.$default.'
' ; if ( ( !isset($defaulturl) ) || ( $defaulturl == '' ) ) { echo 'The installation process for CBMultiLink has not been completed or the configuration file has been corrupted.' ; exit() ; } $gotourl = $defaulturl ; /**************************************************************************/ if ( ( isset($pid) ) || ( $pid != '' ) ) { $key = 'lpurl/'.$pid ; //echo '
key='.$key.'
' ; $url = $configdata[$key] ; //echo '
url='.$key.'
' ; if ( (!isset($url)) || ($url == '' ) ) { // Unknown PID - go to default landing page, and try to share some info $gotourl = $defaulturl ; if ( strpos( $gotourl, '?' ) ) { $gotourl .= '&pid='.$pid ; } else { $gotourl .= '?pid='.$pid ; } if ( (isset($hop)) && ($hop!='') ) { if ( strpos( $gotourl, '?' ) ) { $gotourl .= '&hop='.$hop ; } else { $gotourl .= '?hop='.$hop ; } } } else { // go PID's landing page $gotourl = $url ; } } /**** Added by Alvin - start *****/ if (strpos($gotourl,'?') !== false) { $gotourl .= '&hop='.$hop ; } else { $gotourl .= '?hop='.$hop ; } if ($id != "") { $gotourl .= '&id='.$id ; } if ($id2 != "") { $gotourl .= '&id2='.$id2 ; } if ($tid != "") { $gotourl .= '&tid='.$tid ; } //filter out the bad cb IDs if ( strcmp($hop,"pandorac")==0 || strcmp($hop,"bustaphat")==0 || strcmp($hop,"mymelon")==0 || strcmp($hop,"martar")==0 || strcmp($hop,"jon0121")==0 || strcmp($hop,"jvgrago")==0 || strcmp($hop,"jasm78")==0 || strcmp($hop,"webwide")==0 || strcmp($hop,"14400")==0 || strcmp($hop,"540nick")==0 || strcmp($hop,"joeymiceli")==0 || strcmp($hop,"solveit4us")==0 || strcmp($hop,"atzewei")==0 || strcmp($hop,"kunard333")==0 || strcmp($hop,"rrebenx")==0 || strcmp($hop,"sopony")==0 || strcmp($hop,"awm970")==0 || strcmp($hop,"surathrout")==0 || strcmp($hop,"taradolc")==0 ) { $gotourl = "http://www.cnn.com"; } /**** Added by Alvin - end *****/ /**************************************************************************/ Header( "Location: " . $gotourl . "\n\n" ) ; exit; exit() ; ?>