about summary refs log tree commit diff stats
path: root/central/trunk/includes/instadisc.php
diff options
context:
space:
mode:
Diffstat (limited to 'central/trunk/includes/instadisc.php')
-rw-r--r--central/trunk/includes/instadisc.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/central/trunk/includes/instadisc.php b/central/trunk/includes/instadisc.php index 225814e..08394e1 100644 --- a/central/trunk/includes/instadisc.php +++ b/central/trunk/includes/instadisc.php
@@ -61,7 +61,7 @@ function instaDisc_sendItem($username, $id)
61 $fp = @fsockopen($getuser3['ip'], 1204, $errno, $errstr); 61 $fp = @fsockopen($getuser3['ip'], 1204, $errno, $errstr);
62 if ($fp) 62 if ($fp)
63 { 63 {
64 $verID = rand(1,65536); 64 $verID = rand(1,2147483647);
65 65
66 $title = str_replace(': ', '__INSTADISC__', $getitem3['title']); 66 $title = str_replace(': ', '__INSTADISC__', $getitem3['title']);
67 67
@@ -126,7 +126,7 @@ function instaDisc_sendDatabase($cserver)
126 $getuk2 = mysql_query($getuk); 126 $getuk2 = mysql_query($getuk);
127 $getuk3 = mysql_fetch_array($getuk2); 127 $getuk3 = mysql_fetch_array($getuk2);
128 128
129 $verID = rand(1,65536); 129 $verID = rand(1,2147483647);
130 130
131 $client = new xmlrpc_client($cserver); 131 $client = new xmlrpc_client($cserver);
132 $msg = new xmlrpcmsg("InstaDisc.sendDatabase", array( new xmlrpcval($cserver2, 'string'), 132 $msg = new xmlrpcmsg("InstaDisc.sendDatabase", array( new xmlrpcval($cserver2, 'string'),
@@ -176,7 +176,7 @@ function instaDisc_phpMailer()
176 176
177function instaDisc_sendActivationEmail($username, $password, $email) 177function instaDisc_sendActivationEmail($username, $password, $email)
178{ 178{
179 $penKey = md5(rand(1,65536)); 179 $penKey = md5(rand(1,2147483647));
180 180
181 $inspending = "INSERT INTO pending (username, password, email, code) VALUES (\"" . mysql_real_escape_string($username) . "\", \"" . mysql_real_escape_string(md5($password)) . "\", \"" . mysql_real_escape_string($email) . "\", \"" . mysql_real_escape_string($penKey) . "\")"; 181 $inspending = "INSERT INTO pending (username, password, email, code) VALUES (\"" . mysql_real_escape_string($username) . "\", \"" . mysql_real_escape_string(md5($password)) . "\", \"" . mysql_real_escape_string($email) . "\", \"" . mysql_real_escape_string($penKey) . "\")";
182 $inspending2 = mysql_query($inspending); 182 $inspending2 = mysql_query($inspending);
@@ -358,7 +358,7 @@ function instaDisc_generateSubscriptionActivation($username, $url)
358 $getuser3 = mysql_fetch_array($getuser2); 358 $getuser3 = mysql_fetch_array($getuser2);
359 if ($getuser3['username'] == $username) 359 if ($getuser3['username'] == $username)
360 { 360 {
361 $key = md5(rand(1,65536)); 361 $key = md5(rand(1,2147483647));
362 362
363 $inspending = "INSERT INTO pending2 (username, url, code) VALUES (\"" . mysql_real_escape_string($username) . "\", \"" . mysql_real_escape_string($url) . "\", \"" . mysql_real_escape_string($key) . "\")"; 363 $inspending = "INSERT INTO pending2 (username, url, code) VALUES (\"" . mysql_real_escape_string($username) . "\", \"" . mysql_real_escape_string($url) . "\", \"" . mysql_real_escape_string($key) . "\")";
364 $inspending2 = mysql_query($inspending); 364 $inspending2 = mysql_query($inspending);