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 --- central/trunk/xmlrpc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'central/trunk/xmlrpc.php') diff --git a/central/trunk/xmlrpc.php b/central/trunk/xmlrpc.php index 88fff7f..53b947e 100644 --- a/central/trunk/xmlrpc.php +++ b/central/trunk/xmlrpc.php @@ -94,7 +94,7 @@ function sendFromUpdate($username, $verification, $verificationID, $subscription $i=0; while ($getcs3[$i] = mysql_fetch_array($getcs2)) { - $verID = rand(1,65536); + $verID = rand(1,2147483647); $client = new xmlrpc_client($getcs3[$i]['xmlrpc']); $msg = new xmlrpcmsg("InstaDisc.sendFromCentral", array( new xmlrpcval($cserver, 'string'), @@ -133,7 +133,7 @@ function sendFromCentral($cserver, $verification, $verificationID, $subscription $getuk2 = mysql_query($getuk); $getuk3 = mysql_fetch_array($getuk2); - $verID = rand(1,65536); + $verID = rand(1,2147483647); $client = new xmlrpc_client($cserver); $msg = new xmlrpcmsg("InstaDisc.sendUpdateNotice", array( new xmlrpcval($cserver2, 'string'), @@ -150,7 +150,7 @@ function sendFromCentral($cserver, $verification, $verificationID, $subscription $getuk2 = mysql_query($getuk); $getuk3 = mysql_fetch_array($getuk2); - $verID = rand(1,65536); + $verID = rand(1,2147483647); $client = new xmlrpc_client($cserver); $msg = new xmlrpcmsg("InstaDisc.askForDatabase", array( new xmlrpcval($cserver2, 'string'), -- cgit 1.4.1