Location: PHPKode > scripts > BungeeBones Category and Link Repository > bungeebones-category-and-link-repository/bunbones_dynamic_hdr.php
<?php $var = explode("/", $_SERVER['REQUEST_URI']);
include($_SERVER['DOCUMENT_ROOT']."/wp-content/plugins/bungeebones-remotely-hosted-web-directory/bunbones_config.php");

If($var[2 + $offset]==$bb_permalink_name||$var[1]=="?page_id=".$affiliate_num)
{
$db_affiliate_num = $var[3 + $offset] ;//rdb link id on record for this url

if($affiliate_num != $db_affiliate_num and $db_affiliate_num  != ""){
echo 'There is an error in your configuration. The "affiliate" or link number we have on record for this site does not match the one in your wp-content/plugins/bungeebones-remotely-hosted-web-directory/bunbones_config.php file';
}

$url_cat = $var[4 + $offset] ;//repnaming header_ID
$cat_page_num = $var[5  + $offset] ;//part 3 of cat series
$cat_page_total = $var[6  + $offset] ;//part 2 of cat series
$pagem_url_cat = $var[7  + $offset] ;//part 2 of cat series
$link_page_id = $var[8  + $offset] ;//part 2 of link series
$link_page_total = $var[9  + $offset] ;//part 3 of link series
$link_record_num = $var[10  + $offset] ;//part 3 of link series
$regional_number = $var[11 + $offset] ;//part 3 of link series

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<?

// for an in depth tutorial and feature list of curl 
//visit http://www.tuxradar.com/practicalphp/15/10/2
// can be set  up to use FTP and password euser names
//CURLOPT_FTPAPPEND will just append data to an existing file instead of replacing it
$file ="http://BungeeBones.com/make_header/dyn_hdrcss.php/$url_cat/$affiliate_num/";
 
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, $file);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data1 = curl_exec($ch);
curl_close($ch);
echo($data1); 
}
else
{
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php wp_title('&middot;', true, 'right'); ?> <?php bloginfo('name'); ?></title>
<?php
}
Return current item: BungeeBones Category and Link Repository