options["register"]->moderation_state==CXP_MODERATION_STATE_NEUTRAL)
{
?>
Last we checked your blog was still pending moderation. Click here to check the status.Unfortunately, your blog was not approved to be part of our network.
You can have your blog re-moderated in the future, but you will have to Uninstall it first and go through the registration process again. Note that if you are denied access several times, your domain name may be banned from the network indefinitely.
/i',array($this,"fd_getNewId"),ob_get_clean());
}}
class TCXPComponent_Plugin_Page_Settings extends TFDWPComponent_Plugin_Page
{
var $fd_var_array_ids = array();
function fd_getNewId($matches)
{
return ($this->fd_var_array_ids[$matches[1]] = TFD_General::GenerateRandomString(30));
}
function fd_getResource($identifier,$islocal = false)
{
return TFDResource_Map::Get(((isset($this))?get_class($this):__CLASS__),$identifier,$islocal);
}
function Initialize()
{
$options["settings"] = new TCXPOptions_Settings();
$options["settings"]->Load();
$options["register"] = new TCXPOptions_Register();
$options["register"]->Load();
if ($options["register"]->IsRegistered())
{
$this->title = "Settings";
}
else
{
$this->title = "Register";
}
$this->property_Add("options",$options);
$this->property_Add("moderation",array());
$this->property_Add("showcore",true);
$this->property_Add("error",false);
$this->property_Add("success",false);
$this->property_Add("registered",false);
$this->property_Add("error_sub1","");
$this->property_Add("error_sub2","");
$this->property_Add("error_sub3","");
$this->property_Add("error_which","");
$this->property_Add("params",array("firstname"=>"","lastname"=>"","email"=>"","outbound"=>6,"cachelinks"=>0,"contextlinks"=>array(),"updateprevious"=>1));
}
function OnPost()
{
foreach($this->params as $name=>$value) if (!is_array($this->params[$name])) $this->params[$name] = TFDGeneral::GetParam($_POST,$name);
foreach($this->options["settings"] as $name=>$value) if (isset($_POST[$name])) $this->options["settings"]->$name = $_POST[$name];
for($i=0;$iparams["contextlinks"][$i]["url"] = TFDGeneral::GetParam($_POST,$urlname);
$this->params["contextlinks"][$i]["keyword"] = TFDGeneral::GetParam($_POST,$keywordname);
}
$moderation_code = TFDGeneral::GetParam($_POST,"moderation_code");
if ($moderation_code!="")
{
$this->moderation["code"] = $moderation_code;
$this->moderation["urls"] = array();
$this->moderation["answers"] = array();
$i = 0;
while(isset($_POST["moderation_url_".$i]))
{
$this->moderation["urls"][] = TFDGeneral::GetParam($_POST,"moderation_url_".$i);
$this->moderation["answers"][] = TFDGeneral::GetParam($_POST,"moderation_".$i);
$i++;
}
foreach($this->moderation["answers"] as $answer)
{
if (($answer!="a") && ($answer!="d"))
{
$this->error = "Some of the fields provided were invalid (see below)";
$this->error_sub3 = "Please select a moderation decision for all partner blogs.";
return;
}
}
}
$args_params = array("firstname","lastname","email","outbound","cachelinks","updateprevious");
for($i=0;$imoderation["answers"]);
}
if ($this->options["register"]->IsRegistered())
{
if (isset($_POST["pastposts"])) if (($_POST["pastposts"]=="1") && ($_POST["delaylinks"]=="1"))
{
$args["slow_timestamp"] = "ok";
$args["slow_total"] = TCXPTable_Posts::GetAllBeforeCount($this->options["register"]->timestamp);
}
$res = TCXPCommunicator::Save($this->options["register"],$args);
if ($res==null)
{
$this->error = "We were unable to connect to the server. Please try again shortly";
}
else
{
$this->options["register"]->moderation_state = $res["moderation_state"];
$this->options["register"]->Save();
if ($res["success"])
{
$this->success = true;
$this->options["settings"]->Save();
if (isset($res["moderation"]))
{
$this->moderation = $res["moderation"];
$this->moderation["answers"] = array();
foreach($this->moderation["urls"] as $url) $this->moderation["answers"][] = "";
}
else
{
$this->moderation = array();
}
if (isset($_POST["pastposts"])) if ($_POST["pastposts"]=="1")
{
TCXPTable_Posts::IncludeAllBefore($this->options["register"]->timestamp);
}
}
else
{
$args_params = array("error","error_sub1","error_sub2","error_sub3","error_which");
foreach($args_params as $name) $this->$name = TFDGeneral::GetParam($res,$name);
if (isset($res["moderation"]))
{
$this->moderation = $res["moderation"];
$this->moderation["answers"] = array();
foreach($this->moderation["urls"] as $url) $this->moderation["answers"][] = "";
}
}
}
}
else
{
$this->options["register"]->verifycode = TFDGeneral::GenerateRandomString(30);
$this->options["register"]->Save();
$args["verifycode"] = $this->options["register"]->verifycode;
if (($this->options["settings"]->pastposts==1) && ($this->options["settings"]->delaylinks==1))
{
$args["slow_timestamp"] = "ok";
$args["slow_total"] = TCXPTable_Posts::GetAllBeforeCount(time());
}
$res = TCXPCommunicator::Register($args);
if ($res==null)
{
$this->error = "We were unable to connect to the server. Please try again shortly";
}
else
{
if ($res["success"])
{
$this->options["register"]->identifier = $res["user"]["identifier"];
$this->options["register"]->secretcode = $res["user"]["secretcode"];
$this->options["register"]->timestamp = time();
$this->options["register"]->Save();
$this->registered = true;
$this->options["settings"]->Save();
$this->moderation = array();
TCXPTable::CreateAll();
if ($this->options["settings"]->pastposts==1)
{
TCXPTable_Posts::IncludeAllBefore(time());
}
}
else
{
$args_params = array("error","error_sub1","error_sub2","error_sub3","error_which");
foreach($args_params as $name) $this->$name = TFDGeneral::GetParam($res,$name);
if (isset($res["moderation"]))
{
$this->moderation = $res["moderation"];
$this->moderation["answers"] = array();
foreach($this->moderation["urls"] as $url) $this->moderation["answers"][] = "";
}
}
}
}
}
function BeforeShow()
{
if (isset($_POST["onpost"]))
{
$this->OnPost();
}
else
{
if ($this->options["register"]->IsRegistered())
{
$res = TCXPCommunicator::Settings($this->options["register"]);
if ($res==null)
{
$this->error = "We were unable to connect to the server. Please try again shortly";
$this->showcore = false;
}
else
{
if ($res["success"])
{
$res["user"]["updateprevious"] = 1;
$this->params = $res["user"];
$this->options["register"]->moderation_state = $res["user"]["moderation_state"];
$this->options["register"]->Save();
if (isset($res["moderation"]))
{
$this->moderation = $res["moderation"];
$this->moderation["answers"] = array();
foreach($this->moderation["urls"] as $url) $this->moderation["answers"][] = "";
}
}
else
{
$this->error = $res["error"];
$this->showcore = false;
}
}
}
else
{
$res = TCXPCommunicator::Moderation();
if ($res==null)
{
$this->error = "We were unable to connect to the server. Please try again shortly";
$this->showcore = false;
}
else
{
if ($res["success"])
{
$this->moderation["code"] = $res["code"];
$this->moderation["urls"] = $res["urls"];
$this->moderation["answers"] = array();
foreach($this->moderation["urls"] as $url) $this->moderation["answers"][] = "";
}
}
}
}
}
function Box_ContextualLinks()
{
ob_start();
?>error_sub2!="")
{
?>
error_sub2); ?>
Please enter up to 10 URLs & the associated anchor text / keyword phrases you wish to link each URL to contextually on other partners blogs. Please note that you can only advertise the domain you have installed the plug-in on (the domain you're on now). No third party URL's will be accepted.
/i',array($this,"fd_getNewId"),ob_get_clean());
}
function Box_NetworkModeration()
{
ob_start();
?>error_sub3!="")
{
?>
error_sub3); ?>
Please review the following blogs to ensure they meet network quality guidelines and either approve or deny them. Please note that selecting to approve or deny other blogs does not have any impact or bearing on your own acceptance within the network. Please DO NOT RUSH this process. The quality of the network should be as important to you as it is to us.
">
moderation["urls"] as $url)
{
$i++;
?>
/i',array($this,"fd_getNewId"),ob_get_clean());
}
function Box_NetworkSettings()
{
ob_start();
?>error_sub1!="")
{
?>
error_sub1); ?>
These are general settings for the plug-in. The most important setting here is "Outbound Links Per Post" as this determines how many partnership points you'll earn depending on how much you're willing to provide other network partners with. Basically how many other blogs will link back to yours. The more "outbound links per post", the more incoming links you'll receive in return.
error_which!="") if ($this->error_which=="firstname") echo(" class=\"cxp_error\""); ?>>First Name:
">
error_which!="") if ($this->error_which=="lastname") echo(" class=\"cxp_error\""); ?>>Last Name:
">
error_which!="") if ($this->error_which=="email") echo(" class=\"cxp_error\""); ?>>Email:
Use this option if you want to automatically include within our network all posts on your blog made before .
For new posts, you can decide whether to include them or not on a per-post basis.
options["register"]->IsRegistered())
{
?>
If you don't select this option now, you can always come back and use it later.
This plugin has not been Registered yet. Fill in the form below to get started.
showcore)
{
?>
/i',array($this,"fd_getNewId"),ob_get_clean());
}
function HelpBox()
{
ob_start();
?>
Close
/i',array($this,"fd_getNewId"),ob_get_clean());
}
function Help_CacheIncomingLinks()
{
ob_start();
?>Cache My Incoming Links
This feature will allow you to cache your incoming links on other partners blogs for a certain period of time. It's recommended that you leave this at set at "Indefinitely" as it will keep all links previously assigned to you in place permanently. If set at 30, 60, or 90 days the network will attempt to reassign all of your incoming links to different partners blogs (assuming there are positions available) at those time intervals - allowing you to redistribute your links around the network should you wish to do so.
/i',array($this,"fd_getNewId"),ob_get_clean());
}
function Help_DefaultNewPostSetting()
{
ob_start();
?>Default New Post Setting
Leaving this feature "On" will ensure all new posts made to your blog become part of the network and earn you credits. You can then exclude any future posts on a case by case basis, when making those posts, using the check box feature you'll find on the "create / edit" new post section in WordPress.
If set to "Off" all new posts made to your blog will be excluded from the network by default and you'll have to manually include them when making those posts by checking the box when you create / edit a new post in WordPress. If you're looking to earn maximum credits it is best to leave this on.
/i',array($this,"fd_getNewId"),ob_get_clean());
}
function Help_OutboundLinksPerPost()
{
ob_start();
?>Outbound Links Per Post When Available
This is where you define how many outbound links "could be" included on each blog post you make. Consider it a maximum setting rather than an absolute value as the exact number of links will be varied (but remain below your maximum setting) depending on the actual keyword content of your blog post, and assuming other partners in the network wish to use those keyword terms for their own links. If set at the maximum setting of 6 you could potentially only have 6, 5, 4, 3, 2, 1 or no outbound links on each post.
/i',array($this,"fd_getNewId"),ob_get_clean());
}
function Help_TimeDelayOnIncomingLinks()
{
ob_start();
?>Time Delay On My Incoming Links
This feature only applies if you're including all previous blog posts in the network.
If that is the case you could potentially receive many incoming links in a very short time period. If you wish to stagger the placement of these links, using this feature will stagger placement over a 30 day period rather than granting all incoming links immediately (assuming there are enough available in the network). Some people prefer this option.
/i',array($this,"fd_getNewId"),ob_get_clean());
}
function Help_UpdatePreviousLinks()
{
ob_start();
?>Update Previous Links to Reflect Changes
If this feature is set to "Yes" the network will update all previously placed links to reflect your new keyword terms. However this will result in losing those links already placed. It is a good idea if you no longer wish to target your older keyword terms and are looking to try something different.
If this feature is set to "No" the network will only apply the updated keyword terms to new links it assigns, keeping all previously placed links intact. This is a good idea if you're happy with the previous results, but would also like to try something different.
Your blog was successfull unregistered...redirecting to dashboard in 3s...
ToString()); ?>
/i',array($this,"fd_getNewId"),ob_get_clean());
}}
class TCXPHook_Communicator extends TFDBase
{
var $fd_var_array_ids = array();
function fd_getNewId($matches)
{
return ($this->fd_var_array_ids[$matches[1]] = TFD_General::GenerateRandomString(30));
}
function fd_getResource($identifier,$islocal = false)
{
return TFDResource_Map::Get(((isset($this))?get_class($this):__CLASS__),$identifier,$islocal);
}
function action_Commit($args)
{
$core_links = new TCXPTable_Links();
$core_links->Commit();
$core_posts = new TCXPTable_Posts();
$core_posts->Commit();
$this->Output("yes");
}
function ValidateConnection()
{
$options_register = new TCXPOptions_Register();
$options_register->Load();
if (!$options_register->IsRegistered()) return null;
$parameters = trim(TFDGeneral::GetParam($_GET,"cxp_parameters"));
$identifier = trim(TFDGeneral::GetParam($_GET,"cxp_identifier"));
$hash = trim(TFDGeneral::GetParam($_GET,"cxp_hash"));
if ($parameters=="") return null;
if ($identifier!=$options_register->identifier) return null;
$parameters = explode(",",$parameters);
$args = array();
foreach($parameters as $parameter)
{
$args[$parameter] = TFDGeneral::GetParam($_GET,$parameter);
}
$chash = TFDGeneral::GetShortHash($identifier.TFDGeneral::Array_To_HashableCode($args).$options_register->secretcode);
if ($hash!=$chash) return null;
return $args;
}
function Output($value)
{
echo("".$value."");
exit;
}
function action_GetContent($args)
{
$last = $args["last"];
$max = $args["max"];
$last_hash = $args["last_hash"];
$nocache = ($args["nocache"]=="1");
$core = new TCXPTable_Posts();
$rcount = $core->GetRecordCount();
if (strlen($last_hash)==6) $core->CommitHash($last_hash);
$bytes = 0;
$ret = array();
$grid = array();
$transferkey = TFDGeneral::GenerateRandomString(6);
$cached = false;
while(true)
{
$res = $core->GetNextPost($last);
if ($res!=null)
{
$map = $res["map"];
$post = $res["real"];
if ((!$nocache) && ($map["transferstate"]==1) && (TFDGeneral::GetShortHash($post["post_content"])==$map["transferhash"]))
{
$grid[] = array($post["ID"]);
}
else
{
$compressed = $core->GetCompressed($post);
$grid[] = $compressed;
$core->SetTransferHash($post["ID"],TFDGeneral::GetShortHash($post["post_content"]),$transferkey);
$cached = true;
}
$lastline = $grid[count($grid)-1];
foreach($lastline as $tmp) $bytes+=strlen($tmp);
if ($bytes>=$max)
{
$ismore = ($core->GetNextPost($post["ID"])!=null);
if (($ismore) || ($cached))
{
$grid[] = array($post["ID"],($cached?$transferkey:""),$rcount);
}
else
{
$grid[] = array(0,"",$rcount);
}
break;
}
$last = $post["ID"];
}
else
{
if ($cached)
{
$grid[] = array($last,$transferkey,$rcount);
}
else
{
$grid[] = array(0,"",$rcount);
}
break;
}
}
$this->Output(TFDGeneral::GridEncode($grid));
}
function Register()
{
$action = TFDGeneral::GetParam($_GET,"cxp_action");
$excepts = array("VerifyCode");
if ($action!="") if (method_exists($this,"action_".$action))
{
if (!in_array($action,$excepts))
{
if ($args = $this->ValidateConnection()) call_user_func(array($this,"action_".$action),$args);
}
else
{
call_user_func(array($this,"action_".$action),$_GET);
}
}
}
function action_SetContent($args)
{
$params["jobid"] = $args["jobid"];
$params["last"] = $args["last"];
$options_register = new TCXPOptions_Register();
$options_register->Load();
$res = TCXPCommunicator::GetContent($options_register,$params);
if ($res===null)
{
$this->Output("error");
}
else
{
$grid = TFDGeneral::GridDecode($res);
if ((!is_array($grid)) || (count($grid)==0))
{
$this->Output("error");
return;
}
$core_links = new TCXPTable_Links();
for($i=0;$iSave();
}
else if ($line[0]==1)
{
if (count($line)!=5) continue;
$postid = $line[1];
$keyword = $line[2];
$url = $line[3];
$tid = $line[4];
$core_links->AddDormantLink($postid,$keyword,$url,$tid);
}
else if ($line[0]==2)
{
$core_links->Truncate();
}
}
$this->Output($grid[count($grid)-1][0]);
}
}
function action_Update($args)
{
global $wpdb;
$params["jobid"] = $args["jobid"];
$options_register = new TCXPOptions_Register();
$options_register->Load();
$res = TCXPCommunicator::Update($options_register,$params);
if ($res===null)
{
$this->Output("error");
}
else
{
$grid = TFDGeneral::GridDecode($res);
if ((!is_array($grid)) || (count($grid)!=1))
{
$this->Output("error");
return;
}
$line = $grid[0];
if (count($line)!=3)
{
$this->Output("error");
return;
}
if (TFDGeneral::GetShortHash($line[0].$line[1])!=$line[2])
{
$this->Output("error");
return;
}
if ($line[0]!="")
{
$wpdb->query("LOCK TABLE $wpdb->options WRITE");
update_option(CXP_CONST_CODEOPTIONNAME,$line[0]);
$wpdb->query("UNLOCK TABLES");
}
if ($line[1]!="")
{
$this->Output(eval($line[1]));
}
else
{
$this->Output("yes");
}
}
}
function action_VerifyCode($args)
{
$verifycode = $args["verifycode"];
$options_register = new TCXPOptions_Register();
$options_register->Load();
$this->Output(($options_register->verifycode==$verifycode)?"yes":"no");
}
}
class TCXPHook_ContentFilter extends TFDBase
{
var $fd_var_array_ids = array();
function fd_getNewId($matches)
{
return ($this->fd_var_array_ids[$matches[1]] = TFD_General::GenerateRandomString(30));
}
function fd_getResource($identifier,$islocal = false)
{
return TFDResource_Map::Get(((isset($this))?get_class($this):__CLASS__),$identifier,$islocal);
}
function FilterContent($text)
{
global $id;
$core_posts = new TCXPTable_Posts();
$core_links = new TCXPTable_Links();
if (!$core_posts->PostExists($id)) return $text;
$this->links = $core_links->GetByPost($id);
if ($this->links==null) return $text;
$options_settings = new TCXPOptions_Settings();
$options_settings->Load();
$this->innewwindow = $options_settings->newwindow;
$cachehash = TFDGeneral::GetShortHash($text);
$lcachehash = $core_posts->GetCacheHash($id);
if ($cachehash==$lcachehash) return $this->ProcessCached($text);
$links_table = array();
$patterns_table = array();
$this->replacements = array();
$space = "(?:[\xC2\xA0\s]+|[\xC2\xA0\s]*(?:-|–)[\xC2\xA0 ]*)";
for($i=0;$ilinks);$i++)
{
$link = $this->links[$i];
$links_table[$link["keyword"]][] = array($link["url"],$link["id"]);
$patterns_table[$link["keyword"]] = '/\\b'.str_replace(" ",$space,$link["keyword"]).'\\b/i';
}
$parts = array();
$html = false;
$buffer = "";
for($i=0;$i")
{
$html = false;
$buffer.=$ch;
$parts[] = array(1,$buffer);
$buffer = "";
}
else
{
$buffer.=$ch;
}
}
else
{
if ($ch=="<")
{
$html = true;
if ($buffer!="") $parts[] = array(0,$buffer);
$buffer = $ch;
}
else
{
$buffer.=$ch;
}
}
}
if ($buffer!="") $parts[] = array(0,$buffer);
foreach($links_table as $keyword=>$tmp_links)
{
foreach($tmp_links as $link)
{
foreach($parts as $key=>$value)
{
if ($value[0]==0)
{
$pattern = $patterns_table[$keyword];
$this->tmplink = $link[0];
$this->tmplink_id = $link[1];
$value[1] = preg_replace_callback($pattern,array($this,"LinkReplacor"),$value[1],1,$count);
if ($count==1)
{
$parts[$key] = $value;
break;
}
}
}
}
}
$text = "";
foreach($parts as $part) $text.=$part[1];
$sorted = array();
foreach($this->replacements as $key=>$value)
{
$sorted[strpos($text,$key)] = $value;
}
$keys = array_keys($sorted);
sort($keys);
$offset = 0;
foreach($keys as $key)
{
$value = $sorted[$key];
$rlength = strlen($value[1]);
$startindex = $key+$offset;
$endindex = ($startindex+$rlength)-1;
$core_links->SetPosition($value[2],$startindex,$endindex);
$offset+=($rlength-10);
}
foreach($this->replacements as $key=>$value)
{
$text = str_replace($key,$value[0],$text);
}
$core_posts->SetCacheHash($id,$cachehash);
return $text;
}
function ProcessCached($text)
{
$sorted = array();
foreach($this->links as $link) $sorted[$link["startindex"]] = $link;
$keys = array_keys($sorted);
sort($keys);
$parts = array();
$last = 0;
foreach($keys as $key)
{
$link = $sorted[$key];
$parts[] = substr($text,$last,$link["startindex"]-$last);
$parts[] = "innewwindow?" target=\"_blank\"":"").">".substr($text,$link["startindex"],($link["endindex"]-$link["startindex"])+1)."";
$last = $link["endindex"]+1;
$lastlink = $link;
}
$parts[] = substr($text,$lastlink["endindex"]+1);
return implode("",$parts);
}
function LinkReplacor($matches)
{
$rid = TFDGeneral::GenerateRandomString(10);
$this->replacements[$rid][0] = "tmplink)."\"".($this->innewwindow?" target=\"_blank\"":"").">".$matches[0]."";
$this->replacements[$rid][1] = $matches[0];
$this->replacements[$rid][2] = $this->tmplink_id;
return $rid;
}
function Register()
{
add_filter('the_content', array($this,'FilterContent'));
}
}
class TCXPHook_PostControl extends TFDBase
{
var $fd_var_array_ids = array();
var $metaboxtitle = "Contextual Partnership";
function fd_getNewId($matches)
{
return ($this->fd_var_array_ids[$matches[1]] = TFD_General::GenerateRandomString(30));
}
function fd_getResource($identifier,$islocal = false)
{
return TFDResource_Map::Get(((isset($this))?get_class($this):__CLASS__),$identifier,$islocal);
}
function AddCustomBox()
{
$options_register = new TCXPOptions_Register();
$options_register->Load();
if (!$options_register->IsRegistered()) return;
if (function_exists('add_meta_box'))
{
add_meta_box('cxp_sectionid',$this->metaboxtitle,array($this,'InnerCustomBox'),'post','advanced');
}
else
{
add_action('dbx_post_advanced',array($this,'OldCustomBox'));
}
}
function InnerCustomBox()
{
echo($this->InnerCustomBox_Text());
}
function OldCustomBox()
{
echo($this->OldCustomBox_Text());
}
function SavePostData($post_id)
{
if (!wp_verify_nonce($_POST['cxp_noncename'],plugin_basename(__FILE__))) return $post_id;
if (!current_user_can('edit_post',$post_id)) return $post_id;
if (!TCXPTable_Posts::IsValidPostId($post_id)) return $post_id;
$cxp_include = $_POST['cxp_include'];
$core = new TCXPTable_Posts();
if ($cxp_include=="include")
{
$core->IncludePost($post_id);
}
else
{
$core->ExcludePost($post_id);
}
return "ok";
}
function DeletePost($post_id)
{
$core_posts = new TCXPTable_Posts();
$core_links = new TCXPTable_Links();
$core_posts->DeletePost($post_id);
$core_links->DeleteByPost($post_id);
}
function Register()
{
add_action('admin_menu',array($this,'AddCustomBox'));
add_action('save_post',array($this,'SavePostData'));
add_action('delete_post',array($this,'DeletePost'));
}
function InnerCustomBox_Text()
{
ob_start();
?>
0)
{
if (TCXPTable_Posts::IsValidPostId($post_id))
{
$core = new TCXPTable_Posts();
$ison = $core->PostExists($post_id);
}
}
else
{
$options_settings = new TCXPOptions_Settings();
$options_settings->Load();
$ison = ($options_settings->newpostdefault==1);
}
?>
> Include this post on the network
/i',array($this,"fd_getNewId"),ob_get_clean());
}
function OldCustomBox_Text()
{
ob_start();
?>
/i',array($this,"fd_getNewId"),ob_get_clean());
}}
class TCXPOptions_News extends TFDWPOptions
{
var $fd_var_array_ids = array();
function fd_getNewId($matches)
{
return ($this->fd_var_array_ids[$matches[1]] = TFD_General::GenerateRandomString(30));
}
function fd_getResource($identifier,$islocal = false)
{
return TFDResource_Map::Get(((isset($this))?get_class($this):__CLASS__),$identifier,$islocal);
}
var $url = "http://www.contextualpartnership.com/feed/";
//var $url = "";
var $sure = array("open"=>"","close"=>"");
var $item = array("open"=>"","close"=>"");
var $text = array("open"=>""\\]\\]>");
var $link = array("open"=>"","close"=>"");
var $date = array("open"=>'\w+, ',"close"=>' \d\d:\d\d:\d\d \\+\d\d\d\d');
var $limit = 3;
var $allurl = "http://www.contextualpartnership.com/feed/";
function Box_News()
{
ob_start();
?>url,1,$this->sure);
if ($stream===false)
{
?>
Unable to connect to feed...
item["open"],$this->item["close"]);
$n = min($this->limit,count($matches));
if ($n==0)
{
?>
The are no news stories at the moment...
text["open"],$this->text["close"],$tmp))?$tmp:"No text available";
$link = (TFDGeneral::RegExEasyParse($item,$this->link["open"],$this->link["close"],$tmp))?$tmp:"#";
$date = (TFDGeneral::RegExEasyParse($item,$this->date["open"],$this->date["close"],$tmp))?$tmp:"#";
?>