-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathapi.php
119 lines (116 loc) · 5.86 KB
/
api.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<?php
$myBlogName = "site title";
$myBlogUrl = "url";
$myBlogUpdateUrl = "url";
$myBlogRSSFeedUrl = "url";
//xml Rpc Ping Urls =
$xmlRpcPingUrls[] = 'http://rpc.technorati.com/rpc/ping';
$xmlRpcPingUrls[] = 'http://api.moreover.com/RPC2';
$xmlRpcPingUrls[] = 'http://api.my.yahoo.com/RPC2';
$xmlRpcPingUrls[] = 'http://blogupdate.org/ping/';
$xmlRpcPingUrls[] = 'http://ping.bloggers.jp/rpc/';
$xmlRpcPingUrls[] = 'http://ping.feedburner.com';
$xmlRpcPingUrls[] = 'http://ping.syndic8.com/xmlrpc.php';
$xmlRpcPingUrls[] = 'http://ping.weblogalot.com/rpc.php';
$xmlRpcPingUrls[] = 'http://rpc.icerocket.com:10080/';
$xmlRpcPingUrls[] = 'http://rpc.weblogs.com/RPC2';
$xmlRpcPingUrls[] = 'http://services.newsgator.com/ngws/xmlrpcping.aspx';
$xmlRpcPingUrls[] = 'http://www.blogpeople.net/servlet/weblogUpdates';
$xmlRpcPingUrls[] = 'http://www.feedsky.com/api/RPC2';
$xmlRpcPingUrls[] = 'http://ping.blogoon.net/';
$xmlRpcPingUrls[] = 'http://ping.blogs.yandex.ru/RPC2';
$xmlRpcPingUrls[] = 'http://ping.syndic8.com/xmlrpc.php';
$xmlRpcPingUrls[] = 'http://www.blogpeople.net/ping';
$xmlRpcPingUrls[] = 'http://www.blogpeople.net/servlet/weblogUpdates';
$xmlRpcPingUrls[] = 'http://www.pubsub.com/ping';
$xmlRpcPingUrls[] = 'http://www.syndic8.com/xmlrpc.php';
$xmlRpcPingUrls[] = 'http://xping.pubsub.com/ping/';
$xmlRpcPingUrls[] = 'http://api.moreover.com/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.com/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.ae/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.at/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.be/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.bg/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.ca/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.ch/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.cl/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.co.cr/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.co.hu/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.co.id/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.co.il/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.co.in/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.co.it/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.co.jp/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.co.ma/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.co.nz/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.co.th/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.co.uk/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.co.ve/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.co.za/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.com.ar/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.com.au/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.com.br/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.com.co/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.com.do/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.com.mx/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.com.my/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.com.pe/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.com.sa/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.com.sg/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.com.tr/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.com.tw/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.com.ua/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.com.uy/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.com.vn/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.com/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.de/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.es/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.fi/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.fr/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.gr/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.hr/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.ie/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.in/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.it/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.jp/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.lt/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.nl/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.pl/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.pt/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.ro/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.ru/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.se/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.sk/ping/RPC2';
$xmlRpcPingUrls[] = 'http://blogsearch.google.tw/ping/RPC2';
require_once( 'IXR_Library.php' );
function xmlRpcPing( $url ) {
global $myBlogName, $myBlogUrl, $myBlogUpdateUrl, $myBlogRSSFeedUrl;
$client = new IXR_Client( $url );
$client->timeout = 3;
$client->useragent .= ' -- PingTool/1.0.0';
$client->debug = false;
if( $client->query( 'weblogUpdates.extendedPing', $myBlogName, $myBlogUrl, $myBlogUpdateUrl, $myBlogRSSFeedUrl ) )
{
return $client->getResponse();
}
'Failed extended XML-RPC ping for "' . $url . '": ' . $client->getErrorCode() . '->' . $client->getErrorMessage() . '<br />';
if( $client->query( 'weblogUpdates.ping', $myBlogName, $myBlogUrl ) )
{
return $client->getResponse();
}
'Failed basic XML-RPC ping for "' . $url . '": ' . $client->getErrorCode() . '->' . $client->getErrorMessage() . '<br />';
return false;
}
foreach( $xmlRpcPingUrls as $url )
{
echo ' <div class="alert alert-success" role="alert">
<h4 class="alert-heading"></h4>
<p>İşlem Tamam</p>
<p class="mb-0">'.$url.'</p>
</div>';
xmlRpcPing( $url ) ;
ob_flush();
flush();
}
}
}