trackback.php File Reference

receive trackbacks and register them with a page More...


Enumerations

enum  wc_inc_path

Functions

 trackBackActive ()
 test if trackbacks are active (table installed by admin)
 trackBackExists ($id, $url)
 test if a similar trackback has already been registered for this node
 trackbackAdd ($id, $url, $blog_name, $title, $excerpt, $node_title, $node_lang_code)
 add a trackback to a page
 contentInfo ($id)
 returns content info from an id
 collectSubDomains (&$hosts, $host)
 extract all subdomains of an host
 completeIpsFromHosts (&$ips, $hosts)
 get more ips from a list of hosts
 completeHostsFromIps (&$hosts, $ips)
 get more hosts from a list of ips
 display ($str, $array)
 checkIP ($url)
 checks poster of trackback uses same ip as url being posted
 checkContent ($title, $excerpt)

Variables

 $path = dirname(__FILE__).'/../../'
 $ini = new ini(wc_inc_path.'/conf/config.ini')
 $app_path = createWebAppPath()
 $con = new mysql(wc_db_host, wc_db_login, wc_db_password, wc_db_database)
 $wiki = new wiki($con, wc_db_prefix)
 $user = $wiki->anonymousUser()
 $pluginManager = new PluginManager(wc_inc_path)
 $errors = array()
 $charset_decoded = true
 $blog_name = utf8_encode($blog_name)
 $excerpt = utf8_encode($excerpt)
 $blog_name = utf8_decode($blog_name)
 $excerpt = utf8_decode($excerpt)
 $message
 $email_title = '['.wc_wiki_name.']Trackback added'
 $emails = $wiki->getEmails($id)


Detailed Description

receive trackbacks and register them with a page


Function Documentation

checkIP ( url  ) 

checks poster of trackback uses same ip as url being posted

collectSubDomains ( &$  hosts,
host 
)

extract all subdomains of an host

Parameters:
hosts list of hosts to complete
host host to extract subdomain from
Returns:
new list of sub domains extracted

completeHostsFromIps ( &$  hosts,
ips 
)

get more hosts from a list of ips

Parameters:
$hosts the list of $hosts to complete
$ips list of $ips to resolve hosts from
Returns:
new added hosts

completeIpsFromHosts ( &$  ips,
hosts 
)

get more ips from a list of hosts

Parameters:
$ips the list of ips to complete
$hosts list of hosts to extract ips from
Returns:
new added ips

contentInfo ( id  ) 

returns content info from an id

Returns:
array(title, lang_code)

trackBackActive (  ) 

test if trackbacks are active (table installed by admin)

trackbackAdd ( id,
url,
blog_name,
title,
excerpt,
node_title,
node_lang_code 
)

add a trackback to a page

Parameters:
id id of page we want this trackback to be added
url url of trackback
blog_name name of blog (or wiki)
title title of entry that track backs to our page
excerpt extract of entries
node_title title of page to add trackback to
node_lang_code lang code of page to add trackback to

trackBackExists ( id,
url 
)

test if a similar trackback has already been registered for this node

Parameters:
id id of page we want this trackback to be added
url url of trackback to add to page


Variable Documentation

$message

Initial value:

  'A trackback has been added  on page '.$node_title."\n".
  createHeaderURL($node_title, array('lang'=>$node_lang_code))."\n"


Generated on Mon Feb 19 19:11:58 2007 for Wiclear by  doxygen 1.4.7