[ Index ]
 

Code source de GeekLog 1.4.1

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/public_html/admin/ -> trackback.php (sommaire)

Security check to ensure user even belongs on this page

Poids: 1212 lignes (46 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 2 fichiers
 public_html/admin/auth.inc.php
 public_html/lib-common.php

Définit 14 fonctions

  trackback_editor()
  deleteTrackbackComment()
  showTrackbackMessage()
  sendPingbacks()
  pingbackForm()
  sendPings()
  prepareAutodetect()
  getItemInfo()
  listServices()
  editServiceForm()
  saveService()
  changeServiceStatus()
  freshTrackback()
  freshPingback()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

trackback_editor($target = '', $url = '', $title = '', $excerpt = '', $blog = '')   X-Ref
Display trackback comment submission form.

param: string  $target     URL to send the trackback comment to
param: string  $url        URL of our entry
param: string  $title      title of our entry
param: string  $excerpt    excerpt of our entry
param: string  $blog       name of our site
return: string              HTML for the trackback comment editor

deleteTrackbackComment($id)   X-Ref
Deletes a trackback comment. Checks if the current user has proper
permissions first.

param: int     $id     ID of the trackback comment to delete
return: string          HTML redirect

showTrackbackMessage($title, $message)   X-Ref
Show an error or warning message

param: string  $title      block title
param: string  $message    the actual message
return: string              HTML for the message block

sendPingbacks($type, $id)   X-Ref
Send a Pingback to all the links in our entry

param: string  $type   type of entry we're advertising ('article' = story)
param: string  $id     ID of that entry
return: string          pingback results

pingbackForm($targetUrl = '')   X-Ref
Pas de description

sendPings($type, $id)   X-Ref
Ping weblog directory services

param: string  $type   type of entry we're advertising ('article' = story)
param: string  $id     ID of that entry
return: string          result of the pings

prepareAutodetect($type, $id, $text)   X-Ref
Prepare a list of all links in a story/item so that we can ask the user
which one to send the trackback to.

param: string  $type   type of entry ('article' = story, etc.)
param: string  $id     ID of that entry
param: string  $text   text of that entry, to get the links from
return: string          formatted list of links

getItemInfo($type, $id, $what)   X-Ref
Wrapper for STORY_getItemInfo / PLG_getItemInfo to keep things readable

param: string  $type   type of entry ('article' = story, else plugin)
param: string  $id     ID of that entry
param: string  $what   info requested
return: mixed           requested info, as a string or array of strings

listServices()   X-Ref
Display a list of all weblog directory services in the system

return: string          HTML for the list

editServiceForm($pid, $msg = '', $new_name = '', $new_site_url = '', $new_ping_url = '', $new_method = '', $new_enabled = -1)   X-Ref
Display weblog directory service editor

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

saveService($pid, $name, $site_url, $ping_url, $method, $enabled)   X-Ref
Save information of a weblog directory service

param: int     $pid        ID of service or 0 for new entry
param: string  $name       name of the service
param: string  $site_url   Homepage URL of the service
param: string  $ping_url   URL to ping at the service
param: string  $method     method used for the ping
param: string  $enabled    'on' when enabled
return: string              HTML redirect or service editor

changeServiceStatus($pid)   X-Ref
Toggle status of a ping service from enabled to disabled and back

param: int     $pid    ID of the service
return: void

freshTrackback()   X-Ref
Display a note about how trackbacks are supposed to be used


freshPingback()   X-Ref
Display a note about how pingbacks are supposed to be used




Généré le : Wed Nov 21 12:27:40 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics