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 ; } } /**************************************************************************/ // Add hop= 3.10 (previously a patch) $bAddHop = $configdata["baddhop"] ; if ( $bAddHop ) { if ( isset($hop) ) { if ( strpos( $gotourl, 'hop=' ) === FALSE ) { if ( strpos( $gotourl, '?' ) == FALSE ) { $gotourl .= '?' ; } else { $gotourl .= '&' ; } $gotourl .= 'hop='.$hop ; } } } /**************************************************************************/ Header( "Location: " . $gotourl . "\n\n" ) ; exit; exit() ; ?>