| [ Index ] |
|
Code source de GeekLog 1.4.1 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
| Poids: | 350 lignes (13 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 1 fichier public_html/lib-common.php |
| PNB_handlePingback($id, $type, $url, $oururl) X-Ref |
| 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! param: string $id ID of entry that got pinged param: string $type type of that entry ('article' for stories, etc.) param: string $url URL of the page that pinged us param: string $oururl URL that got pinged on our site return: object XML-RPC response |
| PNB_validURL($url) X-Ref |
| Check if the targetURI really points to us param: string $url targetURI, a URL on our site return: bool true = is a URL on our site |
| PNB_getType($url) X-Ref |
| 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. param: string $url targetURI, a URL on our site return: string 'article' or plugin name or empty string for error |
| PNB_getSid($url) X-Ref |
| Extract story ID (sid) from the URL Accepts rewritten and old-style URLs. Also checks permissions. param: string $url targetURI, a URL on our site return: string story ID or empty string for error |
| PNB_receivePing($params) X-Ref |
| We've received a pingback - handle it ... param: object $params parameters of the pingback XML-RPC call return: object XML-RPC response |
| Généré le : Wed Nov 21 12:27:40 2007 | par Balluche grâce à PHPXref 0.7 |
|