about summary refs log tree commit diff stats
path: root/update/plugin/wordpress/trunk
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2008-08-21 13:55:53 +0000
committerKelly Rauchenberger <fefferburbia@gmail.com>2008-08-21 13:55:53 +0000
commit1ef9b232d50523f3dac49e225d560bb9da0eb9b4 (patch)
tree40e0fe97e7556606b4aa1c12a1e3388634788c6d /update/plugin/wordpress/trunk
parentdad2244d930143c045c9567a2a2d9839b62145a2 (diff)
downloadinstadisc-1ef9b232d50523f3dac49e225d560bb9da0eb9b4.tar.gz
instadisc-1ef9b232d50523f3dac49e225d560bb9da0eb9b4.tar.bz2
instadisc-1ef9b232d50523f3dac49e225d560bb9da0eb9b4.zip
Update: Added VerID bounce to phpBB3 and Wordpress
Subversion is on its way as well, just it needs to be opened in NetBeans.
Refs #44
Diffstat (limited to 'update/plugin/wordpress/trunk')
-rw-r--r--update/plugin/wordpress/trunk/instadisc/instadisc.php16
1 files changed, 14 insertions, 2 deletions
diff --git a/update/plugin/wordpress/trunk/instadisc/instadisc.php b/update/plugin/wordpress/trunk/instadisc/instadisc.php index c1d82ad..a92c726 100644 --- a/update/plugin/wordpress/trunk/instadisc/instadisc.php +++ b/update/plugin/wordpress/trunk/instadisc/instadisc.php
@@ -157,7 +157,13 @@ function sendPost($id)
157 new xmlrpcval($authorName, 'string'), 157 new xmlrpcval($authorName, 'string'),
158 new xmlrpcval($url, 'string'), 158 new xmlrpcval($url, 'string'),
159 new xmlrpcval(serialize(array()), 'string'))); 159 new xmlrpcval(serialize(array()), 'string')));
160 $client->send($msg); 160 $resp = $client->send($msg);
161 $val = $resp->value()->scalarVal();
162
163 if ($val == 2)
164 {
165 sendPost($id);
166 }
161} 167}
162 168
163add_action('comment_post','sendComment'); 169add_action('comment_post','sendComment');
@@ -181,7 +187,13 @@ function sendComment($id)
181 new xmlrpcval($author, 'string'), 187 new xmlrpcval($author, 'string'),
182 new xmlrpcval($url, 'string'), 188 new xmlrpcval($url, 'string'),
183 new xmlrpcval(serialize(array()), 'string'))); 189 new xmlrpcval(serialize(array()), 'string')));
184 $client->send($msg); 190 $resp = $client->send($msg);
191 $val = $resp->value()->scalarVal();
192
193 if ($val == 2)
194 {
195 sendComment($id);
196 }
185} 197}
186 198
187?> 199?>