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

Procedural File: lib-pingback.php

Source Location: /system/lib-pingback.php



Page Details:



Includes:

require_once('XML/RPC.php') [line 37]






PNB_getPingbackUrl [line 45]

string PNB_getPingbackUrl( string $url)

Get the Pingback URL for a given URL



Tags:

return:  Pingback URL or empty string


Parameters

string   $url   URL to get the Pingback URL for
[ Top ]



PNB_makeExcerpt [line 234]

string PNB_makeExcerpt( string $html, string $url, [int $xlen = 255])

Create an excerpt from some piece of HTML containing a given URL This somewhat convoluted piece of code will extract the text around a given link located somewhere in the given piece of HTML. It returns the actual link text plus some of the text before and after the link.

NOTE: Returns an empty string when $url is not found in $html.




Tags:

return:  Extract: The link text and some surrounding text


Parameters

string   $html   The piece of HTML to search through
string   $url   URL that should be contained in $html somewhere
int   $xlen   Max. length of excerpt (default: 255 characters)
[ Top ]



PNB_sendExtendedPing [line 193]

string PNB_sendExtendedPing( string $url, string $blogname, string $blogurl, string $changedurl, string $feedurl)

Send an extended ping to a weblog directory service Supported e.g. by blo.gs



Tags:

return:  empty string on success of error message


Parameters

string   $url   URL to ping
string   $blogname   name of our site
string   $blogurl   URL of our site
string   $changedurl   URL of the changed / new entry
string   $feedurl   URL of a feed for our site
[ Top ]



PNB_sendPing [line 152]

string PNB_sendPing( string $url, string $blogname, string $blogurl, string $changedurl)

Send a standard ping to a weblog directory service The "classic" ping, originally invented for weblogs.com



Tags:

return:  empty string on success of error message


Parameters

string   $url   URL to ping
string   $blogname   name of our site
string   $blogurl   URL of our site
string   $changedurl   URL of the changed / new entry
[ Top ]



PNB_sendPingback [line 103]

string PNB_sendPingback( string $sourceURI, string $targetURI)

Send a Pingback



Tags:

return:  empty string on success or error message


Parameters

string   $sourceURI   URL of an entry on our site
string   $targetURI   an entry on someone else's site
[ Top ]



Documentation generated on Sun, 02 Oct 2016 07:51:29 +0000 by phpDocumentor 1.4.3