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) |
checkIP | ( | $ | url | ) |
checks poster of trackback uses same ip as url being posted
collectSubDomains | ( | &$ | hosts, | |
$ | host | |||
) |
extract all subdomains of an host
hosts | list of hosts to complete | |
host | host to extract subdomain from |
completeHostsFromIps | ( | &$ | hosts, | |
$ | ips | |||
) |
get more hosts from a list of ips
$hosts | the list of $hosts to complete | |
$ips | list of $ips to resolve hosts from |
completeIpsFromHosts | ( | &$ | ips, | |
$ | hosts | |||
) |
get more ips from a list of hosts
$ips | the list of ips to complete | |
$hosts | list of hosts to extract ips from |
contentInfo | ( | $ | id | ) |
returns content info from an id
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
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
id | id of page we want this trackback to be added | |
url | url of trackback to add to page |
$message |
Initial value:
'A trackback has been added on page '.$node_title."\n". createHeaderURL($node_title, array('lang'=>$node_lang_code))."\n"