about summary refs log tree commit diff stats
path: root/update
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
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')
-rw-r--r--update/plugin/phpBB3/trunk/root/includes/functions_instadisc.php8
-rw-r--r--update/plugin/wordpress/trunk/instadisc/instadisc.php16
2 files changed, 21 insertions, 3 deletions
diff --git a/update/plugin/phpBB3/trunk/root/includes/functions_instadisc.php b/update/plugin/phpBB3/trunk/root/includes/functions_instadisc.php index 95d1956..714a47b 100644 --- a/update/plugin/phpBB3/trunk/root/includes/functions_instadisc.php +++ b/update/plugin/phpBB3/trunk/root/includes/functions_instadisc.php
@@ -51,7 +51,13 @@ function sendItem($title, $userID, $url, $fourm)
51 new xmlrpcval($author, 'string'), 51 new xmlrpcval($author, 'string'),
52 new xmlrpcval($url, 'string'), 52 new xmlrpcval($url, 'string'),
53 new xmlrpcval(serialize($semantics), 'string'))); 53 new xmlrpcval(serialize($semantics), 'string')));
54 $client->send($msg); 54 $resp = $client->send($msg);
55 $val = $resp->value()->scalarVal();
56
57 if ($val == 2)
58 {
59 sendItem($title, $userID, $url, $fourm);
60 }
55} 61}
56 62
57?> 63?>
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?>