include "misc.php";
/* Does this other person have a link back to me */
function link_to_me($us, $them)
{
$want = clean_url($us->channel[link]);
if (!is_object($them) || !is_array($them->items)) return FALSE;
foreach ($them->items as $item) {
//echo "Compare $want == ".clean_url($item[link])."
\n";
if (strcasecmp(clean_url($item[link]),$want)==0)
return TRUE;
}
return FALSE;
}
function find_karma($us, $them)
{
$want = clean_url($us->channel[link]);
if (!is_object($them) || !is_array($them->items)) return 0;
foreach ($them->items as $item) {
if (strcasecmp(clean_url($item[link]),$want)==0) {
$karma = (int)$item[nepot][karma];
if ($karma < 0) $karma = 0;
if ($karma > 5) $karma = 5;
return $karma;
}
}
return 0;
}
function error_page($msg) {
global $self;
?>
Please specify the url to try: