diff options
-rw-r--r-- | update/plugin/phpBB3/trunk/root/includes/functions_instadisc.php | 8 | ||||
-rw-r--r-- | update/plugin/wordpress/trunk/instadisc/instadisc.php | 16 |
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 | ||
163 | add_action('comment_post','sendComment'); | 169 | add_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 | ?> |