<?php
// ############################### Dynamic Scripting Section - Do not touch the script code ####################

$ScriptName = $_SERVER["PHP_SELF"];
$d = $_SERVER["SERVER_NAME"];

$i = 0 ;
$QueryString ="";
$QueryString .= "ScriptName=" .urlencode($ScriptName);
$QueryString .= "&syst=new&d=" .urlencode($d);
foreach ($_GET as $key => $value) {
	$value = urlencode(stripslashes($value));
	$QueryString .= "&$key=$value";
}


function GetData($QueryString)
{

if(intval(get_cfg_var('allow_url_fopen')) && function_exists('readfile')) {
    if(!@readfile("http://www.build-reciprocal-links.com/directory/indexdir.asp?".$QueryString)) {
        echo "Error processing request";
    }
}
elseif(intval(get_cfg_var('allow_url_fopen')) && function_exists('file')) {
    if(!($content = @file("http://www.build-reciprocal-links.com/directory/indexdir.asp?".$QueryString))) {
        echo "Error processing request";
    }
    else {
        echo @join('', $content);
    }
}
elseif(function_exists('curl_init')) {
    $ch = curl_init ("http://www.build-reciprocal-links.com/directory/indexdir.asp?".$QueryString);
    curl_setopt ($ch, CURLOPT_HEADER, 0);
    curl_exec ($ch);

    if(curl_error($ch))
        echo "Error processing request";

    curl_close ($ch);
}
else {
    echo "Error....All functions for handling remote pages are disabled my your web host. Contact Your web host to enable remote pages hadling PHP function like curl or fopen";
}
}

function GetMetaData($QueryString,$title)
{

$QueryString .= "&title=" .urlencode($title);
if(intval(get_cfg_var('allow_url_fopen')) && function_exists('readfile')) {
    if(!@readfile("http://www.build-reciprocal-links.com/directory/GetMetaData.asp?".$QueryString)) {
        echo "Error processing request";
    }
}
elseif(intval(get_cfg_var('allow_url_fopen')) && function_exists('file')) {
    if(!($content = @file("http://www.build-reciprocal-links.com/directory/GetMetaData.asp?".$QueryString))) {
        echo "Error processing request";
    }
    else {
        echo @join('', $content);
    }
}
elseif(function_exists('curl_init')) {
    $ch = curl_init ("http://www.build-reciprocal-links.com/directory/GetMetaData.asp?".$QueryString);
    curl_setopt ($ch, CURLOPT_HEADER, 0);
    curl_exec ($ch);

    if(curl_error($ch))
        echo "Error processing request";

    curl_close ($ch);
}
else {
    echo "Error....All functions for handling remote pages are disabled my your web host. Contact Your web host to enable remote pages hadling PHP function like curl or fopen";
}
}
// ############################### Dynamic Scripting Section - Completed #############################################
?>


<!-- HTLM CODE -->

<html>
<title><?php GetMetaData($QueryString,"title");?></title>
<meta name="keywords" content="<?php GetMetaData($QueryString,"keywords");?>">
<meta name="description" content="<?php GetMetaData($QueryString,"description");?>">
<body>

<!-- HEADER SECTION - OPTIONAL - YOU CAN ADD YOUR HEADER DATA HERE -->
<!-- HEADER SECTION COMPLETED -->


<!-- LINKS DIRECTORY SECTION - DON'T TOUCH THIS CODE -->

<?php
GetData($QueryString);
?>
<!-- DIRECTORY SECTION COMPLETED -->


<!-- FOOTER SECTION STARTS HERE - ADD YOUR FOOTER CODE - OPTIONAL -->
<!-- FOOTER SECTION COMPLETED -->

</body>
</html>

<!-- HTLM CODE ENDS HERE -->
 
