Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_weblogping
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16496
Modified Files:
serendipity_event_weblogping.php
Added Files:
servicesdb_en.inc.php servicesdb_ja.inc.php
Log Message:
o The switch of the transmission place for every language is supported.
Index: serendipity_event_weblogping.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- serendipity_event_weblogping.php 8 Jan 2005 12:25:13 -0000 1.15
+++ serendipity_event_weblogping.php 30 Jan 2005 18:27:33 -0000 1.16
@@ -52,56 +52,14 @@
'backend_draft' => true
));
- $this->services = array(
- array(
- 'name' => 'Ping-o-Matic',
- 'host' => 'rpc.pingomatic.com',
- 'path' => '/',
- 'extended' => true,
- 'supersedes' => array('blo.gs', 'blogrolling.com', 'technorati.com', 'weblogs.com', 'Yahoo!')
- ),
-
- array(
- 'name' => 'blo.gs',
- 'host' => 'ping.blo.gs',
- 'path' => '/',
- 'extended' => true
- ),
-
- array(
- 'name' => 'blogrolling.com',
- 'host' => 'rpc.blogrolling.com',
- 'path' => '/pinger/'
- ),
-
- array(
- 'name' => 'technorati.com',
- 'host' => 'rpc.technorati.com',
- 'path' => '/rpc/ping'
- ),
-
- array(
- 'name' => 'weblogs.com',
- 'host' => 'rpc.weblogs.com',
- 'path' => '/RPC2'
- ),
-
- array(
- 'name' => 'blogg.de',
- 'host' => 'xmlrpc.blogg.de',
- 'path' => '/'
- ),
+ $servicesdb = array();
+ $servicesdb_file = dirname(__FILE__) . '/servicesdb_' . $serendipity['lang'] . '.inc.php';
+ if (!file_exists($servicesdb_file)) {
+ $servicesdb_file = dirname(__FILE__) . '/servicesdb_en.inc.php';
+ }
+ include $servicesdb_file;
+ $this->services =& $servicesdb;
- array(
- 'name' => 'Yahoo!',
- 'host' => 'api.my.yahoo.com',
- 'path' => '/RPC2'
- ),
- array(
- 'name' => 'Blogbot.dk',
- 'host' => 'blogbot.dk',
- 'path' => '/io/xml-rpc.php')
- );
$manual_services = explode(',', $this->get_config('manual_services'));
if (is_array($manual_services)) {
--- NEW FILE: servicesdb_en.inc.php ---
<?php # $Id: servicesdb_en.inc.php,v 1.1 2005/01/30 18:27:33 elf2000 Exp $
##########################################################################
# serendipity - another blogger... #
##########################################################################
# #
# (c) 2003 Jannis Hermanns <J...@ha...> #
# http://www.jannis.to/programming/serendipity.html #
# #
##########################################################################
$servicesdb = array(
array(
'name' => 'Ping-o-Matic',
'host' => 'rpc.pingomatic.com',
'path' => '/',
'extended' => true,
'supersedes' => array('blo.gs', 'blogrolling.com', 'technorati.com', 'weblogs.com', 'Yahoo!')
),
array(
'name' => 'blo.gs',
'host' => 'ping.blo.gs',
'path' => '/',
'extended' => true
),
array(
'name' => 'blogrolling.com',
'host' => 'rpc.blogrolling.com',
'path' => '/pinger/'
),
array(
'name' => 'technorati.com',
'host' => 'rpc.technorati.com',
'path' => '/rpc/ping'
),
array(
'name' => 'weblogs.com',
'host' => 'rpc.weblogs.com',
'path' => '/RPC2'
),
array(
'name' => 'blogg.de',
'host' => 'xmlrpc.blogg.de',
'path' => '/'
),
array(
'name' => 'Yahoo!',
'host' => 'api.my.yahoo.com',
'path' => '/RPC2'
),
array(
'name' => 'Blogbot.dk',
'host' => 'blogbot.dk',
'path' => '/io/xml-rpc.php')
);
?>
--- NEW FILE: servicesdb_ja.inc.php ---
<?php # $Id: servicesdb_ja.inc.php,v 1.1 2005/01/30 18:27:33 elf2000 Exp $
##########################################################################
# serendipity - another blogger... #
##########################################################################
# #
# (c) 2003 Jannis Hermanns <J...@ha...> #
# http://www.jannis.to/programming/serendipity.html #
# #
##########################################################################
$servicesdb = array(
array(
'name' => 'Myblog japan',
'host' => 'ping.myblog.jp',
'path' => '/',
'extended' => true
),
array(
'name' => 'BLOGGERS.JP',
'host' => 'ping.bloggers.jp',
'path' => '/rpc/',
'extended' => true
),
array(
'name' => 'blogpeople.net',
'host' => 'www.blogpeople.net',
'path' => '/weblogUpdates',
'extended' => true
),
array(
'name' => 'ã³ã³ãã°',
'host' => 'ping.cocolog-nifty.com',
'path' => '/xmlrpc',
'extended' => true
),
array(
'name' => 'goo',
'host' => 'blog.goo.ne.jp',
'path' => '/XMLRPC',
'extended' => true
),
array(
'name' => 'coreblog',
'host' => 'coreblog.org',
'path' => '/ping/',
'extended' => true
),
array(
'name' => 'bulkfeeds',
'host' => 'bulkfeeds.net',
'path' => '/rpc',
'extended' => true
),
array(
'name' => 'blogrolling',
'host' => 'rpc.blogrolling.com',
'path' => '/pinger/',
'extended' => true
),
array(
'name' => 'dontpushme.com',
'host' => 'www.dontpushme.com',
'path' => '/ft/XmlRpc/Daily.do',
'extended' => true
),
array(
'name' => 'Excite ã¨ããµã¤ã ï¼ ããã°ï¼blogï¼',
'host' => 'ping.exblog.jp',
'path' => '/xmlrpc',
'extended' => true
),
array(
'name' => 'blogdb.jp',
'host' => 'blogdb.jp',
'path' => '/xmlrpc',
'extended' => true
),
array(
'name' => 'BLOGOOGLE(ããã°ã¼ã«)ãPingãµã¼ã',
'host' => 'www.blogoole.com',
'path' => '/ping/',
'extended' => true
)
);
?>
|