Affirmations AffirmaLife Wealth Accelerator Masterclass

Affirmations AffirmaLife Wealth Accelerator Masterclass

 Buy Now
Facebook Twitter GooglePlus Pinterest

/* SCRIPTROCKET.COM PHP SCRIPTS: CBMULTILINK
*
* Copyright (C) 2004-2013, Answers 2000 Limited.
*
* Unauthorized reproduction, distribution or preparation of derivative
* works is strictly prohibited. Please see the the License Agreement
* shipped with the software for terms of use.
*
* If you received a copy of this software from any person or entity
* other than Answers 2000 Limited, you have done so without permission
* of the copyright-holder (Answers 2000 Limited).
*/

/*
* DO NOT MODIFY THIS FILE
*/

/**************************************************************************/

$var_search = 'pid,hop,offer' ;

include 'a2krg_advfix.inc.php' ;
$selfname = 'cmj.php' ; // used by cmutil to calculate config path
$readconfig = 2 ; // which config file to read
include 'cmutil.inc.php' ;

/**************************************************************************/

if ( isset($offer) )
{
$offer = strtolower( $offer ) ;
$offer = trim( preg_replace('/[^a-z0-9]/','',$offer ) ) ;
$pid = $offer ;
} else
{
if ( isset($pid) )
{
$pid = strtolower( $pid ) ;
$pid = trim( preg_replace('/[^a-z0-9]/','',$pid ) ) ;

}
}

if ( isset($hop) )
{
$hop = strtolower( $hop ) ;
$hop = trim( preg_replace('/[^a-z0-9]/','',$hop ) ) ;
}

// try reading configuration
$btest1 = cmReadConfig( $configdata ) ;

if ( !$btest1 )
{
echo 'Error can not read "'.$configfile.'"' ;
exit() ;
}

$defaulturl = $configdata['landingurl'] ;
//echo '


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 ;
}
}

/**************************************************************************/

Header( "Location: " . $gotourl . "nn" ) ;
exit;

exit() ;

?>


Leave a Reply

Your email address will not be published.

Skip to toolbar