Merchandise To Reduction You Bring together Money On-line
/SCRIPTROCKET.COM PHP SCRIPTS: CBMULTILINK
Copyright (C) 2004-2016, Answers 2000 Tiny.
Unauthorized copy, distribution or preparation of spinoff
works is precisely prohibited. Please gape the the License Agreement
shipped with the instrument for terms of exercise.
In case you received a copy of this instrument from any particular person or entity
as a replace of Answers 2000 Tiny, you will own carried out so with out permission
of the copyright-holder (Answers 2000 Tiny).
*/
/DO NOT MODIFY THIS FILE
*/
//
$var_search = ‘pid,hop,provide’ ;
consist of ‘a2krg_advfix.inc.php’ ;
$selfname = ‘cmj.php’ ; // feeble by cmutil to calculate config direction
$readconfig = 2 ; // which config file to read
consist of ‘cmutil.inc.php’ ;
//
if ( isset($provide) )
{
$provide = strtolower( $provide ) ;
$provide = handsome( preg_replace(‘/[^a-z0-9]/’,”,$provide ) ) ;
$pid = $provide ;
} else
{
if ( isset($pid) )
{
$pid = strtolower( $pid ) ;
$pid = handsome( preg_replace(‘/[^a-z0-9]/’,”,$pid ) ) ;
}
}
if ( isset($hop) )
{
$hop = strtolower( $hop ) ;
$hop = handsome( preg_replace(‘/[^a-z0-9]/’,”,$hop ) ) ;
}
// strive reading configuration
$btest1 = cmReadConfig( $configdata ) ;
if ( !$btest1 )
{
echo ‘Error can’t read “‘.$configfile.'”‘ ;
exit() ;
}
$defaulturl = $configdata[‘landingurl’] ;
//echo ‘
default=’.$default.’
‘ ;
if (
( !isset($defaulturl) ) ||
( $defaulturl == ” )
)
{
echo ‘The set up assignment for CBMultiLink has not been carried out 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 – lunge to default landing page, and verify out to share some data
$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
{
// lunge 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( “Enviornment: ” . $gotourl . “nn” ) ;
exit;
exit() ;
?>