From 2d998db45226ca7efd39ec6e04b9891ccf129d4f Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 16 Aug 2008 17:52:30 +0000 Subject: General: Upgraded Verification ID generation Verification IDs in Central and Update can now be between 0 and 2147483647. Closes #37 --- update/plugin/wordpress/trunk/instadisc/instadisc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'update/plugin/wordpress/trunk') diff --git a/update/plugin/wordpress/trunk/instadisc/instadisc.php b/update/plugin/wordpress/trunk/instadisc/instadisc.php index b8ed9d1..c1d82ad 100644 --- a/update/plugin/wordpress/trunk/instadisc/instadisc.php +++ b/update/plugin/wordpress/trunk/instadisc/instadisc.php @@ -146,7 +146,7 @@ function sendPost($id) $authorName = $author->display_name; $url = get_permalink($id); - $verID = rand(1,65536); + $verID = rand(1,2147483647); $client = new xmlrpc_client(get_option('instaDisc_blogPost_centralServer')); $msg = new xmlrpcmsg("InstaDisc.sendFromUpdate", array( new xmlrpcval(get_option('instaDisc_blogPost_centralServer_username'), 'string'), @@ -170,7 +170,7 @@ function sendComment($id) $author = $comment->comment_author; $url = get_permalink($comment->comment_post_ID) . "#comments"; - $verID = rand(1,65536); + $verID = rand(1,2147483647); $client = new xmlrpc_client(get_option('instaDisc_comment_centralServer')); $msg = new xmlrpcmsg("InstaDisc.sendFromUpdate", array( new xmlrpcval(get_option('instaDisc_comment_centralServer_username'), 'string'), -- cgit 1.4.1