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/phpBB3/trunk/root/includes/functions_instadisc.php | 4 ++-- update/plugin/wordpress/trunk/instadisc/instadisc.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'update/plugin') diff --git a/update/plugin/phpBB3/trunk/root/includes/functions_instadisc.php b/update/plugin/phpBB3/trunk/root/includes/functions_instadisc.php index df7c203..95d1956 100644 --- a/update/plugin/phpBB3/trunk/root/includes/functions_instadisc.php +++ b/update/plugin/phpBB3/trunk/root/includes/functions_instadisc.php @@ -24,7 +24,7 @@ include($phpbb_root_path . 'includes/xmlrpc/xmlrpc.inc'); function sendItem($title, $userID, $url, $fourm) { global $config, $db, $phpbb_root_path; - $verID = rand(1,65536); + $verID = rand(1,2147483647); $da = array('user_id' => $userID); $getuser = "SELECT * FROM " . USERS_TABLE . " WHERE " . $db->sql_build_array('SELECT', $da); @@ -33,7 +33,7 @@ function sendItem($title, $userID, $url, $fourm) $db->sql_freeresult($getuser2); $author = $getuser3['username']; - $url = html_entity_decode(str_replace($phpbb_root_path, generate_board_url() . '/', $url)); + $url = str_replace($phpbb_root_path, generate_board_url() . '/', $url); $da = array('forum_id' => $fourm); $getfourm = "SELECT * FROM " . FORUMS_TABLE . " WHERE " . $db->sql_build_array('SELECT', $da); 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