diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-16 17:52:30 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-16 17:52:30 +0000 |
commit | 2d998db45226ca7efd39ec6e04b9891ccf129d4f (patch) | |
tree | 8059664ec8f60c17239672e69abea7d2970a59cd /central/trunk/xmlrpc.php | |
parent | 3abf3909dfa306d20358a3538da212b7cb64f52a (diff) | |
download | instadisc-2d998db45226ca7efd39ec6e04b9891ccf129d4f.tar.gz instadisc-2d998db45226ca7efd39ec6e04b9891ccf129d4f.tar.bz2 instadisc-2d998db45226ca7efd39ec6e04b9891ccf129d4f.zip |
General: Upgraded Verification ID generation
Verification IDs in Central and Update can now be between 0 and 2147483647. Closes #37
Diffstat (limited to 'central/trunk/xmlrpc.php')
-rw-r--r-- | central/trunk/xmlrpc.php | 6 |
1 files changed, 3 insertions, 3 deletions
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 | |||
94 | $i=0; | 94 | $i=0; |
95 | while ($getcs3[$i] = mysql_fetch_array($getcs2)) | 95 | while ($getcs3[$i] = mysql_fetch_array($getcs2)) |
96 | { | 96 | { |
97 | $verID = rand(1,65536); | 97 | $verID = rand(1,2147483647); |
98 | 98 | ||
99 | $client = new xmlrpc_client($getcs3[$i]['xmlrpc']); | 99 | $client = new xmlrpc_client($getcs3[$i]['xmlrpc']); |
100 | $msg = new xmlrpcmsg("InstaDisc.sendFromCentral", array( new xmlrpcval($cserver, 'string'), | 100 | $msg = new xmlrpcmsg("InstaDisc.sendFromCentral", array( new xmlrpcval($cserver, 'string'), |
@@ -133,7 +133,7 @@ function sendFromCentral($cserver, $verification, $verificationID, $subscription | |||
133 | $getuk2 = mysql_query($getuk); | 133 | $getuk2 = mysql_query($getuk); |
134 | $getuk3 = mysql_fetch_array($getuk2); | 134 | $getuk3 = mysql_fetch_array($getuk2); |
135 | 135 | ||
136 | $verID = rand(1,65536); | 136 | $verID = rand(1,2147483647); |
137 | 137 | ||
138 | $client = new xmlrpc_client($cserver); | 138 | $client = new xmlrpc_client($cserver); |
139 | $msg = new xmlrpcmsg("InstaDisc.sendUpdateNotice", array( new xmlrpcval($cserver2, 'string'), | 139 | $msg = new xmlrpcmsg("InstaDisc.sendUpdateNotice", array( new xmlrpcval($cserver2, 'string'), |
@@ -150,7 +150,7 @@ function sendFromCentral($cserver, $verification, $verificationID, $subscription | |||
150 | $getuk2 = mysql_query($getuk); | 150 | $getuk2 = mysql_query($getuk); |
151 | $getuk3 = mysql_fetch_array($getuk2); | 151 | $getuk3 = mysql_fetch_array($getuk2); |
152 | 152 | ||
153 | $verID = rand(1,65536); | 153 | $verID = rand(1,2147483647); |
154 | 154 | ||
155 | $client = new xmlrpc_client($cserver); | 155 | $client = new xmlrpc_client($cserver); |
156 | $msg = new xmlrpcmsg("InstaDisc.askForDatabase", array( new xmlrpcval($cserver2, 'string'), | 156 | $msg = new xmlrpcmsg("InstaDisc.askForDatabase", array( new xmlrpcval($cserver2, 'string'), |