All pastes #760719 Raw Edit

xxx

public php v1 · immutable
·published 2007-11-04 07:15 UTC
rendered paste body
<?phpif(!defined("NO_PING_POST") || !NO_PING_POST){	$this->add('post_added', Array('pingOnPostPlugin', 'ping'));	require_once("./library/xmlrpc/Xmlrpc.class.php");}class pingOnPostPlugin{	public static $sites = Array(		'http://rpc.technorati.com/rpc/ping'	);	public static function ping($af, $post){		$xmlrpc = new XmlrpcClient('weblogUpdates.ping');		$xmlrpc->addParam(Blog::getSetting("blog_title"))->addParam(Misc::url());				foreach(self::$sites as $site){			$xmlrpc->send($site);		}		}}?>