Geeklog
[ class tree: Geeklog ] [ index: Geeklog ] [ all elements ]

Procedural File: trackback.php

Source Location: /public_html/admin/trackback.php



Page Details:

Admin functions related to Trackbacks, Pingbacks, and Pings: Send Trackbacks, Pingbacks, and configure the list of weblog directory services to "ping" after an update.



Includes:

require_once($_CONF['path_system'].'lib-story.php') [line 66]
require_once($_CONF['path_system'].'lib-pingback.php') [line 65]
require_once($_CONF['path_system'].'lib-trackback.php') [line 64]
require_once('auth.inc.php') [line 47]
Security check to ensure user even belongs on this page

require_once('../lib-common.php') [line 42]
Geeklog common function library







changeServiceStatus [line 713]

void changeServiceStatus( array $enabledservices, array $visibleservices)

Toggle status of a ping service from enabled to disabled and back



Parameters

array   $enabledservices   array containing ids of enabled services
array   $visibleservices   array containing ids of visible services
[ Top ]



deleteTrackbackComment [line 165]

string deleteTrackbackComment( int $id)

Deletes a trackback comment. Checks if the current user has proper permissions first.



Tags:

return:  HTML redirect


Parameters

int   $id   ID of the trackback comment to delete
[ Top ]



editServiceForm [line 524]

string editServiceForm( int $pid, [string $msg = ''], [string $new_name = ''], [string $new_site_url = ''], [string $new_ping_url = ''], [string $new_method = ''], [int $new_enabled = -1])

Display weblog directory service editor



Tags:

return:  HTML for the editor


Parameters

int   $pid   ID of the service or 0 for new service
string   $msg   an error message to display
string   $new_name   name of the service
string   $new_site_url   URL of the service's site
string   $new_ping_url   URL to ping at the service
string   $new_method   ping method to use
int   $new_enabled   service is enabled (1) / disabled (0)
[ Top ]



freshPingback [line 758]

void freshPingback( )

Display a note about how pingbacks are supposed to be used



[ Top ]



freshTrackback [line 738]

void freshTrackback( )

Display a note about how trackbacks are supposed to be used



[ Top ]



getHelpUrl [line 780]

string getHelpUrl( )

Get URL of the help file (trackback.html)



Tags:

return:  full URL of trackback.html


[ Top ]



listServices [line 439]

string listServices( )

Display a list of all weblog directory services in the system



Tags:

return:  HTML for the list


[ Top ]



pingbackForm [line 272]

void pingbackForm( [ $targetUrl = ''])



Parameters

   $targetUrl  
[ Top ]



prepareAutodetect [line 377]

string prepareAutodetect( string $type, string $id, string $text)

Prepare a list of all links in a story/item so that we can ask the user which one to send the trackback to.



Tags:

return:  formatted list of links


Parameters

string   $type   type of entry ('article' = story, etc.)
string   $id   ID of that entry
string   $text   text of that entry, to get the links from
[ Top ]



saveService [line 652]

string saveService( int $pid, string $name, string $site_url, string $ping_url, string $method, string $enabled)

Save information of a weblog directory service



Tags:

return:  HTML redirect or service editor


Parameters

int   $pid   ID of service or 0 for new entry
string   $name   name of the service
string   $site_url   Homepage URL of the service
string   $ping_url   URL to ping at the service
string   $method   method used for the ping
string   $enabled   'on' when enabled
[ Top ]



sendPingbacks [line 213]

string sendPingbacks( string $type, string $id)

Send a Pingback to all the links in our entry



Tags:

return:  pingback results


Parameters

string   $type   type of entry we're advertising ('article' = story)
string   $id   ID of that entry
[ Top ]



sendPings [line 309]

string sendPings( string $type, string $id)

Ping weblog directory services



Tags:

return:  result of the pings


Parameters

string   $type   type of entry we're advertising ('article' = story)
string   $id   ID of that entry
[ Top ]



showTrackbackMessage [line 200]

string showTrackbackMessage( string $title, string $message)

Show an error or warning message



Tags:

return:  HTML for the message block


Parameters

string   $title   block title
string   $message   the actual message
[ Top ]



trackback_editor [line 79]

string trackback_editor( [string $target = ''], [string $url = ''], [string $title = ''], [string $excerpt = ''], [string $blog = ''])

Display trackback comment submission form.



Tags:

return:  HTML for the trackback comment editor


Parameters

string   $target   URL to send the trackback comment to
string   $url   URL of our entry
string   $title   title of our entry
string   $excerpt   excerpt of our entry
string   $blog   name of our site
[ Top ]



Documentation generated on Sun, 02 Oct 2016 07:56:19 +0000 by phpDocumentor 1.4.3