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

Procedural File: pingback.php

Source Location: /public_html/pingback.php



Page Details:



Includes:

require_once('XML/RPC/Server.php') [line 40]
require_once($_CONF['path_system'].'lib-trackback.php') [line 37]
require_once($_CONF['path_system'].'lib-pingback.php') [line 36]
require_once('lib-common.php') [line 32]






PNB_getSid [line 286]

string PNB_getSid( string $url)

Extract story ID (sid) from the URL Accepts rewritten and old-style URLs. Also checks permissions.



Tags:

return:  story ID or empty string for error


Parameters

string   $url   targetURI, a URL on our site
[ Top ]



PNB_getType [line 255]

string PNB_getType( string $url)

Try to determine what has been pinged Checks if the URL contains 'article.php' for articles. Otherwise tries to figure out if a plugin's page has been pinged.



Tags:

return:  'article' or plugin name or empty string for error


Parameters

string   $url   targetURI, a URL on our site
[ Top ]



PNB_handlePingback [line 66]

object XML-RPC PNB_handlePingback( string $id, string $type, string $url, string $oururl)

Handle a pingback for an entry.

Also takes care of the speedlimit and spam. Assumes that the caller of this function has already checked permissions!




Tags:

return:  response


Parameters

string   $id   ID of entry that got pinged
string   $type   type of that entry ('article' for stories, etc.)
string   $url   URL of the page that pinged us
string   $oururl   URL that got pinged on our site
[ Top ]



PNB_receivePing [line 331]

object XML-RPC PNB_receivePing( object $params)

We've received a pingback - handle it ...



Tags:

return:  response


Parameters

object   $params   parameters of the pingback XML-RPC call
[ Top ]



PNB_validURL [line 234]

boolean PNB_validURL( string $url)

Check if the targetURI really points to us



Tags:

return:  true = is a URL on our site


Parameters

string   $url   targetURI, a URL on our site
[ Top ]



Documentation generated on Sun, 02 Oct 2016 07:53:23 +0000 by phpDocumentor 1.4.3